Class BeanShellExpressionConfigurer


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

    • expressionPanel

      protected JPanel expressionPanel
    • detailPanel

      protected JPanel detailPanel
    • validator

      protected VASSAL.configure.BeanShellExpressionConfigurer.Validator validator
    • extraDetails

      protected JButton extraDetails
    • up

      protected Icon up
    • down

      protected Icon down
    • errorMessage

      protected StringConfigurer errorMessage
    • variables

      protected JLabel variables
    • methods

      protected JLabel methods
    • target

      protected EditablePiece target
    • option

    • selectedText

      protected String selectedText
    • displayOnly

      protected boolean displayOnly
    • builder

      protected FunctionBuilder builder
  • Constructor Details

  • Method Details

    • strip

      protected void strip()
    • getOption

    • getValueString

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

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

      protected Component getTopLevelAncestor()
    • getControls

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

      public void validate()
    • updateParentBuilder

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

      protected void doPopup()
    • insertPropertyName

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

      protected void insertName(String name)
    • cleanName

      protected String cleanName(String name)
    • setDetails

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

      protected void setDetails()
    • getSelectedText

      public String getSelectedText()
    • setSelectedText

      public void setSelectedText(String selectedText)
    • isDisplayOnly

      public boolean isDisplayOnly()
    • setDisplayOnly

      public void setDisplayOnly(boolean displayOnly)