com.vaadin.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.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:
public class VScrollTable.TableFooter extends com.google.gwt.user.client.ui.Panel
The footer of the table which can be seen in the bottom of the Table.
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor and Description TableFooter()
-
Method Summary
All Methods Modifier and Type Method and Description 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
protected void
updateStyleNames(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:
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)
Gets a footer cell which represents the given columnId
Parameters:
cid
- The columnIdReturns:
The cell
-
getFooterCell
public VScrollTable.FooterCell getFooterCell(int index)
Gets a footer cell by using a column index
Parameters:
index
- The index of the columnReturns:
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
-
-