Package eu.bandm.tools.option.runtime
Class Gui.TextReaction
java.lang.Object
javax.swing.InputVerifier
eu.bandm.tools.option.runtime.Gui.TextReaction
- Enclosing class:
- Gui
Reacts to changes in the gui argument input.
Is called when focus is shifted, when return is pressed or a checkbox
is clicked.
For the former only, it executes syntax check and error messaging.
If no error, and for the latter, it evaluates the "active condition" rule set.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
react
(JComponent jc) Called whenever a focus transfer is tried, or return is pressed (= an "action event" is received).boolean
shouldYieldFocus
(JComponent from) Called by the Swing runtime system when focus shall leave the component.boolean
shouldYieldFocus
(JComponent from, JComponent to) Called by the Swing runtime system when focus shall be transferred between the two arguments.Methods inherited from class javax.swing.InputVerifier
verify, verifyTarget
-
Field Details
-
errorMsg
The MuLi key to the error message for syntax errors.
-
-
Constructor Details
-
TextReaction
TextReaction(String errorMsg) Evident
-
-
Method Details
-
react
Called whenever a focus transfer is tried, or return is pressed (= an "action event" is received). Calls the verifier and reacts accordingly. -
shouldYieldFocus
Called by the Swing runtime system when focus shall be transferred between the two arguments. (This is said by the TUTORIAL, but we did not find a call of this function in reverse engineering?)- Overrides:
shouldYieldFocus
in classInputVerifier
-
shouldYieldFocus
Called by the Swing runtime system when focus shall leave the component. This instance must be registered byJComponent.setInputVerifier(InputVerifier)
.- Overrides:
shouldYieldFocus
in classInputVerifier
-