public class TreeTable
extends com.google.gwt.user.client.ui.Composite
TreeTableModel. This will display a table,
where the first column is a tree and each node in the tree is a table row.| Modifier and Type | Class and Description |
|---|---|
static interface |
TreeTable.CellFormatter
Allows the formatting of individual cells by setting a style.
|
static class |
TreeTable.ItemWidget
The widgets displayed in the first column containing the label and tree image.
|
static class |
TreeTable.RowAccountingTable
A
FlexTable with row pointers that update themselves when rows are
added or removed. |
class |
TreeTable.TreeTableItem
Item representing a node in the tree and a row in the table.
|
| Modifier and Type | Field and Description |
|---|---|
static TreeTable.CellFormatter |
DEFAULT_CELL_FORMATTER
This simple
TreeTable.CellFormatter does not provide any additional style. |
| Constructor and Description |
|---|
TreeTable(TreeTableModel model,
com.google.gwt.user.client.ui.TreeImages images,
TreeTable.CellFormatter formatter,
boolean showRoot)
Constructs a new TreeTable that will display the given model, using the
given images and formatter.
|
| Modifier and Type | Method and Description |
|---|---|
TreeTable.TreeTableItem |
getRoot() |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic static final TreeTable.CellFormatter DEFAULT_CELL_FORMATTER
TreeTable.CellFormatter does not provide any additional style.public TreeTable(TreeTableModel model, com.google.gwt.user.client.ui.TreeImages images, TreeTable.CellFormatter formatter, boolean showRoot)
model - the model to be displayedimages - the images to use for the tree handles. If null,
will use GWT.create to get the default tree imagesformatter - the formatter to use for the table cells. If
null, will use DEFAULT_CELL_FORMATTERshowRoot - whether to display the root node. Since a TreeModel only
have a single root, set this to false to simulate a tree with
multiple roots (i.e. the first generation children appear to be the
roots)public TreeTable.TreeTableItem getRoot()
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.