Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.fm.gui
Class fmTreeNode  view fmTreeNode download fmTreeNode.java

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bycom.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


Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
(package private)  boolean isStringNode
           
static int NORMAL_STATE
           
static int QUEUED_FOR_UPDATED
           
(package private)  int state
           
static int UPDATE_FAILED
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
fmTreeNode(com.fm.rss.rssAbstractEntry e)
           
fmTreeNode(java.lang.String title)
          Constructor for the root nodes.
 
Method Summary
 java.lang.String getDescription()
           
 int getID()
           
 boolean isCategory()
          Check if node entry is a category
 void setState(int newState)
           
 void setUserObject(java.lang.Object t)
          Sets user object to specified value
 java.lang.String toString()
          Returns a string representation of the node.
 void updateWith(com.fm.rss.rssAbstractEntry e)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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