Package generic.theme
Class JavaPropertyValue
- All Implemented Interfaces:
Comparable<ThemeValue<Object>>
- Direct Known Subclasses:
BooleanPropertyValue,StringPropertyValue
A base class that represents a Java UIManager property. This value is used to allow for
overriding Java UI values using the theme properties files.
-
Field Summary
Fields inherited from class generic.theme.ThemeValue
id, referenceId, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ThemeValue<Object> getReferredValue(GThemeValueMap values, String refId) Returns the ThemeValue referred to by this ThemeValue.Returns the "key = value" String for writing this ThemeValue to a fileprotected abstract StringvoidinstallValue(ThemeManager themeManager) Install this value as the current value for the applicationbooleanTrue if this value is one that is one that is defined outside of the application, such as a Java Look and Feel key.protected abstract StringtoExternalId(String internalId) Methods inherited from class generic.theme.ThemeValue
compareTo, equals, get, getId, getRawValue, getReferenceId, getUnresolvedReferenceValue, hashCode, hasResolvableValue, inheritsFrom, isIndirect, toString
-
Constructor Details
-
JavaPropertyValue
-
-
Method Details
-
isExternal
public boolean isExternal()Description copied from class:ThemeValueTrue if this value is one that is one that is defined outside of the application, such as a Java Look and Feel key.- Specified by:
isExternalin classThemeValue<Object>- Returns:
- true if external
-
getSerializationString
Description copied from class:ThemeValueReturns the "key = value" String for writing this ThemeValue to a file- Specified by:
getSerializationStringin classThemeValue<Object>- Returns:
- the "key = value" String for writing this ThemeValue to a file
-
toExternalId
-
getSerializedValue
-
getReferredValue
Description copied from class:ThemeValueReturns the ThemeValue referred to by this ThemeValue. Needs to be overridden by concrete classes as they know the correct method to call on the preferredValues map.- Specified by:
getReferredValuein classThemeValue<Object>- Parameters:
values- theGThemeValueMapto be used to resolve the reference idrefId- the id of the reference ThemeValue- Returns:
- the ThemeValue referred to by this ThemeValue.
-
installValue
Description copied from class:ThemeValueInstall this value as the current value for the application- Specified by:
installValuein classThemeValue<Object>- Parameters:
themeManager- the application ThemeManager
-