apps.mtdesktop.desktop.tree.nodes
Class TextNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by apps.mtdesktop.desktop.tree.nodes.AssetNode
          extended by apps.mtdesktop.desktop.tree.nodes.TextNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class TextNode
extends AssetNode

The Class TextNode.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
TextNode(java.io.File assetFile)
          Instantiates a new text node.
TextNode(java.lang.String text)
          Instantiates a new text node.
 
Method Summary
 javax.swing.Icon getIcon()
          Gets the icon.
 java.lang.String getText()
          Gets the text.
 void setText(java.lang.String text)
          Sets the text.
 
Methods inherited from class apps.mtdesktop.desktop.tree.nodes.AssetNode
getAssetFile, getAssetId, setAssetFile, setAssetId, setNodeTitle
 
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, 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, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextNode

public TextNode(java.io.File assetFile)
Instantiates a new text node.

Parameters:
assetFile - the asset file

TextNode

public TextNode(java.lang.String text)
Instantiates a new text node.

Parameters:
text - the text
Method Detail

getIcon

public javax.swing.Icon getIcon()
Description copied from class: AssetNode
Gets the icon.

Specified by:
getIcon in class AssetNode
Returns:
the icon

getText

public java.lang.String getText()
Gets the text.

Returns:
the text

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the new text