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.
-
FolderItem()
- FolderItem
-
FolderItem(String)
- FolderItem
-
FolderItem(String, Image)
- FolderItem
-
getArg()
- Returns arg.
-
getGadget()
- getGadget
-
getImage()
- gets the image of the imageGadget
-
getLabel()
- gets the label of the labelGadget
-
getLevel()
- gets the level of the item on the tree of TreeNodes
-
getParent()
- gets the parent object of the item
-
getRoot()
- gets the root of the TreeNode tree
-
getTreeLock()
- getTreeLock
-
getTreePanel()
- gets the panel this item is on
-
getVisibleCount()
- get the number of visible items including this item and any visible
descendents
-
isSelected()
- returns if the item is/is not selected
-
isShowing()
- isShowing
-
redraw()
- redraw
-
setArg(Object)
- Sets arg.
-
setImage(Image)
- sets the image of the imageGadget
-
setLabel(String)
- Sets the label of the labelGadget.
-
setParent(TreeNode)
- sets the parent of the item
-
setTreePanel(TreePanel)
- sets the panel this tree is on
-
toString()
- gets the label of the labelGadget
FolderItem
public FolderItem()
- FolderItem
FolderItem
public FolderItem(String label)
- FolderItem
- Parameters:
- label - - label of the FolderItem
FolderItem
public FolderItem(String label,
Image image)
- FolderItem
- Parameters:
- label - - label of the FolderItem
- image - - image for the FolderItem
getArg
public final Object getArg()
- Returns arg.
- Returns:
- arg.
setArg
public final void setArg(Object arg)
- Sets arg.
- Parameters:
- arg - new value for arg
getTreeLock
public final Object getTreeLock()
- getTreeLock
- Returns:
- Object
setLabel
public void setLabel(String label)
- Sets the label of the labelGadget.
- Parameters:
- label - label of the labelGadget
getLabel
public String getLabel()
- gets the label of the labelGadget
- Returns:
- label of the labelGadget
toString
public String toString()
- gets the label of the labelGadget
- Returns:
- label of the labelGadget
- Overrides:
- toString in class Object
setImage
public void setImage(Image image)
- sets the image of the imageGadget
- Parameters:
- image - - image of the imageGadget
getImage
public Image getImage()
- gets the image of the imageGadget
- Returns:
- image of the imageGadget
setParent
public void setParent(TreeNode parent)
- sets the parent of the item
- Parameters:
- parent - parent of this item
getParent
public final TreeNode getParent()
- gets the parent object of the item
- Returns:
- the parent object, if it is a TreeNode object, else null
getVisibleCount
public int getVisibleCount()
- get the number of visible items including this item and any visible
descendents
- Returns:
- int
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
getRoot
public final TreeItem getRoot()
- gets the root of the TreeNode tree
- Returns:
- root of TreeNode tree
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)
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)
redraw
public void redraw()
- redraw
isSelected
public boolean isSelected()
- returns if the item is/is not selected
- Returns:
- this item is/is not selected
isShowing
public boolean isShowing()
- isShowing
- Returns:
- true if there is no parent, or if the parent and ancestors are expanded
getGadget
public Gadget getGadget()
- getGadget
- Returns:
- Gadget
All Packages Class Hierarchy This Package Previous Next Index