public abstract class

AbstractCellTree

extends Composite
implements HasCloseHandlers<T> HasOpenHandlers<T> HasKeyboardSelectionPolicy
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
Known Direct Subclasses

Class Overview

An abstract representation of a tree widget that renders items using Cells.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
Public Constructors
AbstractCellTree(TreeViewModel viewModel)
Construct a new CellTree with the specified TreeViewModel and root value.
Public Methods
HandlerRegistration addCloseHandler(CloseHandler<TreeNode> handler)
HandlerRegistration addOpenHandler(OpenHandler<TreeNode> handler)
HasKeyboardSelectionPolicy.KeyboardSelectionPolicy getKeyboardSelectionPolicy()
abstract TreeNode getRootTreeNode()
Get the root TreeNode.
TreeViewModel getTreeViewModel()
Get the TreeViewModel that backs this tree.
void setKeyboardSelectionPolicy(HasKeyboardSelectionPolicy.KeyboardSelectionPolicy policy)
Protected Methods
<T> NodeInfo<?> getNodeInfo(T value)
Get the TreeViewModel.NodeInfo that will provide the information to retrieve and display the children of the specified value.
boolean isKeyboardSelectionDisabled()
Check if keyboard selection is disabled.
boolean isLeaf(Object value)
Check if the value is known to be a leaf node.
[Expand]
Inherited Methods
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.IsWidget

Public Constructors

public AbstractCellTree (TreeViewModel viewModel)

Construct a new CellTree with the specified TreeViewModel and root value.

Parameters
viewModel the TreeViewModel that backs the tree

Public Methods

public HandlerRegistration addCloseHandler (CloseHandler<TreeNode> handler)

public HandlerRegistration addOpenHandler (OpenHandler<TreeNode> handler)

public HasKeyboardSelectionPolicy.KeyboardSelectionPolicy getKeyboardSelectionPolicy ()

Returns
  • the selection policy

public abstract TreeNode getRootTreeNode ()

Get the root TreeNode.

Returns

public TreeViewModel getTreeViewModel ()

Get the TreeViewModel that backs this tree.

Returns

public void setKeyboardSelectionPolicy (HasKeyboardSelectionPolicy.KeyboardSelectionPolicy policy)

Parameters
policy the selection policy

Protected Methods

protected NodeInfo<?> getNodeInfo (T value)

Get the TreeViewModel.NodeInfo that will provide the information to retrieve and display the children of the specified value.

Parameters
value the value in the parent node

protected boolean isKeyboardSelectionDisabled ()

Check if keyboard selection is disabled.

Returns
  • true if disabled, false if enabled.

protected boolean isLeaf (Object value)

Check if the value is known to be a leaf node.

Parameters
value the value at the node
Returns
  • true if the node is known to be a leaf node, false otherwise