jaxx.runtime.swing.navigation
Class NavigationContextHelper<E extends NavigationNode<E>>

java.lang.Object
  extended by jaxx.runtime.swing.navigation.NavigationContextHelper<E>
Direct Known Subclasses:
AbstractNavigationHelper

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

@Deprecated
public class NavigationContextHelper<E extends NavigationNode<E>>
extends Object

To help getting and setting navigation tree objects from a JAXXContext.

There is seven types of data which can be hold in a context :

To make possible the use of more than one navigation tree system in a same context, we MUST distinguish the context entries definition. For this purpose, entries definition are normalized and prefixed by a unique prefix.

Here is the keys mapping :

Since:
1.7.2
Author:
tchemit

Field Summary
protected  JAXXContextEntryDef<NavigationHandler<E>> handlerContextEntry
          Deprecated.  
protected  JAXXContextEntryDef<NavigationModel<E>> modelContextEntry
          Deprecated.  
protected  String prefix
          Deprecated.  
protected  JAXXContextEntryDef<List<Object>> selectedBeansContextEntry
          Deprecated.  
protected  JAXXContextEntryDef<List<E>> selectedNodesContextEntry
          Deprecated.  
protected  JAXXContextEntryDef<List<String>> selectedPathsContextEntry
          Deprecated.  
protected  JAXXContextEntryDef<JTree> treeContextEntry
          Deprecated.  
protected  JAXXContextEntryDef<org.jdesktop.swingx.JXTreeTable> treeTableContextEntry
          Deprecated.  
 
Constructor Summary
NavigationContextHelper(String prefix)
          Deprecated.  
 
Method Summary
 NavigationModel<E> getModel(JAXXContext context)
          Deprecated.  
protected  JAXXContextEntryDef<NavigationModel<E>> getModelContextEntry()
          Deprecated.  
 String getPrefix()
          Deprecated.  
 Object getSelectedBean(JAXXContext context)
          Deprecated.  
protected  JAXXContextEntryDef<List<Object>> getSelectedBeanContextEntry()
          Deprecated.  
 List<Object> getSelectedBeans(JAXXContext context)
          Deprecated.  
 E getSelectedNode(JAXXContext context)
          Deprecated.  
protected  JAXXContextEntryDef<List<E>> getSelectedNodeContextEntry()
          Deprecated.  
 List<E> getSelectedNodes(JAXXContext context)
          Deprecated.  
 String getSelectedPath(JAXXContext context)
          Deprecated.  
protected  JAXXContextEntryDef<List<String>> getSelectedPathContextEntry()
          Deprecated.  
 List<String> getSelectedPaths(JAXXContext context)
          Deprecated.  
protected
<T> T
getSelectedValue(JAXXContextEntryDef<List<T>> entry, JAXXContext context)
          Deprecated.  
 JTree getTree(JAXXContext context)
          Deprecated.  
protected  JAXXContextEntryDef<JTree> getTreeContextEntry()
          Deprecated.  
 NavigationHandler<E> getTreeHandler(JAXXContext context)
          Deprecated.  
protected  JAXXContextEntryDef<NavigationHandler<E>> getTreeHandlerContextEntry()
          Deprecated.  
 org.jdesktop.swingx.JXTreeTable getTreeTable(JAXXContext context)
          Deprecated.  
protected  JAXXContextEntryDef<org.jdesktop.swingx.JXTreeTable> getTreeTableContextEntry()
          Deprecated.  
 void setModel(JAXXContext context, NavigationModel<E> model)
          Deprecated.  
 void setSelectedBean(JAXXContext context, Object bean)
          Deprecated.  
 void setSelectedBeans(JAXXContext context, List<Object> beans)
          Deprecated.  
 void setSelectedNode(JAXXContext context, E node)
          Deprecated.  
 void setSelectedNodes(JAXXContext context, List<E> nodes)
          Deprecated.  
 void setSelectedPath(JAXXContext context, String path)
          Deprecated.  
 void setSelectedPaths(JAXXContext context, List<String> paths)
          Deprecated.  
protected
<T> void
setSelectedValue(JAXXContextEntryDef<List<T>> entry, JAXXContext context, T value)
          Deprecated.  
protected
<T> void
setSelectedValues(JAXXContextEntryDef<List<T>> entry, JAXXContext context, List<T> values)
          Deprecated.  
 void setTree(JAXXContext context, JTree tree)
          Deprecated.  
 void setTreeHandler(JAXXContext context, NavigationHandler<E> handler)
          Deprecated.  
 void setTreeTable(JAXXContext context, org.jdesktop.swingx.JXTreeTable treeTable)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

protected final String prefix
Deprecated. 

selectedPathsContextEntry

protected JAXXContextEntryDef<List<String>> selectedPathsContextEntry
Deprecated. 

