We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.ui.
Class VScrollTable.TableHead
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.TableHead
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, ActionOwner, Iterable<com.google.gwt.user.client.ui.Widget>
Enclosing class:
- extends com.google.gwt.user.client.ui.Panel
- implements ActionOwner
public class VScrollTable.TableHead
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.TableHead()
|
Method Summary | |
---|---|
void |
clear()
|
void |
disableAutoColumnWidthCalculation(VScrollTable.HeaderCell source)
Disables the automatic calculation of all column widths by forcing the widths to be "defined" thus turning off expand ratios and such. |
void |
disableBrowserIntelligence()
|
void |
enableBrowserIntelligence()
|
void |
enableColumn(String cid,
int index)
|
Action[] |
getActions()
|
ApplicationConnection |
getClient()
|
char[] |
getColumnAlignments()
Returns column alignments for visible columns |
VScrollTable.HeaderCell |
getHeaderCell(int index)
|
VScrollTable.HeaderCell |
getHeaderCell(String cid)
Get's HeaderCell by it's column Key. |
String |
getPaintableId()
|
int |
getVisibleCellCount()
|
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator()
|
void |
moveCell(int oldIndex,
int newIndex)
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
protected void |
onDetach()
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w)
|
void |
removeCell(String colKey)
|
void |
resizeCaptionContainer(VScrollTable.HeaderCell cell)
|
void |
setColumnCollapsingAllowed(boolean cc)
|
void |
setHeaderCell(int index,
VScrollTable.HeaderCell cell)
|
void |
setHorizontalScrollPosition(int scrollLeft)
|
void |
updateCellsFromUIDL(UIDL uidl)
|
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, 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.TableHead
public VScrollTable.TableHead()
Method Detail |
---|
resizeCaptionContainer
public void resizeCaptionContainer(VScrollTable.HeaderCell cell)
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
updateCellsFromUIDL
public void updateCellsFromUIDL(UIDL uidl)
enableColumn
public void enableColumn(String cid,
int index)
getVisibleCellCount
public int getVisibleCellCount()
setHorizontalScrollPosition
public void setHorizontalScrollPosition(int scrollLeft)
setColumnCollapsingAllowed
public void setColumnCollapsingAllowed(boolean cc)
disableBrowserIntelligence
public void disableBrowserIntelligence()
enableBrowserIntelligence
public void enableBrowserIntelligence()
setHeaderCell
public void setHeaderCell(int index,
VScrollTable.HeaderCell cell)
getHeaderCell
public VScrollTable.HeaderCell getHeaderCell(int index)
getHeaderCell
public VScrollTable.HeaderCell getHeaderCell(String cid)
- Parameters:
cid
- Column key of accessed HeaderCell- Returns:
- HeaderCell
Get's HeaderCell by it's column Key. Note that this returns HeaderCell even if it is currently collapsed.
moveCell
public void moveCell(int oldIndex,
int newIndex)
iterator
public Iterator<com.google.gwt.user.client.ui.Widget> iterator()
- Specified by:
iterator
in interfacecom.google.gwt.user.client.ui.HasWidgets
- Specified by:
iterator
in interfaceIterable<com.google.gwt.user.client.ui.Widget>
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
removeCell
public void removeCell(String colKey)
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
onDetach
protected void onDetach()
- Overrides:
onDetach
in classcom.google.gwt.user.client.ui.Widget
getActions
public Action[] getActions()
- Specified by:
getActions
in interfaceActionOwner
- Returns:
- Array of IActions
getClient
public ApplicationConnection getClient()
- Specified by:
getClient
in interfaceActionOwner
getPaintableId
public String getPaintableId()
- Specified by:
getPaintableId
in interfaceActionOwner
getColumnAlignments
public char[] getColumnAlignments()
Returns column alignments for visible columns
disableAutoColumnWidthCalculation
public void disableAutoColumnWidthCalculation(VScrollTable.HeaderCell source)
Disables the automatic calculation of all column widths by forcing the widths to be "defined" thus turning off expand ratios and such.