Class Gui.TextReaction

java.lang.Object
javax.swing.InputVerifier
eu.bandm.tools.option.runtime.Gui.TextReaction
Enclosing class:
Gui

protected abstract class Gui.TextReaction extends InputVerifier
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 Details

    • errorMsg

      protected String errorMsg
      The MuLi key to the error message for syntax errors.
  • Constructor Details

    • TextReaction

      TextReaction(String errorMsg)
      Evident
  • Method Details

    • react

      boolean react(JComponent jc)
      Called whenever a focus transfer is tried, or return is pressed (= an "action event" is received). Calls the verifier and reacts accordingly.
    • shouldYieldFocus

      public boolean shouldYieldFocus(JComponent from, JComponent to)
      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 class InputVerifier
    • shouldYieldFocus

      public boolean shouldYieldFocus(JComponent from)
      Called by the Swing runtime system when focus shall leave the component. This instance must be registered by JComponent.setInputVerifier(InputVerifier).
      Overrides:
      shouldYieldFocus in class InputVerifier