com.borland.primetime.node
Class FolderNode
java.lang.Object
|
+--com.borland.primetime.node.Node
|
+--com.borland.primetime.node.LightweightNode
|
+--com.borland.primetime.node.FolderNode
- All Implemented Interfaces:
- java.lang.Comparable, NodeContainer
- public class FolderNode
- extends LightweightNode
- implements NodeContainer
Creates a LightweightNode to organize random files.
Field Summary |
static javax.swing.Icon |
ICON
The icon used for files for this class. |
static java.lang.String |
TYPE
Name which this Node uses when registering as a LightWeightNode type. |
Constructor Summary |
FolderNode(Project project,
Node parent,
java.lang.String name)
All LightweightNode subtypes must expose this constructor signature. |
Method Summary |
javax.swing.Icon |
getDisplayIcon()
Returns the default icon for a FolderNode. |
int |
getDisplaySequence()
Returns display sequence to help in sorting. |
static void |
initOpenTool(byte majorVersion,
byte minorVersion)
OpenTool initialization |
boolean |
isUserRenamable()
Returns if Node is renamable. |
Methods inherited from class com.borland.primetime.node.Node |
addNodeListener, check, compareTo, dumpNodes, dumpNodes, dumpNodes, equals, fireNodeRenamed, getChildren, getDisplayChildren, getLongDisplayName, getNodeID, getParent, getProject, getProperties, getProperty, getProperty, getProperty, hasChildren, hasDisplayChildren, hashCode, isModified, isPersistant, makePersistant, removeNodeListener, setParent, setProperty, setProperty, setProperty, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TYPE
public static final java.lang.String TYPE
- Name which this Node uses when registering as a LightWeightNode type.
ICON
public static final javax.swing.Icon ICON
- The icon used for files for this class.
FolderNode
public FolderNode(Project project,
Node parent,
java.lang.String name)
- All LightweightNode subtypes must expose this constructor signature.
- Parameters:
project
- The project (must not be null) that the node belongs to.parent
- The immediate parent (may be null and must be in same project).name
- Name of the Node.
initOpenTool
public static void initOpenTool(byte majorVersion,
byte minorVersion)
- OpenTool initialization
- Parameters:
majorVersion
- Major release number for which OpenTool is being initialized.minorVersion
- Minor release number for which OpenTool is being initialized.
isUserRenamable
public boolean isUserRenamable()
- Returns if Node is renamable.
- Overrides:
isUserRenamable
in class LightweightNode
- Returns:
- Always returns true.
getDisplayIcon
public javax.swing.Icon getDisplayIcon()
- Returns the default icon for a FolderNode.
- Overrides:
getDisplayIcon
in class Node
- Returns:
- Returns an icon.
getDisplaySequence
public int getDisplaySequence()
- Returns display sequence to help in sorting.
- Overrides:
getDisplaySequence
in class Node
- Returns:
- Returns number appropriate to this node type.