com.vaadin.terminal.gwt.client.ui.


Class VTreeTable

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.google.gwt.user.client.ui.ComplexPanel
                  com.google.gwt.user.client.ui.FlowPanel
                      com.vaadin.terminal.gwt.client.ui.VScrollTable
                          com.vaadin.terminal.gwt.client.ui.VTreeTable

All Implemented Interfaces:

com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.ScrollHandler, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, 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.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Focusable, Paintable, ActionOwner, VHasDropHandler, Table, Iterable<com.google.gwt.user.client.ui.Widget>

public class VTreeTable
extends VScrollTable

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.gwt.client.ui.VScrollTable
VScrollTable.FooterCell, VScrollTable.HeaderCell, VScrollTable.RowHeadersFooterCell, VScrollTable.RowHeadersHeaderCell, VScrollTable.TableFooter, VScrollTable.TableHead, VScrollTable.VScrollTableBody, VScrollTable.VScrollTableDropHandler
 
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
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
 
Field Summary
static String ATTRIBUTE_HIERARCHY_COLUMN_INDEX
           
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.VScrollTable
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ATTRIBUTE_KEY_MAPPER_RESET, ATTRIBUTE_PAGEBUFFER_FIRST, ATTRIBUTE_PAGEBUFFER_LAST, CLASSNAME, CLASSNAME_SELECTION_FOCUS, client, COLUMN_REORDER_EVENT_ID, COLUMN_RESIZE_EVENT_ID, FOOTER_CLICK_EVENT_ID, HEADER_CLICK_EVENT_ID, ITEM_CLICK_EVENT_ID, paintableId, showRowHeaders, tHead
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.vaadin.terminal.gwt.client.ui.Table
SELECT_MODE_MULTI, SELECT_MODE_NONE, SELECT_MODE_SINGLE
 
Constructor Summary
VTreeTable()
           
 
Method Summary
protected  void addAndRemoveRows(UIDL partialRowAdditions)
          Inserts rows in the table body or removes them from the table body based on the commands in the UIDL.
protected  String buildCaptionHtmlSnippet(UIDL uidl)
          Icons rendered into first actual column in TreeTable, not to row header cell
protected  VScrollTable.VScrollTableBody createScrollBody()
           
protected  int getHierarchyColumnIndex()
          This method exists for the needs of VTreeTable only.
protected  boolean handleNavigation(int keycode, boolean ctrl, boolean shift)
          Handles the keyboard events handled by the table
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
protected  void reOrderColumn(String columnKey, int newIndex)
           
protected  void sendSelectedRows(boolean immediately)
          Sends the selection to the server if it has been changed since the last update/visit.
 void setStyleName(String style)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
protected  void updateTotalRows(UIDL uidl)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.VScrollTable
calcFirstRowInViewPort, cancelScrollingVelocityTimer, deselectAll, discardRowsOutsideCacheWindow, focus, getActionCaption, getActionIcon, getActions, getClient, getDropHandler, getFocusedRow, getNavigationDownKey, getNavigationEndKey, getNavigationLeftKey, getNavigationPageDownKey, getNavigationPageUpKey, getNavigationRightKey, getNavigationSelectKey, getNavigationStartKey, getNavigationUpKey, getPaintableId, getRenderedRowByKey, getTotalRows, isFocusable, isSelectable, lazyRevertFocusToRow, measureRowHeightOffset, onAttach, onBlur, onDetach, onFocus, onScroll, sendSelectedRows, setColWidth, setHeight, setRowFocus, setTotalRows, setVisible, setWidth, startScrollingVelocityTimer, triggerLazyColumnAdjustment, updatePageLength, willHaveScrollbars
 
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insert
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
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, 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, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets
add, clear, iterator, remove
 
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Field Detail

ATTRIBUTE_HIERARCHY_COLUMN_INDEX

public static final String ATTRIBUTE_HIERARCHY_COLUMN_INDEX

See Also:

Constant Field Values

Constructor Detail

VTreeTable

public VTreeTable()
Method Detail

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)

Specified by:
updateFromUIDL in interface Paintable
Overrides:
updateFromUIDL in class VScrollTable

createScrollBody

protected VScrollTable.VScrollTableBody createScrollBody()

Overrides:
createScrollBody in class VScrollTable

addAndRemoveRows

protected void addAndRemoveRows(UIDL partialRowAdditions)

Description copied from class: VScrollTable

Inserts rows in the table body or removes them from the table body based on the commands in the UIDL.

Overrides:
addAndRemoveRows in class VScrollTable

Parameters:
partialRowAdditions - the UIDL containing row updates.

getHierarchyColumnIndex

protected int getHierarchyColumnIndex()

Description copied from class: VScrollTable

This method exists for the needs of VTreeTable only. Not part of the official API, extend at your own risk.

Overrides:
getHierarchyColumnIndex in class VScrollTable

Returns:
index of TreeTable's hierarchy column, or -1 if not applicable

buildCaptionHtmlSnippet

protected String buildCaptionHtmlSnippet(UIDL uidl)

Icons rendered into first actual column in TreeTable, not to row header cell

Overrides:
buildCaptionHtmlSnippet in class VScrollTable

Parameters:
uidl - possibly with values caption and icon
Returns:
html snippet containing possibly an icon + caption text

handleNavigation

protected boolean handleNavigation(int keycode,
                                   boolean ctrl,
                                   boolean shift)

Description copied from class: VScrollTable

Handles the keyboard events handled by the table

Overrides:
handleNavigation in class VScrollTable

Returns:
true iff the navigation event was handled

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)

Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

sendSelectedRows

protected void sendSelectedRows(boolean immediately)

Description copied from class: VScrollTable

Sends the selection to the server if it has been changed since the last update/visit.

Overrides:
sendSelectedRows in class VScrollTable

Parameters:
immediately - set to true to immediately send the rows

reOrderColumn

protected void reOrderColumn(String columnKey,
                             int newIndex)

Overrides:
reOrderColumn in class VScrollTable

setStyleName

public void setStyleName(String style)

Overrides:
setStyleName in class com.google.gwt.user.client.ui.UIObject

updateTotalRows

protected void updateTotalRows(UIDL uidl)

Overrides:
updateTotalRows in class VScrollTable