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 Stringprivate longprivate static longprivate booleanprivate Propertiesprivate final FlatSyntaxTextArea -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidClear caches that may depend on other editors if cache of another editor was invalidated.voidprivate voidprivate StringgetKeysForWildcard(String key) getKeyValueAtLine(int line) (package private) ObjectgetParsedProperty(String key) (package private) ObjectgetParsedValueAtLine(int line) (package private) Properties(package private) StringgetProperty(String key) private Stringvoid(package private) static booleanprivate static booleanprivate static voidvoidprivate StringresolveValue(String value) (package private) voidsetBasePropertyProvider(FlatThemePropertiesSupport.BasePropertyProvider basePropertyProvider)
-
Field Details
-
textArea
-
propertiesGetter
-
resolver
-
basePropertyProvider
-
propertiesCache
-
parsedValueCache
-
parsedValueCache2
-
allKeysCache
-
baseTheme
-
lastDark
private boolean lastDark -
globalCacheInvalidationCounter
private static long globalCacheInvalidationCounter -
cacheInvalidationCounter
private long cacheInvalidationCounter -
wildcardKeys
-
-
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:
insertUpdatein interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-
changedUpdate
- Specified by:
changedUpdatein interfaceDocumentListener
-