com.extjs.gxt.ui.client.widget.treetable
Class TreeTable

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.Container<TreeItem>
                      extended by com.extjs.gxt.ui.client.widget.tree.Tree
                          extended by com.extjs.gxt.ui.client.widget.treetable.TreeTable
All Implemented Interfaces:
Observable, Selectable<TreeItem>, BaseTable, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener

Deprecated. see @link TreeGrid

public class TreeTable
extends Tree
implements BaseTable

A hierarchical tree widget with support for additional columns. The tree contains a hierarchy of TreeTableItems that the user can open, close, and select.

Events:
CellClick : TreeTableEvent(treeTable, item, rowIndex, cellIndex)
Fires after a cell has been clicked.
CellDoubleClick : TreeTableEvent(treeTable, item, rowIndex, cellIndex)
Fires after a cell has been double clicked.
RowClick : TreeTableEvent(treeTable, item, rowIndex, cellIndex)
Fires after a cell has been clicked.
RowDoubleClick : TreeTableEvent(treeTable, item, rowIndex, cellIndex)
Fires after a cell has been double clicked.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.tree.Tree
Tree.CheckCascade, Tree.CheckNodes, Tree.Joint
 
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
 
Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.widget.tree.Tree
DEFAULT_TREE_ITEM_ID, FAST_TREE_ITEM_ID
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
TreeTable()
          Deprecated. Creates a new single select tree table.
TreeTable(TreeTableColumnModel cm)
          Deprecated. Creates a new tree table with the given column model.
 
Method Summary
 boolean fireEvent(EventType type, ComponentEvent ce)
          Deprecated. Fires the specified event with the given event type.
 TableColumn getColumn(int index)
          Deprecated. Returns the column at the specified index.
 TableColumn getColumn(java.lang.String id)
          Deprecated. Returns the column with the given id.
 boolean getColumnContextMenu()
          Deprecated. Returns the column context menu enabed state.
 int getColumnCount()
          Deprecated. Returns the number of columns contained in the table.
 TableColumnModel getColumnModel()
          Deprecated. Returns the table's column model.
 boolean getHorizontalScroll()
          Deprecated. Returns true if horizontal scrolling is enabled
 TableHeader getTableHeader()
          Deprecated. Returns the tree table's header.
 void onBrowserEvent(com.google.gwt.user.client.Event event)
          Deprecated. Components delegate event handling to Component.onComponentEvent(ComponentEvent).
 void recalculate()
          Deprecated. Called when the component is in a LayoutContainer and the container's layout executes.
 void scrollIntoView(TreeTableItem item)
          Deprecated. Scrolls the item into view.
 void setColumnContextMenu(boolean columnContextMenu)
          Deprecated. Sets whether the table header context menu is displayed (defaults to true).
 void setHorizontalScroll(boolean horizontalScroll)
          Deprecated. True to display a horizonatal scroll bar when needed (defaults to true).
 void setTableHeader(TreeTableHeader header)
          Deprecated. Sets the tree table's header.
 void setView(TreeTableView view)
          Deprecated. Sets the tree table's view.
 void sort(int index, Style.SortDir direction)
          Deprecated. Sorts the tree table using the specified column index.
 
Methods inherited from class com.extjs.gxt.ui.client.widget.tree.Tree
collapseAll, expandAll, expandPath, findItem, getAllItemCount, getAllItems, getAnimate, getCheckable, getChecked, getCheckNodes, getCheckStyle, getContextMenu, getIndentWidth, getItem, getItemById, getItemIconStyle, getItemSelector, getNodeIconStyle, getOpenNodeIconStyle, getRootItem, getSelectedItem, getSelectedItems, getSelectionMode, getSelectionModel, getStyle, getTreeItemPartId, onComponentEvent, onSelectChange, removeAll, setAnimate, setCheckable, setCheckNodes, setCheckStyle, setContextMenu, setIndentWidth, setItemIconStyle, setItemSelector, setNodeIconStyle, setOpenNodeIconStyle, setSelectedItem, setSelectedItems, setSelectionMode, setSelectionModel, setTreeItemPartId
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Container
disable, enable, getItemByItemId, getItemCount, getItems, getLayoutTarget, getWidget, indexOf, iterator, scrollIntoView
 
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Component
addListener, addPlugin, addStyleName, addWidgetListener, clearState, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getElement, getHideMode, getId, getItemId, getListeners, getModel, getState, getStateId, getToolTip, hasListeners, hasListeners, hide, hideToolTip, isDisabledEvents, isEnabled, isRendered, isStateful, isVisible, mask, mask, mask, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setBorders, setData, setElement, setEnabled, setHideMode, setId, setIntStyleAttribute, setItemId, setStateful, setStateId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unmask
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
fireEvent, getParent, isAttached
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeTable

