Package VASSAL.build.module.properties
Class IncrementProperty
java.lang.Object
VASSAL.build.module.properties.IncrementProperty
- All Implemented Interfaces:
PropertyChanger
public class IncrementProperty extends Object implements PropertyChanger
Increments a property by a given value.
The value can be specified as a FormattedString property and evaluated at runtime
- Author:
- rkinney
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
IncrementProperty.Constraints
-
Field Summary
Fields Modifier and Type Field Description protected IncrementProperty.Constraints
constraints
protected FormattedString
format
protected PropertyChangerConfigurer
prop
-
Constructor Summary
Constructors Constructor Description IncrementProperty(PropertyChangerConfigurer prop, String incr, IncrementProperty.Constraints constraints)
-
Method Summary
Modifier and Type Method Description String
getIncrement()
String
getNewValue(String oldValue)
-
Field Details
-
constraints
-
format
-
prop
-
-
Constructor Details
-
IncrementProperty
public IncrementProperty(PropertyChangerConfigurer prop, String incr, IncrementProperty.Constraints constraints)
-
-
Method Details
-
getNewValue
- Specified by:
getNewValue
in interfacePropertyChanger
-
getIncrement
-