com.jurismarches.vradi.ui.offer.thesaurus.helpers
Class ThesaurusTreeHelper

java.lang.Object
  extended by jaxx.runtime.swing.nav.NavHelper<DefaultTreeModel,JTree,jaxx.runtime.swing.nav.tree.NavTreeBridge<N>,N>
      extended by jaxx.runtime.swing.nav.tree.NavTreeHelper<VradiTreeNode>
          extended by com.jurismarches.vradi.ui.offer.thesaurus.helpers.ThesaurusTreeHelper
All Implemented Interfaces:
org.nuiton.wikitty.WikittyServiceListener

public class ThesaurusTreeHelper
extends jaxx.runtime.swing.nav.tree.NavTreeHelper<VradiTreeNode>
implements org.nuiton.wikitty.WikittyServiceListener

Navigation tree helpers.

Author:
sletellier
See Also:
NavTreeHelper

Field Summary
protected  boolean listening
           
protected  RootThesaurus rootThesaurus
           
protected  Thesaurus thesaurus
           
 
Fields inherited from class jaxx.runtime.swing.nav.NavHelper
childLoadors, dataProvider, expandListener, selectionListener, treeModelListener
 
Constructor Summary
ThesaurusTreeHelper(VradiDataProvider dataProvider)
          Create helper with first nodes are the root thesaurus
ThesaurusTreeHelper(VradiDataProvider dataProvider, RootThesaurus rootThesaurus)
          Create helper with root thesaurus for root node
ThesaurusTreeHelper(VradiDataProvider dataProvider, Thesaurus thesaurus)
          Create helper with thesaurus for root node
 
Method Summary
 void clearExtension(org.nuiton.wikitty.WikittyServiceEvent event)
           
 void clearWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
           
 TreeModel createTreeModel()
           
protected  List<String> extractIds(List<Thesaurus> beans)
           
 VradiDataProvider getDataProvider()
           
protected  int getIndexOfRootThesaurusSorted(String wikittyId)
           
protected  int getIndexOfThesaurusSorted(String wikittyId)
           
static RootThesaurus getRootThesaurus(VradiTreeNode node)
           
static RootThesaurus getRootThesaurus(VradiTreeTableNode node)
           
static Thesaurus getThesaurus(VradiTreeNode 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(VradiTreeNode parentNode)
           
 void removeExtension(org.nuiton.wikitty.WikittyServiceEvent event)
           
 void removeWikitty(org.nuiton.wikitty.WikittyServiceEvent event)
           
 void tryToSelect(Collection<String> thesaurusIds)
          Try to select thesaurus ids pass in param
 void tryToSelect(List<Thesaurus> thesaurus)
          Try to select thesaurus pass in param
 void tryToUnselect(Collection<String> thesaurusIds)
          Try to unselect thesaurus ids pass in param
 void tryToUnselect(List<Thesaurus> thesaurus)
          Try to unselect thesaurus pass in param
 
Methods inherited from class jaxx.runtime.swing.nav.tree.NavTreeHelper
addSelectionPath, addSelectionPaths, createModel, expandPath, getSelectedNode, getSelectedNodes, getSelectionModel, getTreeCellRenderer, isExpanded, removeSelectionPath, removeSelectionPaths, scrollPathToVisible, setSelectionPath, setUI
 
Methods inherited from class jaxx.runtime.swing.nav.NavHelper
checkModel, findNode, getBridge, 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

thesaurus

protected Thesaurus thesaurus

listening

protected boolean listening
Constructor Detail

ThesaurusTreeHelper

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

Parameters:
dataProvider - data provider

ThesaurusTreeHelper

public ThesaurusTreeHelper(VradiDataProvider dataProvider,
                           RootThesaurus rootThesaurus)
Create helper with root thesaurus for root node

Parameters:
dataProvider - data provider
rootThesaurus - root thesaurus for root node

ThesaurusTreeHelper

public ThesaurusTreeHelper(VradiDataProvider dataProvider,
                           Thesaurus thesaurus)
Create helper with thesaurus for root node

Parameters:
dataProvider - data provider
thesaurus - thesaurus for root node
Method Detail

init

protected void init(VradiDataProvider dataProvider)

getDataProvider

public VradiDataProvider getDataProvider()
Overrides:
getDataProvider in class jaxx.runtime.swing.nav.NavHelper<DefaultTreeModel,JTree,jaxx.runtime.swing.nav.tree.NavTreeBridge<VradiTreeNode>,VradiTreeNode>

createTreeModel

public TreeModel createTreeModel()

tryToSelect

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

Parameters:
thesaurus - list of thesaurus to select

tryToSelect

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

Parameters:
thesaurusIds - list of thesaurus ids to select

tryToUnselect

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

Parameters:
thesaurus - list of thesaurus to unselect

tryToUnselect

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

Parameters:
thesaurusIds - list of thesaurus ids to select

extractIds

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

getRootThesaurus

public static RootThesaurus getRootThesaurus(VradiTreeNode node)

getThesaurus

public static Thesaurus getThesaurus(VradiTreeNode node)

getRootThesaurus

public static RootThesaurus getRootThesaurus(VradiTreeTableNode node)

getThesaurus

public static Thesaurus getThesaurus(VradiTreeTableNode node)

getIndexOfThesaurusSorted

protected int getIndexOfThesaurusSorted(String wikittyId)

getIndexOfRootThesaurusSorted

protected int getIndexOfRootThesaurusSorted(String wikittyId)

refresh

protected void refresh(VradiTreeNode parentNode)

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.