Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.gui.imprt
Class ImportTreeNode  view ImportTreeNode download ImportTreeNode.java

java.lang.Object
  extended bycom.flexstor.common.awt.tree.FlexTreeNode
      extended bycom.flexstor.common.gui.imprt.ImportTreeNode
All Implemented Interfaces:
java.lang.Cloneable

public class ImportTreeNode
extends com.flexstor.common.awt.tree.FlexTreeNode
implements java.lang.Cloneable

Class represents Import Tree Node.


Field Summary
protected  java.lang.StringBuffer structure
          Exact file\dir structure represented by this node.
 
Fields inherited from class com.flexstor.common.awt.tree.FlexTreeNode
FIRST, LAST, nFirstChild, nLastChild, nNext, nParent, nPrev
 
Constructor Summary
ImportTreeNode()
          Constructor.
ImportTreeNode(java.lang.String label)
          Constructor that takes the label of the node.
ImportTreeNode(java.lang.String label, boolean bExpanded, boolean bRecurExpanded)
          Constructor that takes the label of the node.
ImportTreeNode(java.lang.String label, java.awt.Image image1, java.awt.Image image2)
          Constructor that takes the label of the node.
ImportTreeNode(java.lang.String label, java.awt.Image image1, java.awt.Image image2, boolean bExpanded, boolean bRecurExpanded)
          Constructor.
 
Method Summary
 void addBranch(java.lang.String branch)
          Adds a dir\file branch to the dir structure of the file\dir.
 java.lang.Object clone()
          Though not legal yet, but clones the object.
 ImportTreeNode findNode(java.lang.String label)
          Finds a node provided a label.
 java.lang.String getStructure()
          Returns the dir structure of the file\dir.
 void setStructure(java.lang.String stru)
          Sets the dir structure of the file\dir.
 
Methods inherited from class com.flexstor.common.awt.tree.FlexTreeNode
_paint, addChild, drawSelectedBorder, forceLayout, forceRepaint, getAllChildren, getAlwaysShowPlusMinus, getChild, getChildren, getCollapsedImage, getExpandedImage, getFirstChild, getForeground, getLabel, getLastVisible, getLeafNodes, getLevel, getNext, getNextParent, getNextSibling, getNextVisible, getParent, getPosition, getPrev, getPrevLast, getPrevSibling, getPrevVisible, getRemoved, getSelectedForeground, getTreeID, hasChildren, isChild, isDescendant, isExpanded, isRoot, isSelected, isTrueRoot, lastVisible, lineFromNode, nodeAtLine, remove, removeChildren, setAlwaysShowPlusMinus, setAsRoot, setAsTrueRoot, setDefaultImages, setExpanded, setForeground, setImages, setLabel, setRedraw, setSelected, setSelectedForeground
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

structure

protected java.lang.StringBuffer structure
Exact file\dir structure represented by this node.

Constructor Detail

ImportTreeNode

public ImportTreeNode()
Constructor.


ImportTreeNode

public ImportTreeNode(java.lang.String label)
Constructor that takes the label of the node. This is usually the name of the file\dir.


ImportTreeNode

public ImportTreeNode(java.lang.String label,
                      java.awt.Image image1,
                      java.awt.Image image2)
Constructor that takes the label of the node. This is usually the name of the file\dir. It also takes the expanded and collapsed images as parameters.


ImportTreeNode

public ImportTreeNode(java.lang.String label,
                      boolean bExpanded,
                      boolean bRecurExpanded)
Constructor that takes the label of the node. This is usually the name of the file\dir. It also takes A flag 'bExpanded' which determines whether the node to be expanded or not. The other flag 'bRecurExpanded' indicates whether it is expanded recursively or not, if to be expanded (bExpanded to should be true).


ImportTreeNode

public ImportTreeNode(java.lang.String label,
                      java.awt.Image image1,
                      java.awt.Image image2,
                      boolean bExpanded,
                      boolean bRecurExpanded)
Constructor.

Method Detail

getStructure

public java.lang.String getStructure()
Returns the dir structure of the file\dir.


setStructure

public void setStructure(java.lang.String stru)
Sets the dir structure of the file\dir.


addBranch

public void addBranch(java.lang.String branch)
Adds a dir\file branch to the dir structure of the file\dir.


findNode

public ImportTreeNode findNode(java.lang.String label)
Finds a node provided a label.


clone

public java.lang.Object clone()
Though not legal yet, but clones the object. NOTE that this cloning is on 'Need to clone' basis. Add properties as you might need them.