public interface

TreeViewModel

com.google.gwt.view.client.TreeViewModel

Class Overview

A model of a tree.

Summary

Nested Classes
class TreeViewModel.DefaultNodeInfo<T> Default implementation of TreeViewModel.DefaultNodeInfo
interface TreeViewModel.NodeInfo<T> The info needed to create the children of a tree node. 
Public Methods
abstract <T> NodeInfo<?> getNodeInfo(T value)
Get the TreeViewModel.NodeInfo that will provide the ProvidesKey, Cell, and HasData instances to retrieve and display the children of the specified value.
abstract boolean isLeaf(Object value)
Check if the value is known to be a leaf node.

Public Methods

public abstract NodeInfo<?> getNodeInfo (T value)

Get the TreeViewModel.NodeInfo that will provide the ProvidesKey, Cell, and HasData instances to retrieve and display the children of the specified value.

Parameters
value the value in the parent node

public abstract 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