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
-
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 String
void
installValue
(ThemeManager themeManager) Install this value as the current value for the applicationboolean
True 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 String
toExternalId
(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:ThemeValue
True 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:
isExternal
in classThemeValue<Object>
- Returns:
- true if external
-
getSerializationString
Description copied from class:ThemeValue
Returns the "key = value" String for writing this ThemeValue to a file- Specified by:
getSerializationString
in classThemeValue<Object>
- Returns:
- the "key = value" String for writing this ThemeValue to a file
-
toExternalId
-
getSerializedValue
-
getReferredValue
Description copied from class:ThemeValue
Returns 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:
getReferredValue
in classThemeValue<Object>
- Parameters:
values
- theGThemeValueMap
to 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:ThemeValue
Install this value as the current value for the application- Specified by:
installValue
in classThemeValue<Object>
- Parameters:
themeManager
- the application ThemeManager
-