Package VASSAL.counters
Class ReportState.OldAndNewPieceProperties
java.lang.Object
VASSAL.counters.ReportState.OldAndNewPieceProperties
- All Implemented Interfaces:
PropertySource
,Auditable
- Enclosing class:
ReportState
Looks in both the new and old piece for property values.
Any properties with names of the format "oldXyz" are changed
to "xyz" and applied to the old piece.
- Author:
- rkinney
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a localized translation of the specified property value, if available.getProperty
(Object key) When using this interface a piece's own properties are preferred to those of "Global Properties", and those in turn are searched Zone-first then Map, then Module.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface VASSAL.script.expression.Auditable
getComponentName, getComponentTypeName
-
Constructor Details
-
OldAndNewPieceProperties
-
-
Method Details
-
getNewPiece
-
getProperty
Description copied from interface:PropertySource
When using this interface a piece's own properties are preferred to those of "Global Properties", and those in turn are searched Zone-first then Map, then Module.- Specified by:
getProperty
in interfacePropertySource
- Parameters:
key
- String key of property to be returned- Returns:
- Object containing value of the specified property
-
getLocalizedProperty
Description copied from interface:PropertySource
Returns a localized translation of the specified property value, if available. Otherwise returns the non-localized version.- Specified by:
getLocalizedProperty
in interfacePropertySource
- Parameters:
key
- String key of property to be returned- Returns:
- Object containing localized text of the specified property, if available, otherwise non-localized value
-