| net.mygwt.ui.client.widget.tree.Tree net.mygwt.ui.client.widget.treetable.TreeTable
TreeTable | public class TreeTable extends Tree implements ITable(Code) | | A hierarchical tree widget with support for additional columns. The tree
contains a hierarchy of TreeTableItems that the user can open,
close, and select.
- Styles:
- SINGLE, MULTI, CHECK, HORIZONTAL
- Events:
- BeforeAdd : (widget, item, index)
Fires before a item is added or inserted. Listeners can set the
doit field to false to cancel the action.
- widget : the parent item
- item : the item being added
- index : the index at which the item will be added
- BeforeRemove : (widget, item)
Fires before a item is removed. Listeners can set the doit
field to false to cancel the action.
- widget : the parent item
- item : the item being removed
- BeforeExpand : (widget, item)
Fires before a item is expanded. Listeners can set the doit
field to false to cancel the expand.
- widget : the parent item
- item : the item being expanded
- BeforeCollapse : (widget, item)
Fires before a item is collapsed. Listeners can set the
doit field to false to cancel the collapse.
- widget : the parent item
- item : the item being expanded
- Add : (widget, item, index)
Fires after a item has been added or inserted.
- widget : the parent item
- item : the item that was added
- index : the index at which the item will be added
- Remove : (widget, item)
Fires after a item has been removed.
- widget : the parent item
- item : the item being removed
- Expand : (widget, item)
Fires after a item has been expanded.
- widget : the parent item
- item : the item being expanded
- Collapse : (widget, item)
Fires ater a item is collapsed.
- widget : the parent item
- item : the item being collapsed
- CheckChange : (widget)
Fires after a check state change.
- ContextMenu : (widget)
Fires before the tree's context menu is shown.
- CellClick : (widget, item, index)
Fires after a cell has been clicked.
- widget : tree table
- item : item represented by the cell
- index : cell column index
- CellDoubleClick : (widget, item, index)
Fires after a cell has been double clicked.
- widget : tree table
- item : item represented by the cell
- index : cell column index
- RowClick : (widget, item, index)
Fires after a cell has been clicked.
- widget : tree table
- item : item that represents the row
- index : cell column index
- RowDoubleClick : (widget, item, index)
Fires after a cell has been double clicked.
- widget : tree table
- item : item that represents the row
- index : cell column index
- CSS:
- .my-treetbl (the containing table)
- .my-treetbl-data (the table data)
- .my-treetbl-item (a row in the table)
- .my-treetbl-tree (the tree itself)
- .my-treetbl-item (a node within the tree)
- .my-treetbl-item-text span (the tree item text)
|
disableColumnContextMenu | boolean disableColumnContextMenu(Code) | | disableColumnContextMenu specifies if the column context menu should be
disabled. Default value is false .
|
TreeTable | public TreeTable()(Code) | | Creates a new single select tree table. A column model must be set before
the table is rendered.
|
TreeTable | public TreeTable(TreeTableColumnModel cm)(Code) | | Creates a new tree table with the given column model.
Parameters: cm - the tree table column model |
TreeTable | public TreeTable(int style, TreeTableColumnModel cm)(Code) | | Creates a new tree table with the given style and column model.
Parameters: style - the style Parameters: cm - the tree table column model |
createRootItem | protected void createRootItem()(Code) | | |
doAttachChildren | protected void doAttachChildren()(Code) | | |
doDetachChildren | protected void doDetachChildren()(Code) | | |
getColumn | public TableColumn getColumn(int index)(Code) | | Returns the column at the specified index.
Parameters: index - the column index the column |
getColumn | public TableColumn getColumn(String id)(Code) | | Returns the column with the given id.
Parameters: id - the column id the column |
getColumnContextMenu | public boolean getColumnContextMenu()(Code) | | Returns the column context menu enabed state.
true if enabled, false otherwise. |
getColumnCount | public int getColumnCount()(Code) | | Returns the number of columns contained in the table.
the number of columns |
getColumnModel | public TableColumnModel getColumnModel()(Code) | | Returns the table's column model.
the column model |
getTableHeader | public TableHeader getTableHeader()(Code) | | Returns the tree table's header.
the table header |
onBrowserEvent | public void onBrowserEvent(Event event)(Code) | | |
onRender | protected void onRender()(Code) | | |
onResize | protected void onResize(int width, int height)(Code) | | |
onShowContextMenu | protected void onShowContextMenu(int x, int y)(Code) | | |
recalculate | public void recalculate()(Code) | | Recalculates the ui based on the table's current size.
|
scrollIntoView | public void scrollIntoView(TableItem item)(Code) | | Scrolls the item into view.
Parameters: item - the item |
setColumnContextMenu | public void setColumnContextMenu(boolean enabled)(Code) | | Sets whether the column context menu is enabled. Initial value is
true .
Parameters: enabled - the enabled state |
setTableHeader | public void setTableHeader(TreeTableHeader header)(Code) | | 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)(Code) | | 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, int direction)(Code) | | Sorts the tree table using the specified column index.
Parameters: index - the column index Parameters: direction - the direction to sort (NONE, ASC, DESC) |
|
|