public TreeTable()
Deprecated. 
Creates a new single select tree table. A column model must be set before the table is rendered.


TreeTable

public TreeTable(TreeTableColumnModel cm)
Deprecated. 
Creates a new tree table with the given column model.

Parameters:
cm - the tree table column model
Method Detail

fireEvent

public boolean fireEvent(EventType type,
                         ComponentEvent ce)
Deprecated. 
Description copied from class: Component
Fires the specified event with the given event type.

Overrides:
fireEvent in class Component
Parameters:
type - the event type
ce - the base event
Returns:
false if any listeners return false

getColumn

public TableColumn getColumn(int index)
Deprecated. 
Returns the column at the specified index.

Specified by:
getColumn in interface BaseTable
Parameters:
index - the column index
Returns:
the column

getColumn

public TableColumn getColumn(java.lang.String id)
Deprecated. 
Returns the column with the given id.

Parameters:
id - the column id
Returns:
the column

getColumnContextMenu

public boolean getColumnContextMenu()
Deprecated. 
Returns the column context menu enabed state.

Specified by:
getColumnContextMenu in interface BaseTable
Returns:
true if enabled, false otherwise.

getColumnCount

public int getColumnCount()
Deprecated. 
Returns the number of columns contained in the table.

Returns:
the number of columns

getColumnModel

public TableColumnModel getColumnModel()
Deprecated. 
Returns the table's column model.

Specified by:
getColumnModel in interface BaseTable
Returns:
the column model

getHorizontalScroll

public boolean getHorizontalScroll()
Deprecated. 
Returns true if horizontal scrolling is enabled

Returns:
the horizontal scroll state

getTableHeader

public TableHeader getTableHeader()
Deprecated. 
Returns the tree table's header.

Specified by:
getTableHeader in interface BaseTable
Returns:
the table header

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Deprecated. 
Description copied from class: Component
Components delegate event handling to Component.onComponentEvent(ComponentEvent). Subclasses should not override.

Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class Component
Parameters:
event - the dom event

recalculate

public void recalculate()
Deprecated. 
Description copied from class: Component
Called when the component is in a LayoutContainer and the container's layout executes. This method will not be called on container instances. Default implementation does nothing.

Overrides:
recalculate in class Component

scrollIntoView

public void scrollIntoView(TreeTableItem item)
Deprecated. 
Scrolls the item into view.

Parameters:
item - the item

setColumnContextMenu

public void setColumnContextMenu(boolean columnContextMenu)
Deprecated. 
Sets whether the table header context menu is displayed (defaults to true).

Parameters:
columnContextMenu - the column context menu sate

setHorizontalScroll

public void setHorizontalScroll(boolean horizontalScroll)
Deprecated. 
True to display a horizonatal scroll bar when needed (defaults to true).

Parameters:
horizontalScroll - the horizontal scroll state

setTableHeader

public void setTableHeader(TreeTableHeader header)
Deprecated. 
Sets the tree table's header. Should only be called when providing a custom tree table header. Has no effect if called after the table has been rendered.

Parameters:
header - the table header

setView

public void setView(TreeTableView view)
Deprecated. 
Sets the tree table's view. Provides a way to provide specialized views. table views.

Parameters:
view - the view

sort

public void sort(int index,
                 Style.SortDir direction)
Deprecated. 
Sorts the tree table using the specified column index.

Specified by:
sort in interface BaseTable
Parameters:
index - the column index
direction - the direction to sort (NONE, ASC, DESC)