Class PaneQualifier
- java.lang.Object
-
- jmri.jmrit.symbolicprog.AbstractQualifier
-
- jmri.jmrit.symbolicprog.ArithmeticQualifier
-
- jmri.jmrit.symbolicprog.tabbedframe.PaneQualifier
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
,Qualifier
public class PaneQualifier extends ArithmeticQualifier
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
Fields Modifier and Type Field Description (package private) int
index
(package private) PaneProgPane
pane
(package private) javax.swing.JTabbedPane
tabs
-
Constructor Summary
Constructors Constructor Description PaneQualifier(PaneProgPane qualifiedPane, VariableValue watchedVal, int value, java.lang.String relation, javax.swing.JTabbedPane tabPane, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
currentAvailableState()
Retrieve the current "available" state from the qualified Object.void
setWatchedAvailable(boolean enable)
Drive the available or not state of the qualified Object.-
Methods inherited from class jmri.jmrit.symbolicprog.ArithmeticQualifier
availableStateFromValue, currentDesiredState, update
-
Methods inherited from class jmri.jmrit.symbolicprog.AbstractQualifier
availableStateFromEvent, getWatchedVariable, propertyChange
-
-
-
-
Field Detail
-
pane
PaneProgPane pane
-
tabs
javax.swing.JTabbedPane tabs
-
index
int index
-
-
Constructor Detail
-
PaneQualifier
public PaneQualifier(PaneProgPane qualifiedPane, VariableValue watchedVal, int value, java.lang.String relation, javax.swing.JTabbedPane tabPane, int index)
-
-
Method Detail
-
setWatchedAvailable
public void setWatchedAvailable(boolean enable)
Description copied from class:AbstractQualifier
Drive 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:
setWatchedAvailable
in interfaceQualifier
- Specified by:
setWatchedAvailable
in classAbstractQualifier
- Parameters:
enable
- true if should be enabled
-
currentAvailableState
protected boolean currentAvailableState()
Description copied from class:AbstractQualifier
Retrieve the current "available" state from the qualified Object.- Specified by:
currentAvailableState
in classAbstractQualifier
- Returns:
- true if available
-
-