nl.cwi.sen1.gui.plugin.data
Class ModuleTreeModel
java.lang.Object
nl.cwi.sen1.gui.plugin.data.AbstractModuleTreeModel
nl.cwi.sen1.gui.plugin.data.ModuleTreeModel
- All Implemented Interfaces:
- javax.swing.tree.TreeModel
public class ModuleTreeModel
- extends AbstractModuleTreeModel
- implements javax.swing.tree.TreeModel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, removeTreeModelListener |
root
private ModuleTreeNode root
moduleSelectionListeners
private java.util.List<ModuleSelectionListener> moduleSelectionListeners
moduleTable
private java.util.Map<aterm.ATerm,Module> moduleTable
ModuleTreeModel
public ModuleTreeModel()
getRoot
public java.lang.Object getRoot()
- Specified by:
getRoot
in interface javax.swing.tree.TreeModel
getChild
public java.lang.Object getChild(java.lang.Object parent,
int index)
- Specified by:
getChild
in interface javax.swing.tree.TreeModel
getChildCount
public int getChildCount(java.lang.Object parent)
- Specified by:
getChildCount
in interface javax.swing.tree.TreeModel
isLeaf
public boolean isLeaf(java.lang.Object node)
- Specified by:
isLeaf
in interface javax.swing.tree.TreeModel
valueForPathChanged
public void valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
- Specified by:
valueForPathChanged
in interface javax.swing.tree.TreeModel
getIndexOfChild
public int getIndexOfChild(java.lang.Object par,
java.lang.Object ch)
- Specified by:
getIndexOfChild
in interface javax.swing.tree.TreeModel
addModuleSelectionListener
public void addModuleSelectionListener(ModuleSelectionListener listener)
selectModule
public void selectModule(aterm.ATerm moduleId)
selectModule
public void selectModule(Module module)
getModule
public Module getModule(aterm.ATerm moduleId)
addModule
public void addModule(Module module)
removeModule
public void removeModule(aterm.ATerm id)
clearModules
public void clearModules()
makeTreePath
public javax.swing.tree.TreePath makeTreePath(nl.cwi.sen1.ioapi.types.File file)
repaintTree
public void repaintTree()
getModules
public java.util.List<Module> getModules()
markError
public void markError(aterm.ATerm moduleId)
markNormal
public void markNormal(aterm.ATerm moduleId)