Class BeanShellExpressionConfigurer


public class BeanShellExpressionConfigurer extends StringConfigurer
A Configurer for Java Expressions
  • Field Details Link icon

    • expressionPanel Link icon

      protected JPanel expressionPanel
    • detailPanel Link icon

      protected JPanel detailPanel
    • validator Link icon

      protected VASSAL.configure.BeanShellExpressionConfigurer.Validator validator
    • extraDetails Link icon

      protected JButton extraDetails
    • up Link icon

      protected Icon up
    • down Link icon

      protected Icon down
    • errorMessage Link icon

      protected StringConfigurer errorMessage
    • variables Link icon

      protected JLabel variables
    • methods Link icon

      protected JLabel methods
    • target Link icon

      protected EditablePiece target
    • option Link icon

    • selectedText Link icon

      protected String selectedText
    • displayOnly Link icon

      protected boolean displayOnly
    • builder Link icon

      protected FunctionBuilder builder
    • nameField Link icon

      protected JTextArea nameField
  • Constructor Details Link icon

  • Method Details Link icon

    • strip Link icon

      protected void strip()
    • getOption Link icon

    • setOption Link icon

      public void setOption(BeanShellExpressionConfigurer.Option option)
    • getValueString Link icon

      public String getValueString()
      Overrides:
      getValueString in class StringConfigurer
      Returns:
      a String representation of the Object value
    • setValue Link icon

      public void setValue(String s)
      Description copied from class: Configurer
      Set the Object value from a String
      Overrides:
      setValue in class StringConfigurer
    • requestFocus Link icon

      public void requestFocus()
      Description copied from class: Configurer
      Move the cursor to the first input field of this Configurer
      Overrides:
      requestFocus in class StringConfigurer
    • setHighlighted Link icon

      public void setHighlighted(boolean highlighted)
      Description copied from class: Configurer
      Set the highlighted status of this configurer. It is up to individual Configurers to override this method and implement a suitable visual highlighting scheme Note: Cannot make this abstract as it will break custom code.
      Overrides:
      setHighlighted in class StringConfigurer
      Parameters:
      highlighted - New Highlighted status
    • addFocusListener Link icon

      public void addFocusListener(FocusListener listener)
      Description copied from class: Configurer
      Add a FocusListener to the Swing Components that make up this Configurer.
      Overrides:
      addFocusListener in class StringConfigurer
      Parameters:
      listener - Focus Listener
    • removeFocusListener Link icon

      public void removeFocusListener(FocusListener listener)
      Description copied from class: Configurer
      Remove a FocusListener from the Swing Components that make up this Configurer.
      Overrides:
      removeFocusListener in class StringConfigurer
      Parameters:
      listener - Focus Listener
    • getTopLevelAncestor Link icon

      protected Component getTopLevelAncestor()
    • getControls Link icon

      public Component getControls()
      Description copied from class: Configurer
      GUI interface for setting the option in an editing window
      Overrides:
      getControls in class StringConfigurer
    • validate Link icon

      public void validate()
    • updateParentBuilder Link icon

      protected void updateParentBuilder()
      If we are the child of a FunctionBuilder, notify it we have changed.
    • doPopup Link icon

      protected void doPopup()
    • insertPropertyName Link icon

      protected void insertPropertyName(String name)
      Insert a property name into the expression
      Parameters:
      name - property name
    • insertName Link icon

      protected void insertName(String name)
    • cleanName Link icon

      protected String cleanName(String name)
    • setDetails Link icon

      protected void setDetails(String error, List<String> v, List<String> m)
    • setDetails Link icon

      protected void setDetails()
    • getSelectedText Link icon

      public String getSelectedText()
    • setSelectedText Link icon

      public void setSelectedText(String selectedText)
    • isDisplayOnly Link icon

      public boolean isDisplayOnly()
    • setDisplayOnly Link icon

      public void setDisplayOnly(boolean displayOnly)