java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.fm.gui.fmTreeNode
- All Implemented Interfaces:
- java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
- public class fmTreeNode
- extends javax.swing.tree.DefaultMutableTreeNode
Entities represent JNR tree nodes and abstract access to the RSS entries
| 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 |
NORMAL_STATE
public static final int NORMAL_STATE
- See Also:
- Constant Field Values
QUEUED_FOR_UPDATED
public static final int QUEUED_FOR_UPDATED
- See Also:
- Constant Field Values
UPDATE_FAILED
public static final int UPDATE_FAILED
- See Also:
- Constant Field Values
isStringNode
boolean isStringNode
state
int state
fmTreeNode
public fmTreeNode(java.lang.String title)
- Constructor for the root nodes.
As soon as standard String class isn't a parent for
RSS entities and doesn't implement specific getDescription()...,
the fmTreeNode entities with a string as a user object
must be used only as root nodes, or as usual nodes consider the
getDescription() like methods will never be used.
fmTreeNode
public fmTreeNode(com.fm.rss.rssAbstractEntry e)
setState
public void setState(int newState)
isCategory
public boolean isCategory()
- Check if node entry is a category
getID
public int getID()
getDescription
public java.lang.String getDescription()
updateWith
public void updateWith(com.fm.rss.rssAbstractEntry e)
toString
public java.lang.String toString()
- Description copied from class:
javax.swing.tree.DefaultMutableTreeNode
- Returns a string representation of the node. This implementation returns
getUserObject().toString(), or null if there
is no user object.
setUserObject
public void setUserObject(java.lang.Object t)
- Sets user object to specified value
This is a mostly workaround about tree editing operations.
When tree nodes are edited by the user, a new value is set using
setUserObject() method by passing string value to it. As soon as
we have custom objects as tree nodes we should carefully transform
given value