|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.umd.cfar.lamp.viper.util.AbstractViperSelection
edu.umd.cfar.lamp.viper.util.AbstractViperSubTree
Implements some of the more annoyingly repetative aspects of the ViperSubTree interface.
| Field Summary |
| Fields inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSelection |
notifyingListeners |
| Constructor Summary | |
AbstractViperSubTree()
|
|
| Method Summary | |
void |
fireChangeEvent(javax.swing.event.ChangeEvent e)
Fire a change event to all registered listeners. |
void |
fireSelectionChanged(ViperSubTreeChangedEvent e)
This should be used instead of fireChangeEvent. |
java.util.Iterator |
getSelectedBy(java.lang.Class c)
Gets the selections of the given viper node type. |
boolean |
isEmpty()
Tests to see if something is selected. |
boolean |
isFilteredBy(java.lang.Class type)
Only nodes beneath some subset of the nodes of the specified type are selected. |
java.lang.String |
toString()
Prints out the subtree as a chain. |
| Methods inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSelection |
addChangeListener, getChangeListeners, removeChangeListener, writeLock, writeUnlock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.umd.cfar.lamp.viper.util.ViperSubTree |
getAttrConfigs, getAttributes, getConfigs, getDescriptors, getFirstAttrConfig, getFirstAttribute, getFirstConfig, getFirstDescriptor, getFirstSourcefile, getRoot, getSourcefiles, isMultipleSelectionAllowedOn |
| Methods inherited from interface edu.umd.cfar.lamp.viper.util.ViperSelection |
addChangeListener, getChangeListeners, isSelected, removeChangeListener |
| Constructor Detail |
public AbstractViperSubTree()
| Method Detail |
public void fireSelectionChanged(ViperSubTreeChangedEvent e)
e - public boolean isFilteredBy(java.lang.Class type)
ViperSubTree
isFilteredBy in interface ViperSubTreetype - one of the viper.api interfaces,
e.g. Sourcefile.class
false if there is no filtering
by the given type (i.e. all children of selected
parents are selected)ViperSubTree.isFilteredBy(java.lang.Class)public void fireChangeEvent(javax.swing.event.ChangeEvent e)
AbstractViperSelection
fireChangeEvent in class AbstractViperSelectione - null if you wish to use a default change event,
with this as the sourceAbstractViperSelection.fireChangeEvent(javax.swing.event.ChangeEvent)public java.lang.String toString()
[ {nodetype: nodes}* ]public java.util.Iterator getSelectedBy(java.lang.Class c)
ViperSubTree
getSelectedBy in interface ViperSubTreec - the node type, e.g. Sourcefile.class
public boolean isEmpty()
ViperSelection
isEmpty in interface ViperSelection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||