com.jurismarches.vradi.ui.admin.helpers
Class ThesaurusTreeTableHelper

java.lang.Object
  extended by jaxx.runtime.swing.nav.NavHelper<jaxx.runtime.swing.nav.treetable.NavTreeTableModel,org.jdesktop.swingx.JXTreeTable,jaxx.runtime.swing.nav.treetable.NavTreeTableBridge<N>,N>
      extended by jaxx.runtime.swing.nav.treetable.NavTreeTableHelper<VradiTreeTableNode>
          extended by com.jurismarches.vradi.ui.admin.helpers.ThesaurusTreeTableHelper
All Implemented Interfaces:
org.nuiton.wikitty.WikittyServiceListener

public class ThesaurusTreeTableHelper
extends jaxx.runtime.swing.nav.treetable.NavTreeTableHelper<VradiTreeTableNode>
implements org.nuiton.wikitty.WikittyServiceListener

Navigation tree helpers.

Author:
sletellier
See Also:
NavTreeHelper

Field Summary
protected  List<String> idsLoaded
           
protected  RootThesaurus rootThesaurus
           
 
Fields inherited from class jaxx.runtime.swing.nav.NavHelper
childLoadors, dataProvider, expandListener, selectionListener, treeModelListener
 
Fields inherited from interface org.nuiton.wikitty.WikittyServiceListener
CLEAR_EXTENSION_METHOD, CLEAR_WIKITTY_METHOD, PUT_EXTENSION_METHOD, PUT_WIKITTY_METHOD, REMOVE_EXTENSION_METHOD, REMOVE_WIKITTY_METHOD
 
Constructor Summary
ThesaurusTreeTableHelper()
          Create helper with first nodes are the root thesaurus
ThesaurusTreeTableHelper(RootThesaurus rootThesaurus)
          Create helper with first nodes are the root thesaurus in parm (for move)
ThesaurusTreeTableHelper(VradiDataProvider dataProvider)
          Create helper with first nodes are the root thesaurus
 
Method Summary
 void clearExtension(org.nuiton.wikitty.WikittyServiceEvent event)
           
 void clearWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
           
 VradiTreeTableNode createRootThesaurus(String rootThesaurusIdToAdd)
           
 VradiTreeTableNode createRootThesaurusAndSelect(String rootThesaurusIdToAdd)
           
 VradiTreeTableNode createThesaurus(String parentId, String thesaurusIdToAdd)
           
 VradiTreeTableNode createThesaurusAndSelect(String parentId, String thesaurusIdToAdd)
           
 VradiTreeTableNode createThesaurusChildOfRoot(String rootThesaurusId, String thesaurusIdToAdd)
           
 VradiTreeTableNode createThesaurusChildOfRootAndSelect(String rootThesaurusId, String thesaurusIdToAdd)
           
 jaxx.runtime.swing.nav.treetable.NavTreeTableModel createTreeModel()
           
protected  List<String> extractIds(List<Thesaurus> beans)
           
 VradiTreeTableNode findThesaurusNode(String thesaurusId)
           
 VradiTreeTableNode findThesaurusNode(Thesaurus thesaurus)
           
 VradiDataProvider getDataProvider()
           
protected  List<Thesaurus> getParentsPathThesaurus(org.nuiton.wikitty.WikittyProxy proxy, Thesaurus thesaurus)
           
static RootThesaurus getRootThesaurus(VradiTreeTableNode node)
           
static Thesaurus getThesaurus(VradiTreeTableNode node)
           
protected  void init(VradiDataProvider dataProvider)
           
 void putExtension(org.nuiton.wikitty.WikittyServiceEvent event)
           
 void putWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
           
protected  void refresh(VradiTreeTableNode node)
           
 void registerLoadedIds(VradiTreeTableNode node)
           
 void removeExtension(org.nuiton.wikitty.WikittyServiceEvent event)
           
 void removeWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
           
 void setUI(org.jdesktop.swingx.JXTreeTable tree, boolean addExpandTreeListener, boolean addOneClickSelectionListener, TreeSelectionListener listener, TreeWillExpandListener willExpandListener)
           
 void tryToSelect(Collection<Thesaurus> thesauruses)
          Try to select thesaurus pass in param
 void tryToSelect(List<String> thesaurusIds)
          Try to select thesaurus ids pass in param
 void tryToSelect(String id)
          Try to select thesaurus pass in param
 void tryToSelect(Thesaurus thesaurus)
          Try to select thesaurus pass in param
 void tryToUnselect(Collection<Thesaurus> thesauruses)
          Try to unselect thesaurus pass in param
 void tryToUnselect(List<String> thesaurusIds)
          Try to unselect thesaurus ids pass in param
 void tryToUnselect(String id)
          Try to unselect thesaurus pass in param
 void tryToUnselect(Thesaurus thesaurus)
          Try to unselect thesaurus pass in param
 
Methods inherited from class jaxx.runtime.swing.nav.treetable.NavTreeTableHelper
addSelectionPath, addSelectionPaths, createModel, expandPath, getSelectedNode, getSelectedNodes, getSelectionModel, getTreeCellRenderer, isExpanded, removeSelectionPath, removeSelectionPaths, scrollPathToVisible, setSelectionPath
 
Methods inherited from class jaxx.runtime.swing.nav.NavHelper
checkModel, findNode, getBridge, getChild, getChildLoador, getChildLoadors, getModel, getNode, getRootNode, getSelectedIds, getUI, insertNode, insertNode, loadAllNodes, moveNode, populateNode, refreshNode, removeNode, selectNode, selectNode, selectNodes, selectParentNode, setDataProvider, setUI, setUI, setUI, setUI, unSelectNode, unSelectNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootThesaurus

