All Packages Class Hierarchy This Package Previous Next Index
Interface dtai.gwt.TreeNode
- public interface TreeNode
- extends TreeItem
Objects of the TreeNode class hold the pertinent information
about TreeViewGadget objects, such as name, attributes, etc.
-
add(TreeItem)
- add
-
alterVisibleCount(int)
- change the number of visible items
-
getItem(int)
- getItem
-
getItemCount()
- getItemCount
-
getItemIndex(TreeItem)
- getItemIndex
-
getItems()
- getItems
-
insert(TreeItem, int)
- insert
-
isExpanded()
- isExpanded
-
remove(int)
- remove
-
remove(TreeItem)
- remove
-
setExpanded(boolean)
- setExpanded
add
public abstract void add(TreeItem child)
- add
- Parameters:
- child - the TreeItem to be added as a child of this TreeNode
insert
public abstract void insert(TreeItem child,
int pos)
- insert
- Parameters:
- child - the TreeItem to be inserted as a child of this TreeNode
- pos - position of the child to be inserted
remove
public abstract void remove(TreeItem child)
- remove
- Parameters:
- child - the TreeItem to be a child of this TreeNode
remove
public abstract void remove(int pos)
- remove
- Parameters:
- pos - the position to be removed
getItemCount
public abstract int getItemCount()
- getItemCount
- Returns:
- int
getItems
public abstract TreeItem[] getItems()
- getItems
- Returns:
- TreeItem[]
getItem
public abstract TreeItem getItem(int i)
- getItem
- Parameters:
- i - the position of the item to be returned
- Returns:
- TreeItem
getItemIndex
public abstract int getItemIndex(TreeItem item)
- getItemIndex
- Parameters:
- item - the item whose index is wanted
- Returns:
- int
setExpanded
public abstract void setExpanded(boolean expanded)
- setExpanded
- Parameters:
- expanded - new value for expanded variable
isExpanded
public abstract boolean isExpanded()
- isExpanded
- Returns:
- boolean
alterVisibleCount
public abstract void alterVisibleCount(int change)
- change the number of visible items
- Parameters:
- change - the number by which the visible descendent count changes
All Packages Class Hierarchy This Package Previous Next Index