com.vaadin.client.ui
Class VTreeTable

java.lang.Object
  extended by FlowPanel
      extended by com.vaadin.client.ui.VScrollTable
          extended by com.vaadin.client.ui.VTreeTable
All Implemented Interfaces:
DeferredWorker, Focusable, ActionOwner, VHasDropHandler, SubPartAware

public class VTreeTable
extends VScrollTable


Nested Class Summary
static class VTreeTable.PendingNavigationEvent
          For internal use only.
 class VTreeTable.VTreeTableScrollBody
           
 
Nested classes/interfaces inherited from class com.vaadin.client.ui.VScrollTable
VScrollTable.ContextMenuDetails, VScrollTable.FocusableScrollContextPanel, VScrollTable.FooterCell, VScrollTable.HeaderCell, VScrollTable.RowHeadersFooterCell, VScrollTable.RowHeadersHeaderCell, VScrollTable.RowRequestHandler, VScrollTable.SelectMode, VScrollTable.TableFooter, VScrollTable.TableHead, VScrollTable.VScrollTableBody, VScrollTable.VScrollTableDropHandler
 
Field Summary
 boolean animationsEnabled
          For internal use only.
 int colIndexOfHierarchy
          For internal use only.
 java.lang.String collapsedRowKey
          For internal use only.
 boolean collapseRequest
          For internal use only.
 boolean focusParentResponsePending
          For internal use only.
 java.util.LinkedList<VTreeTable.PendingNavigationEvent> pendingNavigationEvents
          For internal use only.
 VTreeTable.VTreeTableScrollBody scrollBody
          For internal use only.
 
Fields inherited from class com.vaadin.client.ui.VScrollTable
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, bodyActionKeys, client, collapsibleMenuContent, contextMenu, dropHandler, enabled, focusedRow, focusFirstItemInNextRender, focusLastItemInNextRender, headerChangedDuringUpdate, immediate, initializedAndAttached, lastRenderedHeight, multiselectPending, paintableId, postponeSanityCheckForLastRendered, recalcWidths, rendering, rowRequestHandler, scrollBodyPanel, selectedRowKeys, selectFirstItemInNextRender, selectionChanged, selectionRangeStart, selectLastItemInNextRender, serverCacheFirst, serverCacheLast, showColFooters, showColHeaders, showRowHeaders, sizeNeedsInit, STYLENAME, tabIndex, tFoot, tHead, totalRows
 
Constructor Summary
VTreeTable()
           
 
Method Summary
 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  java.lang.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.
 boolean handleNavigation(int keycode, boolean ctrl, boolean shift)
          For internal use only.
 void onBrowserEvent(Event event)
           
protected  void reOrderColumn(java.lang.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(java.lang.String style)
           
 void updateTotalRows(UIDL uidl)
          For internal use only.
 
Methods inherited from class com.vaadin.client.ui.VScrollTable
calcFirstRowInViewPort, cancelScrollingVelocityTimer, deselectAll, discardRowsOutsideCacheWindow, focus, focusRowFromBody, getActionCaption, getActionIcon, getActions, getChildMeasurementHint, getClient, getDropHandler, getFocusedRow, getNavigationDownKey, getNavigationEndKey, getNavigationLeftKey, getNavigationPageDownKey, getNavigationPageUpKey, getNavigationRightKey, getNavigationSelectKey, getNavigationStartKey, getNavigationUpKey, getPaintableId, getRenderedRowByKey, getSubPartElement, getSubPartName, getTotalRows, getWidgetForPaintable, hideScrollPositionAnnotation, init, initializeRows, isFocusable, isScrollPositionVisible, isSelectable, isWorkPending, lazyRevertFocusToRow, measureRowHeightOffset, onAttach, onBlur, onDetach, onFocus, onScroll, onUnregister, resizeSortedColumnForSortIndicator, selectFirstRenderedRowInViewPort, selectLastRenderedRowInViewPort, selectSelectedRows, sendSelectedRows, setCacheRateFromUIDL, setChildMeasurementHint, setColWidth, setHeight, setProperTabIndex, setRowFocus, setStylePrimaryName, setTotalRows, setVisible, sizeInit, startScrollingVelocityTimer, triggerLazyColumnAdjustment, updateActionMap, updateBody, updateColumnProperties, updateDragMode, updateFirstVisibleAndScrollIfNeeded, updateHeight, updateMaxIndent, updatePageLength, updatePageLength, updateRowsInBody, updateSelectionProperties, updateSortingProperties, updateWidth, willHaveScrollbars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collapseRequest

public boolean collapseRequest
For internal use only. May be removed or replaced in the future.


colIndexOfHierarchy

public int colIndexOfHierarchy
For internal use only. May be removed or replaced in the future.


collapsedRowKey

public java.lang.String collapsedRowKey
For internal use only. May be removed or replaced in the future.


scrollBody

public VTreeTable.VTreeTableScrollBody scrollBody
For internal use only. May be removed or replaced in the future.


animationsEnabled

public boolean animationsEnabled
For internal use only. May be removed or replaced in the future.


pendingNavigationEvents

public java.util.LinkedList<VTreeTable.PendingNavigationEvent> pendingNavigationEvents
For internal use only. May be removed or replaced in the future.


focusParentResponsePending

public boolean focusParentResponsePending
For internal use only. May be removed or replaced in the future.

Constructor Detail

VTreeTable

public VTreeTable()
Method Detail

createScrollBody

protected VScrollTable.VScrollTableBody createScrollBody()
Overrides:
createScrollBody in class VScrollTable

addAndRemoveRows

public 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.

For internal use only. May be removed or replaced in the future.

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. May be removed or replaced in the future.

Overrides:
getHierarchyColumnIndex in class VScrollTable
Returns:
index of TreeTable's hierarchy column, or -1 if not applicable

buildCaptionHtmlSnippet

protected java.lang.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

public boolean handleNavigation(int keycode,
                                boolean ctrl,
                                boolean shift)
For internal use only. May be removed or replaced in the future.

Overrides:
handleNavigation in class VScrollTable
Returns:
true iff the navigation event was handled

onBrowserEvent

public void onBrowserEvent(Event event)

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(java.lang.String columnKey,
                             int newIndex)
Overrides:
reOrderColumn in class VScrollTable

setStyleName

public void setStyleName(java.lang.String style)
Overrides:
setStyleName in class VScrollTable

updateTotalRows

public void updateTotalRows(UIDL uidl)
Description copied from class: VScrollTable
For internal use only. May be removed or replaced in the future.

Overrides:
updateTotalRows in class VScrollTable


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