ccc.client.gwt.widgets
Class Tree

java.lang.Object
  extended by ccc.client.gwt.widgets.Tree
Direct Known Subclasses:
ActionTree, CommentTree, UserTree

public abstract class Tree
extends java.lang.Object

Base class for user interface trees.

Author:
Civic Computing Ltd.

Field Summary
protected  com.extjs.gxt.ui.client.store.TreeStore<com.extjs.gxt.ui.client.data.ModelData> _store
          _store : TreeStore.
protected  com.extjs.gxt.ui.client.widget.treepanel.TreePanel<com.extjs.gxt.ui.client.data.ModelData> _tree
          _tree : TreePanel.
protected static boolean ADD_ALL_CHILDREN
          ADD_ALL_CHILDREN : boolean.
protected static java.lang.String BACKGROUND_ATTRIBUTE
          BACKGROUND_ATTRIBUTE : String.
protected static java.lang.String BACKGROUND_COLOUR
          BACKGROUND_COLOUR : String.
protected static boolean DONT_ADD_CHILDREN
          DONT_ADD_CHILDREN : boolean.
protected static boolean EXPANDED
          EXPANDED : boolean.
protected static boolean IS_LEAF
          IS_LEAF : boolean.
protected static boolean IS_NOT_LEAF
          IS_NOT_LEAF : boolean.
protected static boolean NOT_EXPANDED
          NOT_EXPANDED : boolean.
protected static java.lang.String NULL_ICON_PATH
          NULL_ICON_PATH : String.
 
Constructor Summary
Tree()
          Constructor.
 
Method Summary
protected  com.extjs.gxt.ui.client.data.ModelData getNewItem(java.lang.String name, java.lang.String id)
          Creates BaseModelData object for a tree with null icon path.
protected  com.extjs.gxt.ui.client.data.ModelData getNewItem(java.lang.String name, java.lang.String id, java.lang.String iconPath)
          Creates BaseModelData object for a tree.
 com.extjs.gxt.ui.client.widget.treepanel.TreePanel<com.extjs.gxt.ui.client.data.ModelData> getTree()
          Accessor.
abstract  void showTable()
          Add tree to parent panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_ICON_PATH

protected static final java.lang.String NULL_ICON_PATH
NULL_ICON_PATH : String.


BACKGROUND_COLOUR

protected static final java.lang.String BACKGROUND_COLOUR
BACKGROUND_COLOUR : String.

See Also:
Constant Field Values

BACKGROUND_ATTRIBUTE

protected static final java.lang.String BACKGROUND_ATTRIBUTE
BACKGROUND_ATTRIBUTE : String.

See Also:
Constant Field Values

IS_LEAF

protected static final boolean IS_LEAF
IS_LEAF : boolean.

See Also:
Constant Field Values

IS_NOT_LEAF

protected static final boolean IS_NOT_LEAF
IS_NOT_LEAF : boolean.

See Also:
Constant Field Values

EXPANDED

protected static final boolean EXPANDED
EXPANDED : boolean.

See Also:
Constant Field Values

NOT_EXPANDED

protected static final boolean NOT_EXPANDED
NOT_EXPANDED : boolean.

See Also:
Constant Field Values

ADD_ALL_CHILDREN

protected static final boolean ADD_ALL_CHILDREN
ADD_ALL_CHILDREN : boolean.

See Also:
Constant Field Values

DONT_ADD_CHILDREN

protected static final boolean DONT_ADD_CHILDREN
DONT_ADD_CHILDREN : boolean.

See Also:
Constant Field Values

_store

protected final com.extjs.gxt.ui.client.store.TreeStore<com.extjs.gxt.ui.client.data.ModelData> _store
_store : TreeStore.


_tree

protected final com.extjs.gxt.ui.client.widget.treepanel.TreePanel<com.extjs.gxt.ui.client.data.ModelData> _tree
_tree : TreePanel.

Constructor Detail

Tree

public Tree()
Constructor.

Method Detail

getTree

public com.extjs.gxt.ui.client.widget.treepanel.TreePanel<com.extjs.gxt.ui.client.data.ModelData> getTree()
Accessor.

Returns:
The tree.

getNewItem

protected com.extjs.gxt.ui.client.data.ModelData getNewItem(java.lang.String name,
                                                            java.lang.String id)
Creates BaseModelData object for a tree with null icon path.

Parameters:
name - Name of the model.
id - Id of the model.
Returns:
The ModelData object with set values.

getNewItem

protected com.extjs.gxt.ui.client.data.ModelData getNewItem(java.lang.String name,
                                                            java.lang.String id,
                                                            java.lang.String iconPath)
Creates BaseModelData object for a tree.

Parameters:
name - Name of the model.
id - Id of the model.
iconPath - Path for the icon.
Returns:
The ModelData object with set values.

showTable

public abstract void showTable()
Add tree to parent panel.



Copyright © 2010. All Rights Reserved.