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 interfaceIncrementProperty.Constraints -
Field Summary
Fields Modifier and Type Field Description protected IncrementProperty.Constraintsconstraintsprotected FormattedStringformatprotected PropertyChangerConfigurerprop -
Constructor Summary
Constructors Constructor Description IncrementProperty(PropertyChangerConfigurer prop, String incr, IncrementProperty.Constraints constraints) -
Method Summary
Modifier and Type Method Description StringgetIncrement()StringgetNewValue(String oldValue)
-
Field Details
-
constraints
-
format
-
prop
-
-
Constructor Details
-
IncrementProperty
public IncrementProperty(PropertyChangerConfigurer prop, String incr, IncrementProperty.Constraints constraints)
-
-
Method Details
-
getNewValue
- Specified by:
getNewValuein interfacePropertyChanger
-
getIncrement
-