com.vaadin.terminal.gwt.client.ui.treetable
Class VTreeTable

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.FlowPanel
                      extended by com.vaadin.terminal.gwt.client.ui.table.VScrollTable
                          extended by com.vaadin.terminal.gwt.client.ui.treetable.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.HasVisibility, 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, ActionOwner, VHasDropHandler, 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.table.VScrollTable
VScrollTable.FooterCell, VScrollTable.HeaderCell, VScrollTable.RowHeadersFooterCell, VScrollTable.RowHeadersHeaderCell, VScrollTable.SelectMode, 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
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.table.VScrollTable
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ATTRIBUTE_PAGEBUFFER_FIRST, ATTRIBUTE_PAGEBUFFER_LAST, CLASSNAME, CLASSNAME_SELECTION_FOCUS, client, COLUMN_REORDER_EVENT_ID, COLUMN_RESIZE_EVENT_ID, contextMenu, 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
 
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  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)
           
protected  void updateTotalRows(UIDL uidl)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.table.VScrollTable
calcFirstRowInViewPort, cancelScrollingVelocityTimer, deselectAll, discardRowsOutsideCacheWindow, focus, getActionCaption, getActionIcon, getActions, getClient, getDropHandler, getFocusedRow, getNavigationDownKey, getNavigationEndKey, getNavigationLeftKey, getNavigationPageDownKey, getNavigationPageUpKey, getNavigationRightKey, getNavigationSelectKey, getNavigationStartKey, getNavigationUpKey, getPaintableId, getRenderedRowByKey, getTotalRows, getWidgetForPaintable, init, isFocusable, isSelectable, lazyRevertFocusToRow, measureRowHeightOffset, onBlur, onDetach, onFocus, onScroll, sendSelectedRows, setHeight, setRowFocus, setTotalRows, setVisible, 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, 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, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, 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.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Constructor Detail

VTreeTable

public VTreeTable()
Method Detail

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.

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


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.