All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.FolderItem

java.lang.Object
   |
   +----dtai.gwt.FolderItem

public class FolderItem
extends Object
implements TreeItem
Objects of the FolderItem class hold the pertinent information about TreeViewGadget objects, such as name, attributes, etc.


Constructor Index

 o FolderItem()
FolderItem
 o FolderItem(String)
FolderItem
 o FolderItem(String, Image)
FolderItem

Method Index

 o getArg()
Returns arg.
 o getGadget()
getGadget
 o getImage()
gets the image of the imageGadget
 o getLabel()
gets the label of the labelGadget
 o getLevel()
gets the level of the item on the tree of TreeNodes
 o getParent()
gets the parent object of the item
 o getRoot()
gets the root of the TreeNode tree
 o getTreeLock()
getTreeLock
 o getTreePanel()
gets the panel this item is on
 o getVisibleCount()
get the number of visible items including this item and any visible descendents
 o isSelected()
returns if the item is/is not selected
 o isShowing()
isShowing
 o redraw()
redraw
 o setArg(Object)
Sets arg.
 o setImage(Image)
sets the image of the imageGadget
 o setLabel(String)
Sets the label of the labelGadget.
 o setParent(TreeNode)
sets the parent of the item
 o setTreePanel(TreePanel)
sets the panel this tree is on
 o toString()
gets the label of the labelGadget

Constructors

 o FolderItem
 public FolderItem()
FolderItem

 o FolderItem
 public FolderItem(String label)
FolderItem

Parameters:
label - - label of the FolderItem
 o FolderItem
 public FolderItem(String label,
                   Image image)
FolderItem

Parameters:
label - - label of the FolderItem
image - - image for the FolderItem

Methods

 o getArg
 public final Object getArg()
Returns arg.

Returns:
arg.
 o setArg
 public final void setArg(Object arg)
Sets arg.

Parameters:
arg - new value for arg
 o getTreeLock
 public final Object getTreeLock()
getTreeLock

Returns:
Object
 o setLabel
 public void setLabel(String label)
Sets the label of the labelGadget.

Parameters:
label - label of the labelGadget
 o getLabel
 public String getLabel()
gets the label of the labelGadget

Returns:
label of the labelGadget
 o toString
 public String toString()
gets the label of the labelGadget

Returns:
label of the labelGadget
Overrides:
toString in class Object
 o setImage
 public void setImage(Image image)
sets the image of the imageGadget

Parameters:
image - - image of the imageGadget
 o getImage
 public Image getImage()
gets the image of the imageGadget

Returns:
image of the imageGadget
 o setParent
 public void setParent(TreeNode parent)
sets the parent of the item

Parameters:
parent - parent of this item
 o getParent
 public final TreeNode getParent()
gets the parent object of the item

Returns:
the parent object, if it is a TreeNode object, else null
 o getVisibleCount
 public int getVisibleCount()
get the number of visible items including this item and any visible descendents

Returns:
int
 o getLevel
 public int getLevel()
gets the level of the item on the tree of TreeNodes

Returns:
what level this item is on in the tree of TreeNodes
 o getRoot
 public final TreeItem getRoot()
gets the root of the TreeNode tree

Returns:
root of TreeNode tree
 o setTreePanel
 public void setTreePanel(TreePanel treePanel)
sets the panel this tree is on

Parameters:
treePanel - Panel this tree is on (parent of the root of this tree)
 o getTreePanel
 public final TreePanel getTreePanel()
gets the panel this item is on

Returns:
TreePanel this item is on (the parent of the root of this tree)
 o redraw
 public void redraw()
redraw

 o isSelected
 public boolean isSelected()
returns if the item is/is not selected

Returns:
this item is/is not selected
 o isShowing
 public boolean isShowing()
isShowing

Returns:
true if there is no parent, or if the parent and ancestors are expanded
 o getGadget
 public Gadget getGadget()
getGadget

Returns:
Gadget

All Packages  Class Hierarchy  This Package  Previous  Next  Index