jaxx.runtime.swing.navigation.treetable
Class NavigationTreeTableNode

java.lang.Object
  extended by org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
      extended by org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
          extended by jaxx.runtime.swing.navigation.treetable.NavigationTreeTableNode
All Implemented Interfaces:
Serializable, Cloneable, TreeNode, NavigationNode<NavigationTreeTableNode>, org.jdesktop.swingx.treetable.MutableTreeTableNode, org.jdesktop.swingx.treetable.TreeTableNode

Deprecated. since 2.1, prefer use the simplify api jaxx.runtime.swing.tree.

@Deprecated
public class NavigationTreeTableNode
extends org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
implements NavigationNode<NavigationTreeTableNode>

Node of the NavigationTreeTableModel.

Since:
2.0.0
Author:
sletellier
See Also:
NavigationTreeNode, Serialized Form

Field Summary
protected  Object bean
          Deprecated. The bean associated with the node ( the value can be obtain via the method getBean(JAXXContext) or directly set via method setBean(Object).
protected  String fullPath
          Deprecated. The full path for the node from the rood node.
protected  Class<?> internalClass
          Deprecated. The type of the related bean associated with the node.
protected  JAXXContextEntryDef<?> jaxxContextEntryDef
          Deprecated. The context entry definition to retrieve the bean.
protected  String jaxxContextEntryPath
          Deprecated. The jxPath to process to obtain real bean from the data retrieve in the context.
protected  String path
          Deprecated. The node path.
protected  String pathSeparator
          Deprecated. The path separator used to build the fullPath.
protected  Class<? extends JAXXObject> uIClass
          Deprecated. The UI class associated with the node.
protected  Class<? extends JAXXAction> uIHandlerClass
          Deprecated. The UI handler class associated with the node.
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
allowsChildren, children, parent, userObject
 
Constructor Summary
NavigationTreeTableNode(String pathSeparator, String navigationPath, JAXXContextEntryDef<?> jaxxContextEntryDef, String jaxxContextEntryPath)
          Deprecated.  
NavigationTreeTableNode(String pathSeparator, String navigationPath, Object jaxxContextEntryDef)
          Deprecated.  
 
Method Summary
 void add(NavigationTreeTableNode node)
          Deprecated.  
 Enumeration<? extends NavigationTreeTableNode> children()
          Deprecated.  
protected  String computeJXPath(String expr, NavigationTreeTableNode parentNode)
          Deprecated.  
 Object getBean()
          Deprecated.  
 Object getBean(JAXXContext context)
          Deprecated. Obtain the associated bean value from context corresponding to node
 NavigationTreeTableNode getChild(String path)
          Deprecated.  
 NavigationTreeTableNode getChildAt(int index)
          Deprecated.  
protected  NavigationTreeTableNode getFirstAncestorWithDef()
          Deprecated.  
 String getFullPath()
          Deprecated.  
 int getIndex(NavigationTreeTableNode node)
          Deprecated.  
 Class<?> getInternalClass()
          Deprecated.  
 JAXXContextEntryDef<?> getJaxxContextEntryDef()
          Deprecated.  
 String getJaxxContextEntryPath()
          Deprecated.  
 String getNodePath()
          Deprecated.  
 NavigationTreeTableNode getParent()
          Deprecated.  
 NavigationTreeTableNode[] getPath()
          Deprecated.  
 String getPathSeparator()
          Deprecated.  
 NavigationTreeTableNode[] getPathToRoot(NavigationTreeTableNode aNode, int depth)
          Deprecated.  
 NavigationNodeRenderer getRenderer()
          Deprecated.  
 Class<? extends JAXXObject> getUIClass()
          Deprecated.  
 Class<? extends JAXXAction> getUIHandlerClass()
          Deprecated.  
 void insert(NavigationTreeTableNode child, int index)
          Deprecated.  
 boolean isRoot()
          Deprecated.  
 void reload(JAXXContext context)
          Deprecated.  
 void remove(NavigationTreeTableNode node)
          Deprecated.  
 void setBean(Object bean)
          Deprecated.  
 void setInternalClass(Class<?> internalClass)
          Deprecated.  
 void setJaxxContextEntryDef(JAXXContextEntryDef<?> jaxxContextEntryDef)
          Deprecated.  
 void setJaxxContextEntryPath(String jaxxContextEntryPath)
          Deprecated.  
 void setNodePath(String navigationPath)
          Deprecated.  
 void setParent(NavigationTreeTableNode newParent)
          Deprecated.  
 void setRenderer(NavigationNodeRenderer renderer)
          Deprecated.  
 void setUIClass(Class<? extends JAXXObject> uIClass)
          Deprecated.  
 void setUIHandlerClass(Class<? extends JAXXAction> uIHandlerClass)
          Deprecated.  
 
Methods inherited from class org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
getColumnCount, getValueAt, isEditable, setValueAt
 
Methods inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
add, createChildrenList, getAllowsChildren, getChildCount, getIndex, getUserObject, insert, isLeaf, remove, remove, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jaxx.runtime.swing.navigation.NavigationNode
getAllowsChildren, getChildCount, getUserObject, isLeaf, remove, removeFromParent, setUserObject
 

Field Detail

pathSeparator

protected final String pathSeparator
Deprecated. 
The path separator used to build the fullPath.

See Also:
path, fullPath

path

protected String path
Deprecated. 
The node path.

Used to build the fullPath which gives a unique identifier of the node.

See Also:
pathSeparator, fullPath

fullPath

protected String fullPath
Deprecated. 
The full path for the node from the rood node.

This path is build by appending nodes path from the root node to this node, between each path we introduce the pathSeparator.

Exemple :

 root
   $root
    `-- child1
         `-- child2
 
will given $root/child1/child2.

See Also:
pathSeparator, path

uIClass

protected Class<? extends JAXXObject> uIClass
Deprecated. 
The UI class associated with the node.

This class can be null, in that case, the AbstractNavigationModelBuilder.defaultUIClass will be used while building the model.


uIHandlerClass

protected Class<? extends JAXXAction> uIHandlerClass
Deprecated. 
The UI handler class associated with the node.

This class can be null, in that case, the AbstractNavigationModelBuilder.defaultUIHandlerClass will be used while building the model.


jaxxContextEntryDef

protected JAXXContextEntryDef<?> jaxxContextEntryDef
Deprecated. 
The context entry definition to retrieve the bean.

Note: If not set - the bean will be retrieve on a ancestor node.


jaxxContextEntryPath

protected String jaxxContextEntryPath
Deprecated. 
The jxPath to process to obtain real bean from the data retrieve in the context.

Note: If not set -no jxpath will be apply on the bean from context.


bean

protected transient Object bean
Deprecated. 
The bean associated with the node ( the value can be obtain via the method getBean(JAXXContext) or directly set via method setBean(Object).

cache of bean associated with bean to improve performance


internalClass

protected Class<?> internalClass
Deprecated. 
The type of the related bean associated with the node.

Note: This type is here to override the NodeRenderer internalClass, since we could need to override this data.

If this property is let to null, then we will use the NodeRenderer one

Constructor Detail

NavigationTreeTableNode

public NavigationTreeTableNode(String pathSeparator,
                               String navigationPath,
                               Object jaxxContextEntryDef)
Deprecated. 

NavigationTreeTableNode

public NavigationTreeTableNode(String pathSeparator,
                               String navigationPath,
                               JAXXContextEntryDef<?> jaxxContextEntryDef,
                               String jaxxContextEntryPath)
Deprecated. 
Method Detail

getRenderer

public NavigationNodeRenderer getRenderer()
Deprecated. 
Specified by:
getRenderer in interface NavigationNode<NavigationTreeTableNode>
Returns:
the text node renderer (store in AbstractMutableTreeTableNode.userObject property.

setRenderer

public void setRenderer(NavigationNodeRenderer renderer)
Deprecated. 
Specified by:
setRenderer in interface NavigationNode<NavigationTreeTableNode>

getPathSeparator

public String getPathSeparator()
Deprecated. 
Specified by:
getPathSeparator in interface NavigationNode<NavigationTreeTableNode>

getNodePath

public String getNodePath()
Deprecated. 
Specified by:
getNodePath in interface NavigationNode<NavigationTreeTableNode>

setNodePath

public void setNodePath(String navigationPath)
Deprecated. 
Specified by:
setNodePath in interface NavigationNode<NavigationTreeTableNode>

getUIClass

public Class<? extends JAXXObject> getUIClass()
Deprecated. 
Specified by:
getUIClass in interface NavigationNode<NavigationTreeTableNode>

setUIClass

public void setUIClass(Class<? extends JAXXObject> uIClass)
Deprecated. 
Specified by:
setUIClass in interface NavigationNode<NavigationTreeTableNode>

setInternalClass

public void setInternalClass(Class<?> internalClass)
Deprecated. 
Specified by:
setInternalClass in interface NavigationNode<NavigationTreeTableNode>

getUIHandlerClass

public Class<? extends JAXXAction> getUIHandlerClass()
Deprecated. 
Specified by:
getUIHandlerClass in interface NavigationNode<NavigationTreeTableNode>

setUIHandlerClass

public void setUIHandlerClass(Class<? extends JAXXAction> uIHandlerClass)
Deprecated. 
Specified by:
setUIHandlerClass in interface NavigationNode<NavigationTreeTableNode>

getJaxxContextEntryDef

public JAXXContextEntryDef<?> getJaxxContextEntryDef()
Deprecated. 
Specified by:
getJaxxContextEntryDef in interface NavigationNode<NavigationTreeTableNode>

setJaxxContextEntryDef

public void setJaxxContextEntryDef(JAXXContextEntryDef<?> jaxxContextEntryDef)
Deprecated. 
Specified by:
setJaxxContextEntryDef in interface NavigationNode<NavigationTreeTableNode>

getJaxxContextEntryPath

public String getJaxxContextEntryPath()
Deprecated. 
Specified by:
getJaxxContextEntryPath in interface NavigationNode<NavigationTreeTableNode>

setJaxxContextEntryPath

public void setJaxxContextEntryPath(String jaxxContextEntryPath)
Deprecated. 
Specified by:
setJaxxContextEntryPath in interface NavigationNode<NavigationTreeTableNode>

getInternalClass

public Class<?> getInternalClass()
Deprecated. 
Specified by:
getInternalClass in interface NavigationNode<NavigationTreeTableNode>

getFullPath

public String getFullPath()
Deprecated. 
Specified by:
getFullPath in interface NavigationNode<NavigationTreeTableNode>
Returns:
the fully context path of the node from the root node to this.

getFirstAncestorWithDef

protected NavigationTreeTableNode getFirstAncestorWithDef()
Deprecated. 
Returns:
the first ancestor with a none null jaxxContextEntryDef or null if none find..

computeJXPath

protected String computeJXPath(String expr,
                               NavigationTreeTableNode parentNode)
Deprecated. 

getBean

public Object getBean()
Deprecated. 
Specified by:
getBean in interface NavigationNode<NavigationTreeTableNode>

setBean

public void setBean(Object bean)
Deprecated. 
Specified by:
setBean in interface NavigationNode<NavigationTreeTableNode>

reload

public void reload(JAXXContext context)
Deprecated. 
Specified by:
reload in interface NavigationNode<NavigationTreeTableNode>

getBean

public Object getBean(JAXXContext context)
Deprecated. 
Obtain the associated bean value from context corresponding to node

Specified by:
getBean in interface NavigationNode<NavigationTreeTableNode>
Parameters:
context - the context to seek
Returns:
the value associated in context with the given context path

getChildAt

public NavigationTreeTableNode getChildAt(int index)
Deprecated. 
Specified by:
getChildAt in interface TreeNode
Specified by:
getChildAt in interface NavigationNode<NavigationTreeTableNode>
Specified by:
getChildAt in interface org.jdesktop.swingx.treetable.TreeTableNode
Overrides:
getChildAt in class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode

getParent

public NavigationTreeTableNode getParent()
Deprecated. 
Specified by:
getParent in interface TreeNode
Specified by:
getParent in interface NavigationNode<NavigationTreeTableNode>
Specified by:
getParent in interface org.jdesktop.swingx.treetable.TreeTableNode
Overrides:
getParent in class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode

getChild

public NavigationTreeTableNode getChild(String path)
Deprecated. 
Specified by:
getChild in interface NavigationNode<NavigationTreeTableNode>

children

public Enumeration<? extends NavigationTreeTableNode> children()
Deprecated. 
Specified by:
children in interface TreeNode
Specified by:
children in interface NavigationNode<NavigationTreeTableNode>
Specified by:
children in interface org.jdesktop.swingx.treetable.MutableTreeTableNode
Specified by:
children in interface org.jdesktop.swingx.treetable.TreeTableNode
Overrides:
children in class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode

insert

public void insert(NavigationTreeTableNode child,
                   int index)
Deprecated. 
Specified by:
insert in interface NavigationNode<NavigationTreeTableNode>

remove

public void remove(NavigationTreeTableNode node)
Deprecated. 
Specified by:
remove in interface NavigationNode<NavigationTreeTableNode>

setParent

public void setParent(NavigationTreeTableNode newParent)
Deprecated. 
Specified by:
setParent in interface NavigationNode<NavigationTreeTableNode>

getIndex

public int getIndex(NavigationTreeTableNode node)
Deprecated. 
Specified by:
getIndex in interface NavigationNode<NavigationTreeTableNode>

add

public void add(NavigationTreeTableNode node)
Deprecated. 
Specified by:
add in interface NavigationNode<NavigationTreeTableNode>

getPath

public NavigationTreeTableNode[] getPath()
Deprecated. 
Specified by:
getPath in interface NavigationNode<NavigationTreeTableNode>

getPathToRoot

public NavigationTreeTableNode[] getPathToRoot(NavigationTreeTableNode aNode,
                                               int depth)
Deprecated. 
Specified by:
getPathToRoot in interface NavigationNode<NavigationTreeTableNode>

isRoot

public boolean isRoot()
Deprecated. 
Specified by:
isRoot in interface NavigationNode<NavigationTreeTableNode>


Copyright © 2008-2010 CodeLutin. All Rights Reserved.