Class PaneQualifier
java.lang.Object
jmri.jmrit.symbolicprog.AbstractQualifier
jmri.jmrit.symbolicprog.ArithmeticQualifier
jmri.jmrit.symbolicprog.tabbedframe.PaneQualifier
- All Implemented Interfaces:
PropertyChangeListener,EventListener,Qualifier
Qualify a JMRI DecoderPro pane on a numerical relation by enabling/disabling
the tab.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.symbolicprog.ArithmeticQualifier
ArithmeticQualifier.Test -
Field Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) PaneProgPane(package private) JTabbedPane -
Constructor Summary
ConstructorsConstructorDescriptionPaneQualifier(PaneProgPane qualifiedPane, VariableValue watchedVal, int value, String relation, JTabbedPane tabPane, String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanRetrieve the current "available" state from the qualified Object.voidsetWatchedAvailable(boolean enable) Drive the available or not state of the qualified Object.Methods inherited from class jmri.jmrit.symbolicprog.ArithmeticQualifier
availableStateFromValue, currentDesiredState, updateMethods inherited from class jmri.jmrit.symbolicprog.AbstractQualifier
availableStateFromEvent, getWatchedVariable, propertyChange
-
Field Details
-
pane
-
tabs
-
name
-
-
Constructor Details
-
PaneQualifier
public PaneQualifier(PaneProgPane qualifiedPane, VariableValue watchedVal, int value, String relation, JTabbedPane tabPane, String name)
-
-
Method Details
-
setWatchedAvailable
Description copied from class:AbstractQualifierDrive the available or not state of the qualified Object.Subclasses implement this to control a specific type of qualified Object, like a Variable or Pane.
- Specified by:
setWatchedAvailablein interfaceQualifier- Specified by:
setWatchedAvailablein classAbstractQualifier- Parameters:
enable- true if should be enabled
-
currentAvailableState
Description copied from class:AbstractQualifierRetrieve the current "available" state from the qualified Object.- Specified by:
currentAvailableStatein classAbstractQualifier- Returns:
- true if available
-