selectedBeansContextEntry

protected JAXXContextEntryDef<List<Object>> selectedBeansContextEntry
Deprecated. 

selectedNodesContextEntry

protected JAXXContextEntryDef<List<E extends NavigationNode<E>>> selectedNodesContextEntry
Deprecated. 

modelContextEntry

protected JAXXContextEntryDef<NavigationModel<E extends NavigationNode<E>>> modelContextEntry
Deprecated. 

handlerContextEntry

protected JAXXContextEntryDef<NavigationHandler<E extends NavigationNode<E>>> handlerContextEntry
Deprecated. 

treeContextEntry

protected JAXXContextEntryDef<JTree> treeContextEntry
Deprecated. 

treeTableContextEntry

protected JAXXContextEntryDef<org.jdesktop.swingx.JXTreeTable> treeTableContextEntry
Deprecated. 
Constructor Detail

NavigationContextHelper

public NavigationContextHelper(String prefix)
Deprecated. 
Method Detail

getPrefix

public String getPrefix()
Deprecated. 

getTree

public JTree getTree(JAXXContext context)
Deprecated. 

getTreeTable

public org.jdesktop.swingx.JXTreeTable getTreeTable(JAXXContext context)
Deprecated. 

getModel

public NavigationModel<E> getModel(JAXXContext context)
Deprecated. 

getTreeHandler

public NavigationHandler<E> getTreeHandler(JAXXContext context)
Deprecated. 

getSelectedPath

public String getSelectedPath(JAXXContext context)
Deprecated. 

getSelectedPaths

public List<String> getSelectedPaths(JAXXContext context)
Deprecated. 

getSelectedNode

public E getSelectedNode(JAXXContext context)
Deprecated. 

getSelectedNodes

public List<E> getSelectedNodes(JAXXContext context)
Deprecated. 

getSelectedBean

public Object getSelectedBean(JAXXContext context)
Deprecated. 

getSelectedBeans

public List<Object> getSelectedBeans(JAXXContext context)
Deprecated. 

setModel

public void setModel(JAXXContext context,
                     NavigationModel<E> model)
Deprecated. 

setTree

public void setTree(JAXXContext context,
                    JTree tree)
Deprecated. 

setTreeTable

public void setTreeTable(JAXXContext context,
                         org.jdesktop.swingx.JXTreeTable treeTable)
Deprecated. 

setTreeHandler

public void setTreeHandler(JAXXContext context,
                           NavigationHandler<E> handler)
Deprecated. 

setSelectedPath

public void setSelectedPath(JAXXContext context,
                            String path)
Deprecated. 

setSelectedPaths

public void setSelectedPaths(JAXXContext context,
                             List<String> paths)
Deprecated. 

setSelectedNode

public void setSelectedNode(JAXXContext context,
                            E node)
Deprecated. 

setSelectedNodes

public void setSelectedNodes(JAXXContext context,
                             List<E> nodes)
Deprecated. 

setSelectedBean

public void setSelectedBean(JAXXContext context,
                            Object bean)
Deprecated. 

setSelectedBeans

public void setSelectedBeans(JAXXContext context,
                             List<Object> beans)
Deprecated. 

getModelContextEntry

protected JAXXContextEntryDef<NavigationModel<E>> getModelContextEntry()
Deprecated. 

getTreeHandlerContextEntry

protected JAXXContextEntryDef<NavigationHandler<E>> getTreeHandlerContextEntry()
Deprecated. 

getSelectedBeanContextEntry

protected JAXXContextEntryDef<List<Object>> getSelectedBeanContextEntry()
Deprecated. 

getSelectedNodeContextEntry

protected JAXXContextEntryDef<List<E>> getSelectedNodeContextEntry()
Deprecated. 

getSelectedPathContextEntry

protected JAXXContextEntryDef<List<String>> getSelectedPathContextEntry()
Deprecated. 

getTreeContextEntry

protected JAXXContextEntryDef<JTree> getTreeContextEntry()
Deprecated. 

getTreeTableContextEntry

protected JAXXContextEntryDef<org.jdesktop.swingx.JXTreeTable> getTreeTableContextEntry()
Deprecated. 

getSelectedValue

protected <T> T getSelectedValue(JAXXContextEntryDef<List<T>> entry,
                                 JAXXContext context)
Deprecated. 

setSelectedValue

protected <T> void setSelectedValue(JAXXContextEntryDef<List<T>> entry,
                                    JAXXContext context,
                                    T value)
Deprecated. 

setSelectedValues

protected <T> void setSelectedValues(JAXXContextEntryDef<List<T>> entry,
                                     JAXXContext context,
                                     List<T> values)
Deprecated. 


Copyright © 2008-2010 CodeLutin. All Rights Reserved.