Class JComponentQualifier
- java.lang.Object
-
- jmri.jmrit.symbolicprog.AbstractQualifier
-
- jmri.jmrit.symbolicprog.ArithmeticQualifier
-
- jmri.jmrit.symbolicprog.tabbedframe.JComponentQualifier
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
,Qualifier
public class JComponentQualifier extends ArithmeticQualifier
Qualify a JComponent on a numerical test by setting the JComponent's visibility.
-
-
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) javax.swing.JComponent
component
-
Constructor Summary
Constructors Constructor Description JComponentQualifier(javax.swing.JComponent component, VariableValue watchedVal, int value, java.lang.String relation)
-
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
-
component
javax.swing.JComponent component
-
-
Constructor Detail
-
JComponentQualifier
public JComponentQualifier(javax.swing.JComponent component, VariableValue watchedVal, int value, java.lang.String relation)
-
-
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
-
-