apps.mtdesktop.desktop.tree.nodes
Class AssetNode

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

public abstract class AssetNode
extends javax.swing.tree.DefaultMutableTreeNode

The Class AssetNode.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
AssetNode(java.io.File assetFile)
          Instantiates a new asset node.
 
Method Summary
 java.io.File getAssetFile()
          Gets the asset file.
 java.lang.String getAssetId()
          Gets the asset id.
abstract  javax.swing.Icon getIcon()
          Gets the icon.
 void setAssetFile(java.io.File file)
          Sets the asset file.
 void setAssetId(java.lang.String id)
          Sets the asset id.
 void setNodeTitle(java.lang.String title)
          Sets the node title.
 
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

AssetNode

public AssetNode(java.io.File assetFile)
Instantiates a new asset node.

Parameters:
assetFile - the asset file
Method Detail

getAssetFile

public java.io.File getAssetFile()
Gets the asset file.

Returns:
the asset file

getAssetId

public java.lang.String getAssetId()
Gets the asset id.

Returns:
the asset id

getIcon

public abstract javax.swing.Icon getIcon()
Gets the icon.

Returns:
the icon

setAssetFile

public void setAssetFile(java.io.File file)
Sets the asset file.

Parameters:
file - the new asset file

setAssetId

public void setAssetId(java.lang.String id)
Sets the asset id.

Parameters:
id - the new asset id

setNodeTitle

public void setNodeTitle(java.lang.String title)
Sets the node title.

Parameters:
title - the new node title