|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode edu.jhu.ece.iacl.jist.pipeline.tree.PackageNode
public class PackageNode
A package node is a directory that contains processing nodes.
Field Summary | |
---|---|
protected java.io.File |
dir
The dir. |
protected boolean |
editable
The editable. |
static java.awt.datatransfer.DataFlavor |
PACKAGE_FLAVOR
The Constant PACKAGE_FLAVOR. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
PackageNode(java.io.File dir)
Default constructor. |
|
PackageNode(java.io.File dir,
java.lang.String name)
Default constructor. |
Method Summary | |
---|---|
java.io.File |
getDirectory()
Get associated directory. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df)
implements Transferable interface. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
implements Transferable interface. |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
Returns true if the data flavor is package type. |
boolean |
isEditable()
Returns true if package name is editable. |
void |
moveAllChildrenIntoDirectory()
Move all children of this package into the directory corresponding to this package if they are not already in that directory. |
boolean |
moveIntoDirectory(PackageNode node)
Move package node into the directory corresponding to this package. |
boolean |
moveIntoDirectory(PipeAlgorithmFactory.AlgorithmNode node)
Move node into the directory corresponding to this package node. |
void |
setDirectory(java.io.File dir)
Set associated directory. |
void |
setEditable(boolean editable)
Set editable. |
void |
setUserObject(java.lang.Object userObject)
Set the user object for this package node, which should be the directory name. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.awt.datatransfer.DataFlavor PACKAGE_FLAVOR
protected java.io.File dir
protected boolean editable
Constructor Detail |
---|
public PackageNode(java.io.File dir)
dir
- directory that package node corresponds to.public PackageNode(java.io.File dir, java.lang.String name)
dir
- directory that this node corresponds to.name
- name of packageMethod Detail |
---|
public java.io.File getDirectory()
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
df
- the df
java.awt.datatransfer.UnsupportedFlavorException
- the unsupported flavor exception
java.io.IOException
- Signals that an I/O exception has occurred.public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
df
- the df
public boolean isEditable()
public void moveAllChildrenIntoDirectory()
public boolean moveIntoDirectory(PipeAlgorithmFactory.AlgorithmNode node)
node
- process node
public boolean moveIntoDirectory(PackageNode node)
node
- package node
public void setDirectory(java.io.File dir)
dir
- the dirpublic void setEditable(boolean editable)
editable
- true if use can edit package namepublic void setUserObject(java.lang.Object userObject)
setUserObject
in interface javax.swing.tree.MutableTreeNode
setUserObject
in class javax.swing.tree.DefaultMutableTreeNode
userObject
- the user object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |