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  RootThesaurus rootThesaurus
           
 
Fields inherited from class jaxx.runtime.swing.nav.NavHelper
childLoadors, dataProvider, expandListener, selectionListener, treeModelListener
 
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)
           
 jaxx.runtime.swing.nav.treetable.NavTreeTableModel createTreeModel()
           
protected  List<String> extractIds(List<Thesaurus> beans)
           
 VradiDataProvider getDataProvider()
           
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 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.treetable.NavTreeTableHelper
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
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)

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)

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 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.