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) intindex(package private) PaneProgPanepane(package private) javax.swing.JTabbedPanetabs
-
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 booleancurrentAvailableState()Retrieve 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, 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: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
protected boolean currentAvailableState()
Description copied from class:AbstractQualifierRetrieve the current "available" state from the qualified Object.- Specified by:
currentAvailableStatein classAbstractQualifier- Returns:
- true if available
-
-