java.lang.Object | |||||
↳ | com.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.AbstractCellTree | ||||
↳ | com.google.gwt.user.cellview.client.CellTree |
A view of a tree.
This widget will only work in standards mode, which requires that the HTML page in which it is run have an explicit <!DOCTYPE> declaration.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CellTree.BasicResources | Resources that match the GWT standard style theme. | ||||||||||
CellTree.NodeAnimation | A node animation. | ||||||||||
CellTree.Resources | A ClientBundle that provides images for this widget. | ||||||||||
CellTree.RevealAnimation | A CellTree.NodeAnimation that reveals the contents of child nodes. |
||||||||||
CellTree.SlideAnimation | A CellTree.NodeAnimation that slides children into view. |
||||||||||
CellTree.Style | Styles used by this widget. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new
CellTree . | |||||||||||
Construct a new
CellTree . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the animation used to open and close nodes in this tree if animations
are enabled.
| |||||||||||
Get the default maximum number of children to display under each tree node.
| |||||||||||
Get the root
TreeNode . | |||||||||||
Gets the widget's position in the tab index.
| |||||||||||
Returns true if animations are enabled, false if not.
| |||||||||||
Fired whenever a browser event is received.
| |||||||||||
Sets the widget's 'access key'.
Setting the key to (int) 0 will disable the access key. | |||||||||||
Set the animation used to open and close nodes in this tree.
| |||||||||||
Enable or disable animations.
| |||||||||||
Set the default number of children to display beneath each child node.
| |||||||||||
Explicitly focus/unfocus this widget.
| |||||||||||
Sets the widget's position in the tab index.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the access key.
| |||||||||||
Called when the keyboard selected node loses focus.
| |||||||||||
Called when the keyboard selected node gains focus.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.cellview.client.AbstractCellTree
| |||||||||||
From class
com.google.gwt.user.client.ui.Composite
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.logical.shared.HasCloseHandlers | |||||||||||
From interface com.google.gwt.event.logical.shared.HasOpenHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy
| |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.Focusable
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasAnimation
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
|
Construct a new CellTree
.
viewModel | the TreeViewModel that backs the tree |
---|---|
rootValue | the hidden root value of the tree |
Construct a new CellTree
.
viewModel | the TreeViewModel that backs the tree |
---|---|
rootValue | the hidden root value of the tree |
resources | the resources used to render the tree |
Get the animation used to open and close nodes in this tree if animations are enabled.
Get the default maximum number of children to display under each tree node.
Gets the widget's position in the tab index.
Returns true if animations are enabled, false if not.
Fired whenever a browser event is received.
event | the event received |
---|
Sets the widget's 'access key'. This key is used (in conjunction with a browser-specific modifier key) to automatically focus the widget.
Setting the key to (int) 0 will disable the access key.
key | the widget's access key |
---|
Set the animation used to open and close nodes in this tree. You must call
setAnimationEnabled(boolean)
to enable or disable animation.
animation | a CellTree.NodeAnimation |
---|
Enable or disable animations.
enable | true to enable, false to disable |
---|
Set the default number of children to display beneath each child node. If more nodes are available, a button will appear at the end of the list allowing the user to show more items. Changing this value will not affect tree nodes that are already open.
defaultNodeSize | the max |
---|
Explicitly focus/unfocus this widget. Only one widget can have focus at a time, and the widget that does will receive all keyboard events.
focused | whether this widget should take focus or release it |
---|
Sets the widget's position in the tab index. If more than one widget has
the same tab index, each such widget will receive focus in an arbitrary
order. Setting the tab index to -1
will cause this widget to
be removed from the tab order.
index | the widget's tab index |
---|
Called when the keyboard selected node loses focus.
Called when the keyboard selected node gains focus.