com.vaadin.terminal.gwt.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.terminal.gwt.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.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:
- extends com.google.gwt.user.client.ui.Panel
public class VScrollTable.TableFooter
The footer of the table which can be seen in the bottom of the Table.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
VScrollTable.TableFooter()
|
Method Summary | |
---|---|
void |
clear()
|
void |
disableBrowserIntelligence()
Disable browser measurement of the table width |
void |
enableBrowserIntelligence()
Enable browser measurement of the table width |
void |
enableColumn(String cid,
int index)
Enable a column (Sets the footer cell) |
VScrollTable.FooterCell |
getFooterCell(int index)
Gets a footer cell by using a column index |
VScrollTable.FooterCell |
getFooterCell(String cid)
Gets a footer cell which represents the given columnId |
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator()
|
void |
moveCell(int oldIndex,
int newIndex)
Swap cells when the column are dragged |
boolean |
remove(com.google.gwt.user.client.ui.Widget w)
|
void |
removeCell(String colKey)
Remove a cell by using the columnId |
void |
setFooterCell(int index,
VScrollTable.FooterCell cell)
Set a footer cell for a specified column index |
void |
setHorizontalScrollPosition(int scrollLeft)
Set the horizontal position in the cell in the footer. |
void |
updateCellsFromUIDL(UIDL uidl)
Updates the cells contents when updateUIDL request is received |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, add, adopt, adopt, disown, 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 |
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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
VScrollTable.TableFooter
public VScrollTable.TableFooter()
Method Detail |
---|
clear
public void clear()
- Specified by:
clear
in interfacecom.google.gwt.user.client.ui.HasWidgets
- Overrides:
clear
in classcom.google.gwt.user.client.ui.Panel
remove
public boolean remove(com.google.gwt.user.client.ui.Widget w)
- Specified by:
remove
in interfacecom.google.gwt.user.client.ui.HasWidgets
- Specified by:
remove
in 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)
- Parameters:
cid
- The columnId- Returns:
- The cell
Gets a footer cell which represents the given columnId
getFooterCell
public VScrollTable.FooterCell getFooterCell(int index)
- Parameters:
index
- The index of the column- Returns:
- The Cell
Gets a footer cell by using a column index
updateCellsFromUIDL
public void updateCellsFromUIDL(UIDL uidl)
- Parameters:
uidl
- The UIDL
Updates the cells contents when updateUIDL request is received
setFooterCell
public void setFooterCell(int index,
VScrollTable.FooterCell cell)
- Parameters:
index
- The indexcell
- The footer cell
Set a footer cell for a specified column index
removeCell
public void removeCell(String colKey)
- Parameters:
colKey
- The columnId to remove
Remove a cell by using the columnId
enableColumn
public void enableColumn(String cid,
int index)
- Parameters:
cid
- The columnIdindex
- The index of the column
Enable a column (Sets the footer cell)
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)
- Parameters:
scrollLeft
- The value of the leftScroll
Set the horizontal position in the cell in the footer. This is done when a horizontal scrollbar is present.
moveCell
public void moveCell(int oldIndex,
int newIndex)
- Parameters:
oldIndex
- The old index of the cellnewIndex
- The new index of the cell
Swap cells when the column are dragged