Package com.formdev.flatlaf.themeeditor
Class FlatThemePropertiesSupport
java.lang.Object
com.formdev.flatlaf.themeeditor.FlatThemePropertiesSupport
- All Implemented Interfaces:
EventListener
,DocumentListener
Supports parsing content of text area in FlatLaf properties syntax.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface
(package private) static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private long
private static long
private static final String
private Properties
private final FlatSyntaxTextArea
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Clear caches that may depend on other editors if cache of another editor was invalidated.void
private void
private String
getKeysForWildcard
(String key) getKeyValueAtLine
(int line) (package private) Object
getParsedProperty
(String key) (package private) Object
getParsedValueAtLine
(int line) (package private) Properties
(package private) String
getProperty
(String key) private String
void
(package private) static boolean
private static boolean
private static void
void
private String
resolveValue
(String value) (package private) void
setBasePropertyProvider
(FlatThemePropertiesSupport.BasePropertyProvider basePropertyProvider)
-
Field Details
-
textArea
-
propertiesGetter
-
resolver
-
basePropertyProvider
-
propertiesCache
-
parsedValueCache
-
parsedValueCache2
-
allKeysCache
-
baseTheme
-
globalCacheInvalidationCounter
private static long globalCacheInvalidationCounter -
cacheInvalidationCounter
private long cacheInvalidationCounter -
wildcardKeys
-
platformPrefix
-
-
Constructor Details
-
FlatThemePropertiesSupport
FlatThemePropertiesSupport(FlatSyntaxTextArea textArea)
-
-
Method Details
-
setBasePropertyProvider
-
resolveValue
- Throws:
IllegalArgumentException
-
getParsedValueAtLine
-
getKeyValueAtLine
-
getParsedProperty
-
getPropertyOrWildcard
-
getProperty
-
getProperties
Properties getProperties() -
getAllKeys
-
isDark
-
getBaseTheme
-
clearCache
private void clearCache() -
autoClearCache
private void autoClearCache()Clear caches that may depend on other editors if cache of another editor was invalidated. -
getKeysForWildcard
-
isKeyAllowedForWildcard
-
loadKeysAllowedForWildcard
private static void loadKeysAllowedForWildcard() -
insertUpdate
- Specified by:
insertUpdate
in interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdate
in interfaceDocumentListener
-
changedUpdate
- Specified by:
changedUpdate
in interfaceDocumentListener
-