|
||||||||||
| 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.google.gwt.user.client.ui.Composite
com.google.gwt.user.cellview.client.CellTree
public class CellTree
A view of a tree.
| Nested Class Summary | |
|---|---|
static interface |
CellTree.CleanResources
A cleaner version of the table that uses less graphics. |
static interface |
CellTree.CleanStyle
A cleaner version of the table that uses less graphics. |
static class |
CellTree.NodeAnimation
A node animation. |
static interface |
CellTree.Resources
A ClientBundle that provides images for this widget. |
static class |
CellTree.RevealAnimation
A CellTree.NodeAnimation that reveals the contents of child nodes. |
static class |
CellTree.SlideAnimation
A CellTree.NodeAnimation that slides children into view. |
static interface |
CellTree.Style
Styles used by this widget. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
CellTree(TreeViewModel viewModel,
T rootValue)
Construct a new CellTree. |
|
CellTree(TreeViewModel viewModel,
T rootValue,
CellTree.Resources resources)
Construct a new CellTree. |
|
| Method Summary | |
|---|---|
CellTree.NodeAnimation |
getAnimation()
Get the animation used to open and close nodes in this tree if animations are enabled. |
int |
getDefaultNodeSize()
Get the default maximum number of children to display under each tree node. |
TreeViewModel |
getTreeViewModel()
|
boolean |
isAnimationEnabled()
|
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received. |
void |
setAnimation(CellTree.NodeAnimation animation)
Set the animation used to open and close nodes in this tree. |
void |
setAnimationEnabled(boolean enable)
Enable or disable animations. |
void |
setDefaultNodeSize(int defaultNodeSize)
Set the default number of children to display beneath each child node. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CellTree(TreeViewModel viewModel,
T rootValue)
CellTree.
T - the type of data in the root nodeviewModel - the TreeViewModel that backs the treerootValue - the hidden root value of the tree
public CellTree(TreeViewModel viewModel,
T rootValue,
CellTree.Resources resources)
CellTree.
T - the type of data in the root nodeviewModel - the TreeViewModel that backs the treerootValue - the hidden root value of the treeresources - the resources used to render the tree| Method Detail |
|---|
public CellTree.NodeAnimation getAnimation()
isAnimationEnabled()public int getDefaultNodeSize()
public TreeViewModel getTreeViewModel()
public boolean isAnimationEnabled()
isAnimationEnabled in interface HasAnimationpublic void onBrowserEvent(Event event)
EventListener
onBrowserEvent in interface EventListeneronBrowserEvent in class Compositeevent - the event receivedpublic void setAnimation(CellTree.NodeAnimation animation)
setAnimationEnabled(boolean) to enable or disable animation.
animation - a CellTree.NodeAnimationsetAnimationEnabled(boolean)public void setAnimationEnabled(boolean enable)
HasAnimation
setAnimationEnabled in interface HasAnimationenable - true to enable, false to disablepublic void setDefaultNodeSize(int defaultNodeSize)
defaultNodeSize - the max
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||