de.winterfish.neon.model
Class DataFolder
java.lang.Object
|
+--de.winterfish.neon.model.DataNode
|
+--de.winterfish.neon.model.DataFolder
- All Implemented Interfaces:
- javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
- Direct Known Subclasses:
- NFolder
- public abstract class DataFolder
- extends DataNode
- implements javax.swing.tree.MutableTreeNode
| Methods inherited from class de.winterfish.neon.model.DataNode |
delete, duplicate, equals, getContent, getIcon, getInputStream, getName, getParent, getPath, getType, getURI, getURL, isDeleted, isRoot, removeFromParent, setContent, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.MutableTreeNode |
removeFromParent |
| Methods inherited from interface javax.swing.tree.TreeNode |
getParent |
activityCount
public static int activityCount
INACTIVE
public static final int INACTIVE
- See Also:
- Constant Field Values
ACTIVE
public static final int ACTIVE
- See Also:
- Constant Field Values
DESTROYED
public static final int DESTROYED
- See Also:
- Constant Field Values
DataFolder
protected DataFolder(DataNodeFactory factory,
java.lang.String name,
DataType type,
DataFolder parent,
NeonGui gui)
activate
public void activate()
isActive
public boolean isActive()
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf in interface javax.swing.tree.TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode
children
public java.util.Enumeration children()
- Specified by:
children in interface javax.swing.tree.TreeNode
getChildAt
public javax.swing.tree.TreeNode getChildAt(int i)
- Specified by:
getChildAt in interface javax.swing.tree.TreeNode
getDocumentAt
public DataNode getDocumentAt(int i)
getChild
public DataNode getChild(java.lang.String name)
getChildCount
public int getChildCount()
- Specified by:
getChildCount in interface javax.swing.tree.TreeNode
getDocumentCount
public int getDocumentCount()
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
- Specified by:
getIndex in interface javax.swing.tree.TreeNode
getNodeIndex
public int getNodeIndex(DataNode node)
isFolder
public boolean isFolder()
- Overrides:
isFolder in class DataNode
insert
public void insert(javax.swing.tree.MutableTreeNode child,
int index)
- Specified by:
insert in interface javax.swing.tree.MutableTreeNode
remove
public void remove(int index)
- Specified by:
remove in interface javax.swing.tree.MutableTreeNode
remove
public void remove(javax.swing.tree.MutableTreeNode node)
- Specified by:
remove in interface javax.swing.tree.MutableTreeNode
remove
public void remove(DataNode node)
setUserObject
public void setUserObject(java.lang.Object object)
- Specified by:
setUserObject in interface javax.swing.tree.MutableTreeNode
setParent
public void setParent(javax.swing.tree.MutableTreeNode newParent)
- Description copied from class:
DataNode
- Moves a NodeNode
- Specified by:
setParent in interface javax.swing.tree.MutableTreeNode- Overrides:
setParent in class DataNode
addChild
public void addChild(javax.swing.tree.TreeNode node)
addFolder
public void addFolder(DataFolder node)
addDocument
public void addDocument(DataNode node)
getFolders
public java.util.Iterator getFolders()
getDocuments
public java.util.Iterator getDocuments()
isAncestor
public boolean isAncestor(DataNode node)
- Returns:
- True if this folder is an ancestor of node.
doesNameExist
protected boolean doesNameExist(java.lang.String name)
- Overrides:
doesNameExist in class DataNode