com.tensegrity.wpalo.client.ui.mvc.fasttree
Interface HasFastMSTreeItems

All Known Implementing Classes:
FastMSTree, FastMSTreeItem, SelectingFastMSTreeItem

public interface HasFastMSTreeItems

A widget that implements this interface contains FastTreeItem children and can add and remove them.


Method Summary
 void addItem(FastMSTreeItem item)
          Adds another item as a child to this one.
 FastMSTreeItem addItem(java.lang.String itemText)
          Adds a child tree item containing the specified text.
 FastMSTreeItem addItem(com.google.gwt.user.client.ui.Widget widget)
          Adds a child tree item containing the specified widget.
 void fastAddItem(FastMSTreeItem item)
           
 FastMSTreeItem getChild(int index)
          Gets the child at the specified index.
 int getChildCount()
          Gets the number of children contained in this item.
 int getChildIndex(FastMSTreeItem child)
          Gets the index of the specified child item.
 void removeItem(FastMSTreeItem item)
          Removes one of this item's children.
 

Method Detail

addItem

void addItem(FastMSTreeItem item)
Adds another item as a child to this one.

Parameters:
item - the item to be added

fastAddItem

void fastAddItem(FastMSTreeItem item)

addItem

FastMSTreeItem addItem(java.lang.String itemText)
Adds a child tree item containing the specified text.

Parameters:
itemText - the text to be added
Returns:
the item that was added

addItem

FastMSTreeItem addItem(com.google.gwt.user.client.ui.Widget widget)
Adds a child tree item containing the specified widget.

Parameters:
widget - the widget to be added
Returns:
the item that was added

getChild

FastMSTreeItem getChild(int index)
Gets the child at the specified index.

Parameters:
index - the index to be retrieved
Returns:
the item at that index

getChildCount

int getChildCount()
Gets the number of children contained in this item.

Returns:
this item's child count.

getChildIndex

int getChildIndex(FastMSTreeItem child)
Gets the index of the specified child item.

Parameters:
child - the child item to be found
Returns:
the child's index, or -1 if none is found

removeItem

void removeItem(FastMSTreeItem item)
Removes one of this item's children.

Parameters:
item - the item to be removed