All Packages Class Hierarchy This Package Previous Next Index
Class jclass.bwt.JCOutlinerFolderNode
java.lang.Object
|
+----jclass.bwt.JCOutlinerNode
|
+----jclass.bwt.JCOutlinerFolderNode
- public class JCOutlinerFolderNode
- extends JCOutlinerNode
This class describes a folder node in a JCOutliner component.
- See Also:
- JCOutliner
-
children
- Sub-nodes of this folder.
-
state
- Folder's state.
-
JCOutlinerFolderNode(JCVector, int, Object)
- Creates a folder with an initial state with the specified children.
-
JCOutlinerFolderNode(JCVector, Object)
- Creates a folder with state FOLDER_OPEN_ALL with the specified children.
-
JCOutlinerFolderNode(Object)
- Creates an empty folder with state FOLDER_OPEN_ALL.
-
JCOutlinerFolderNode(Object, JCOutlinerFolderNode)
- Creates an empty folder with state FOLDER_OPEN_ALL with the specified parent.
-
addFolderNode(Object)
- Adds a folder with the specified label to this folder.
-
addNode(JCOutlinerNode)
- Adds a node to this folder.
-
addNode(JCOutlinerNode, int)
- Adds a node to this folder at the specified position.
-
addNode(Object)
- Adds a node with the specified label to this folder.
-
clone()
- Creates a clone of the folder.
-
getChildren()
- Gets the folder's children.
-
getState()
- Gets the folder's state.
-
removeChild(JCOutlinerNode)
- Removes a child (if it exists).
-
removeChildren()
- Removes all children (if any).
-
setChildren(JCVector)
- Adds a list of children, replacing the previous list (if any).
-
setState(int)
- Sets the folder's state:
BWTEnum.FOLDER_CLOSED Folder closed; no children visible (default)
BWTEnum.FOLDER_OPEN_NONE Folder open; no children visible
BWTEnum.FOLDER_OPEN_FOLDERS Folder open; only folder children visible
BWTEnum.FOLDER_OPEN_ITEMS Folder open; only non-folder children visible
BWTEnum.FOLDER_OPEN_ALL Folder open; all children visible
state
protected int state
- Folder's state.
children
protected JCVector children
- Sub-nodes of this folder.
JCOutlinerFolderNode
public JCOutlinerFolderNode(Object label)
- Creates an empty folder with state FOLDER_OPEN_ALL.
JCOutlinerFolderNode
public JCOutlinerFolderNode(Object label,
JCOutlinerFolderNode parent)
- Creates an empty folder with state FOLDER_OPEN_ALL with the specified parent.
JCOutlinerFolderNode
public JCOutlinerFolderNode(JCVector children,
Object label)
- Creates a folder with state FOLDER_OPEN_ALL with the specified children.
JCOutlinerFolderNode
public JCOutlinerFolderNode(JCVector children,
int state,
Object label)
- Creates a folder with an initial state with the specified children.
addNode
public JCOutlinerNode addNode(Object label)
- Adds a node with the specified label to this folder.
- Returns:
- the new node
addNode
public void addNode(JCOutlinerNode node)
- Adds a node to this folder.
addNode
public void addNode(JCOutlinerNode node,
int index)
- Adds a node to this folder at the specified position.
addFolderNode
public JCOutlinerFolderNode addFolderNode(Object label)
- Adds a folder with the specified label to this folder.
- Returns:
- the new node
getChildren
public JCVector getChildren()
- Gets the folder's children.
- Overrides:
- getChildren in class JCOutlinerNode
setChildren
public void setChildren(JCVector children)
- Adds a list of children, replacing the previous list (if any).
removeChildren
public void removeChildren()
- Removes all children (if any).
removeChild
public void removeChild(JCOutlinerNode child)
- Removes a child (if it exists).
getState
public int getState()
- Gets the folder's state.
- Overrides:
- getState in class JCOutlinerNode
setState
public void setState(int v)
- Sets the folder's state:
BWTEnum.FOLDER_CLOSED Folder closed; no children visible (default)
BWTEnum.FOLDER_OPEN_NONE Folder open; no children visible
BWTEnum.FOLDER_OPEN_FOLDERS Folder open; only folder children visible
BWTEnum.FOLDER_OPEN_ITEMS Folder open; only non-folder children visible
BWTEnum.FOLDER_OPEN_ALL Folder open; all children visible
clone
public synchronized Object clone()
- Creates a clone of the folder.
- Overrides:
- clone in class JCOutlinerNode
All Packages Class Hierarchy This Package Previous Next Index