de.mindcrimeilab.xsanalyzer.model
Class FilteredTreeModel

java.lang.Object
  extended by de.mindcrimeilab.swing.util.AbstractTreeModel
      extended by de.mindcrimeilab.xsanalyzer.model.FilteredTreeModel
All Implemented Interfaces:
Observer, TreeModel

public class FilteredTreeModel
extends AbstractTreeModel
implements TreeModel, Observer

Version:
$Revision: 140 $
Author:
Michael Engelhardt, $Author: agony $

Field Summary
 
Fields inherited from class de.mindcrimeilab.swing.util.AbstractTreeModel
listenerList
 
Constructor Summary
FilteredTreeModel(TreeModel model, org.springframework.core.closure.Constraint constraint)
           
 
Method Summary
 Object getChild(Object parent, int index)
           
 int getChildCount(Object parent)
           
 org.springframework.core.closure.Constraint getConstraint()
           
 int getIndexOfChild(Object parent, Object child)
           
 Object getRoot()
           
 boolean isLeaf(Object node)
           
 void setConstraint(org.springframework.core.closure.Constraint constraint)
           
 void update(Observable o, Object arg)
           
 
Methods inherited from class de.mindcrimeilab.swing.util.AbstractTreeModel
addTreeModelListener, fireTreeStructureChanged, fireTreeStructureChanged, getTreeModelListeners, removeTreeModelListener, valueForPathChanged
 
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, valueForPathChanged
 

Constructor Detail

FilteredTreeModel

public FilteredTreeModel(TreeModel model,
                         org.springframework.core.closure.Constraint constraint)
Method Detail

getChild

public Object getChild(Object parent,
                       int index)
Specified by:
getChild in interface TreeModel

getChildCount

public int getChildCount(Object parent)
Specified by:
getChildCount in interface TreeModel

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
Specified by:
getIndexOfChild in interface TreeModel

getRoot

public Object getRoot()
Specified by:
getRoot in interface TreeModel

isLeaf

public boolean isLeaf(Object node)
Specified by:
isLeaf in interface TreeModel

getConstraint

public org.springframework.core.closure.Constraint getConstraint()
Returns:
the constraint

setConstraint

public final void setConstraint(org.springframework.core.closure.Constraint constraint)
Parameters:
constraint - the constraint to set

update

public void update(Observable o,
                   Object arg)
Specified by:
update in interface Observer


Copyright © 2010. All Rights Reserved.