Package VASSAL.configure
Class FormattedExpressionConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringConfigurer
VASSAL.configure.FormattedStringConfigurer
VASSAL.configure.FormattedExpressionConfigurer
- All Implemented Interfaces:
ActionListener,FocusListener,EventListener
- Direct Known Subclasses:
PropertyExpressionConfigurer,PropertyNameExpressionConfigurer
public class FormattedExpressionConfigurer extends FormattedStringConfigurer
A standard Formatted String configurer that has an additional
Calculator icon that:
a) Indicates to the user that $name$ variables can be used in this field
b) Clicking on it opens up an Expression Builder that allows entry of
in-line Calculated Properties (Not implemented yet)
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormattedExpressionConfigurer.ExpressionButtonA small 'Calculator' button added after the text to indicate this Configurer accepts Expressions. -
Field Summary
Fields Modifier and Type Field Description protected FormattedExpressionConfigurer.ExpressionButtonbuttonprotected EditablePiecepieceTargetFields inherited from class VASSAL.configure.StringConfigurer
DEFAULT_LENGHTH, length, nameField, pFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors Constructor Description FormattedExpressionConfigurer(String key, String name)FormattedExpressionConfigurer(String key, String name, String s)FormattedExpressionConfigurer(String key, String name, String[] options)FormattedExpressionConfigurer(String key, String name, String s, PropertyChangerConfigurer.Constraints p)FormattedExpressionConfigurer(String key, String name, String s, EditablePiece p)FormattedExpressionConfigurer(String key, String name, String s, GamePiece p)FormattedExpressionConfigurer(String key, String name, FormattedString s) -
Method Summary
Modifier and Type Method Description protected FormattedExpressionConfigurer.ExpressionButtonbuildButton()ComponentgetControls()GUI interface for setting the option in an editing windowprotected voidstorePiece(GamePiece p)Methods inherited from class VASSAL.configure.FormattedStringConfigurer
actionPerformed, focusGained, focusLost, getOptions, setOptionsMethods inherited from class VASSAL.configure.StringConfigurer
buildTextField, getValueString, setValueMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName, setValue
-
Field Details
-
button
-
pieceTarget
-
-
Constructor Details
-
FormattedExpressionConfigurer
-
FormattedExpressionConfigurer
-
FormattedExpressionConfigurer
-
FormattedExpressionConfigurer
-
FormattedExpressionConfigurer
public FormattedExpressionConfigurer(String key, String name, String s, PropertyChangerConfigurer.Constraints p) -
FormattedExpressionConfigurer
-
FormattedExpressionConfigurer
-
-
Method Details
-
storePiece
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Overrides:
getControlsin classFormattedStringConfigurer
-
buildButton
-