protected RootThesaurus rootThesaurus

idsLoaded

protected List<String> idsLoaded
Constructor Detail

ThesaurusTreeTableHelper

public ThesaurusTreeTableHelper()
Create helper with first nodes are the root thesaurus


ThesaurusTreeTableHelper

public ThesaurusTreeTableHelper(RootThesaurus rootThesaurus)
Create helper with first nodes are the root thesaurus in parm (for move)

Parameters:
rootThesaurus - root thesaurus to display

ThesaurusTreeTableHelper

public ThesaurusTreeTableHelper(VradiDataProvider dataProvider)
Create helper with first nodes are the root thesaurus

Parameters:
dataProvider - vradi data provider
Method Detail

init

protected void init(VradiDataProvider dataProvider)

setUI

public void setUI(org.jdesktop.swingx.JXTreeTable tree,
                  boolean addExpandTreeListener,
                  boolean addOneClickSelectionListener,
                  TreeSelectionListener listener,
                  TreeWillExpandListener willExpandListener)
Overrides:
setUI in class jaxx.runtime.swing.nav.treetable.NavTreeTableHelper<VradiTreeTableNode>

registerLoadedIds

public void registerLoadedIds(VradiTreeTableNode node)

tryToSelect

public void tryToSelect(String id)
Try to select thesaurus pass in param

Parameters:
id - of thesaurus to select

tryToSelect

public void tryToSelect(Thesaurus thesaurus)
Try to select thesaurus pass in param

Parameters:
thesaurus - to select

tryToSelect

public void tryToSelect(List<String> thesaurusIds)
Try to select thesaurus ids pass in param

Parameters:
thesaurusIds - list of thesaurus ids to select

tryToSelect

public void tryToSelect(Collection<Thesaurus> thesauruses)
Try to select thesaurus pass in param

Parameters:
thesauruses - list of thesaurus to select

tryToUnselect

public void tryToUnselect(String id)
Try to unselect thesaurus pass in param

Parameters:
id - of thesaurus to unselect

tryToUnselect

public void tryToUnselect(Thesaurus thesaurus)
Try to unselect thesaurus pass in param

Parameters:
thesaurus - to unselect

tryToUnselect

public void tryToUnselect(List<String> thesaurusIds)
Try to unselect thesaurus ids pass in param

Parameters:
thesaurusIds - list of thesaurus ids to select

tryToUnselect

public void tryToUnselect(Collection<Thesaurus> thesauruses)
Try to unselect thesaurus pass in param

Parameters:
thesauruses - list of thesaurus to unselect

findThesaurusNode

public VradiTreeTableNode findThesaurusNode(String thesaurusId)

findThesaurusNode

public VradiTreeTableNode findThesaurusNode(Thesaurus thesaurus)

getParentsPathThesaurus

protected List<Thesaurus> getParentsPathThesaurus(org.nuiton.wikitty.WikittyProxy proxy,
                                                  Thesaurus thesaurus)

extractIds

protected List<String> extractIds(List<Thesaurus> beans)

getDataProvider

public VradiDataProvider getDataProvider()
Overrides:
getDataProvider in class jaxx.runtime.swing.nav.NavHelper<jaxx.runtime.swing.nav.treetable.NavTreeTableModel,org.jdesktop.swingx.JXTreeTable,jaxx.runtime.swing.nav.treetable.NavTreeTableBridge<VradiTreeTableNode>,VradiTreeTableNode>

createTreeModel

public jaxx.runtime.swing.nav.treetable.NavTreeTableModel createTreeModel()

getRootThesaurus

public static RootThesaurus getRootThesaurus(VradiTreeTableNode node)

getThesaurus

public static Thesaurus getThesaurus(VradiTreeTableNode node)

refresh

protected void refresh(VradiTreeTableNode node)

createRootThesaurusAndSelect

public VradiTreeTableNode createRootThesaurusAndSelect(String rootThesaurusIdToAdd)

createRootThesaurus

public VradiTreeTableNode createRootThesaurus(String rootThesaurusIdToAdd)

createThesaurusAndSelect

public VradiTreeTableNode createThesaurusAndSelect(String parentId,
                                                   String thesaurusIdToAdd)

createThesaurus

public VradiTreeTableNode createThesaurus(String parentId,
                                          String thesaurusIdToAdd)

createThesaurusChildOfRootAndSelect

public VradiTreeTableNode createThesaurusChildOfRootAndSelect(String rootThesaurusId,
                                                              String thesaurusIdToAdd)

createThesaurusChildOfRoot

public VradiTreeTableNode createThesaurusChildOfRoot(String rootThesaurusId,
                                                     String thesaurusIdToAdd)

putWikitty

public void putWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
Specified by:
putWikitty in interface org.nuiton.wikitty.WikittyServiceListener

removeWikitty

public void removeWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
Specified by:
removeWikitty in interface org.nuiton.wikitty.WikittyServiceListener

clearWikitty

public void clearWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
Specified by:
clearWikitty in interface org.nuiton.wikitty.WikittyServiceListener

putExtension

public void putExtension(org.nuiton.wikitty.WikittyServiceEvent event)
Specified by:
putExtension in interface org.nuiton.wikitty.WikittyServiceListener

removeExtension

public void removeExtension(org.nuiton.wikitty.WikittyServiceEvent event)
Specified by:
removeExtension in interface org.nuiton.wikitty.WikittyServiceListener

clearExtension

public void clearExtension(org.nuiton.wikitty.WikittyServiceEvent event)
Specified by:
clearExtension in interface org.nuiton.wikitty.WikittyServiceListener


Copyright © 2009-2010 JurisMarches. All Rights Reserved.