Module com.iamsoft.util.ui
Class RangedSelectionDepthCriterion
java.lang.Object
com.iamsoft.util.ui.swing.activation.AbstractActivationCriterion
com.iamsoft.util.ui.swing.activation.RangedSelectionDepthCriterion
- All Implemented Interfaces:
ActivationCriterion
Mandates that tree selections all have path sizes which fall in a specified range.
-
Constructor Summary
ConstructorsConstructorDescriptionRangedSelectionDepthCriterion(TreeSelectionModel pSelectionModel, int pMinDepth, Integer pMaxDepth) -
Method Summary
Modifier and TypeMethodDescriptiongetPriorSelection(TreePath[] pSelection, TreeSelectionEvent pEvt) Guaranteed non-null.booleantest()TODO: return an Object (null for passed test).toString()Methods inherited from class com.iamsoft.util.ui.swing.activation.AbstractActivationCriterion
addChangeListener, equals, fireSatisfactionChange, hashCode, inverse, removeChangeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.iamsoft.util.ui.swing.activation.ActivationCriterion
getFailureMessage
-
Constructor Details
-
RangedSelectionDepthCriterion
public RangedSelectionDepthCriterion(TreeSelectionModel pSelectionModel, int pMinDepth, Integer pMaxDepth) - Parameters:
pSelectionModel- Selection model against which paths are tested.pMinDepth- Minimum acceptable tree path length.pMaxDepth- Maximum acceptable tree path length (null for no max).
-
-
Method Details
-
test
public boolean test()Description copied from interface:ActivationCriterionTODO: return an Object (null for passed test). -
toString
-
getPriorSelection
Guaranteed non-null.- Parameters:
pSelection- Current selection.pEvt- Event that just occurred.- Returns:
- set tree paths
-