Package com.vaadin.v7.client.ui
Class VScrollTable.TableFooter
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.vaadin.v7.client.ui.VScrollTable.TableFooter
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>
- Enclosing class:
- VScrollTable
public class VScrollTable.TableFooter extends com.google.gwt.user.client.ui.PanelThe footer of the table which can be seen in the bottom of the Table.
-
-
Constructor Summary
Constructors Constructor Description TableFooter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddisableBrowserIntelligence()Disable browser measurement of the table width.voidenableBrowserIntelligence()Enable browser measurement of the table width.voidenableColumn(String cid, int index)Enable a column (Sets the footer cell).VScrollTable.FooterCellgetFooterCell(int index)Gets a footer cell by using a column index.VScrollTable.FooterCellgetFooterCell(String cid)Gets a footer cell which represents the given columnId.Iterator<com.google.gwt.user.client.ui.Widget>iterator()voidmoveCell(int oldIndex, int newIndex)Swap cells when the column are dragged.booleanremove(com.google.gwt.user.client.ui.Widget w)voidremoveCell(String colKey)Remove a cell by using the columnId.voidsetFooterCell(int index, VScrollTable.FooterCell cell)Set a footer cell for a specified column index.voidsetHorizontalScrollPosition(int scrollLeft)Set the horizontal position in the cell in the footer.voidupdateCellsFromUIDL(UIDL uidl)Updates the cells contents when updateUIDL request is received.protected voidupdateStyleNames(String primaryStyleName)-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
updateStyleNames
protected void updateStyleNames(String primaryStyleName)
-
clear
public void clear()
- Specified by:
clearin interfacecom.google.gwt.user.client.ui.HasWidgets- Overrides:
clearin classcom.google.gwt.user.client.ui.Panel
-
remove
public boolean remove(com.google.gwt.user.client.ui.Widget w)
- Specified by:
removein interfacecom.google.gwt.user.client.ui.HasWidgets- Specified by:
removein classcom.google.gwt.user.client.ui.Panel
-
iterator
public Iterator<com.google.gwt.user.client.ui.Widget> iterator()
-
getFooterCell
public VScrollTable.FooterCell getFooterCell(String cid)
Gets a footer cell which represents the given columnId.- Parameters:
cid- The columnId- Returns:
- The cell
-
getFooterCell
public VScrollTable.FooterCell getFooterCell(int index)
Gets a footer cell by using a column index.- Parameters:
index- The index of the column- Returns:
- The Cell
-
updateCellsFromUIDL
public void updateCellsFromUIDL(UIDL uidl)
Updates the cells contents when updateUIDL request is received.- Parameters:
uidl- The UIDL
-
setFooterCell
public void setFooterCell(int index, VScrollTable.FooterCell cell)Set a footer cell for a specified column index.- Parameters:
index- The indexcell- The footer cell
-
removeCell
public void removeCell(String colKey)
Remove a cell by using the columnId.- Parameters:
colKey- The columnId to remove
-
enableColumn
public void enableColumn(String cid, int index)
Enable a column (Sets the footer cell).- Parameters:
cid- The columnIdindex- The index of the column
-
disableBrowserIntelligence
public void disableBrowserIntelligence()
Disable browser measurement of the table width.
-
enableBrowserIntelligence
public void enableBrowserIntelligence()
Enable browser measurement of the table width.
-
setHorizontalScrollPosition
public void setHorizontalScrollPosition(int scrollLeft)
Set the horizontal position in the cell in the footer. This is done when a horizontal scrollbar is present.- Parameters:
scrollLeft- The value of the leftScroll
-
moveCell
public void moveCell(int oldIndex, int newIndex)Swap cells when the column are dragged.- Parameters:
oldIndex- The old index of the cellnewIndex- The new index of the cell
-
-