|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.grid.Grid<M>
com.extjs.gxt.ui.client.widget.treegrid.TreeGrid<M>
M - the model typepublic class TreeGrid<M extends ModelData>
A hierarchical tree grid bound to a TreeStore.
TreeGridCellRenderer can be assigned to the
ColumnConfig in which the tree will be displayed.
With state enabled, TreePanel will save and restore the expand state of the
nodes in the tree. A ModelKeyProvider must specified with the
TreeStore this tree is bound to. Save and restore works with
both local, and asynchronous loading of children.
| Nested Class Summary | |
|---|---|
class |
TreeGrid.TreeNode
|
| 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.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
TreeGrid(TreeStore store,
ColumnModel cm)
|
|
| Method Summary | |
|---|---|
TreeGrid.TreeNode |
findNode(com.google.gwt.user.client.Element target)
Returns the tree node for the given target. |
ModelIconProvider<M> |
getIconProvider()
Returns the model icon provider. |
TreeStyle |
getStyle()
Returns the tree style. |
TreeStore<M> |
getTreeStore()
Returns the tree's tree store. |
TreeGridView |
getTreeView()
Returns the tree's view. |
boolean |
isExpanded(M model)
Returns true if the model is expanded. |
boolean |
isLeaf(M model)
Returns true if the model is a leaf node. |
void |
setExpanded(M model,
boolean expand)
Sets the item's expand state. |
void |
setExpanded(M model,
boolean expand,
boolean deep)
Sets the item's expand state. |
void |
setIconProvider(ModelIconProvider<M> iconProvider)
Sets the tree's model icon provider which provides the icon style for each model. |
void |
setView(GridView view)
Sets the view's grid (pre-render). |
void |
toggle(M model)
Toggles the model's expand state. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.grid.Grid |
|---|
getAutoExpandColumn, getAutoExpandMax, getAutoExpandMin, getColumnModel, getLazyRowRender, getMinColumnWidth, getSelectionModel, getStore, getView, isEnableColumnResize, isHideHeaders, isLoadMask, isStripeRows, isTrackMouseOver, isViewReady, onComponentEvent, reconfigure, setAutoExpandColumn, setAutoExpandMax, setAutoExpandMin, setEnableColumnResize, setHideHeaders, setLazyRowRender, setLoadMask, setMinColumnWidth, setSelectionModel, setStringProvider, setStripeRows, setTrackMouseOver |
| 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.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 |
|---|
public TreeGrid(TreeStore store,
ColumnModel cm)
| Method Detail |
|---|
public TreeGrid.TreeNode findNode(com.google.gwt.user.client.Element target)
target - the target element
public ModelIconProvider<M> getIconProvider()
public TreeStyle getStyle()
public TreeStore<M> getTreeStore()
public TreeGridView getTreeView()
public boolean isExpanded(M model)
model - the model
public boolean isLeaf(M model)
model - the model
public void setExpanded(M model,
boolean expand)
model - the modelexpand - true to expand
public void setExpanded(M model,
boolean expand,
boolean deep)
model - the modelexpand - true to expanddeep - true to expand all children recursivelypublic void setIconProvider(ModelIconProvider<M> iconProvider)
iconProvider - the icon providerpublic void setView(GridView view)
Grid
setView in class Grid<M extends ModelData>view - the viewpublic void toggle(M model)
model - the model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||