Package org.freeplane.plugin.script
Class FreeplaneScriptBaseClass.ConfigProperties
java.lang.Object
org.freeplane.plugin.script.FreeplaneScriptBaseClass.ConfigProperties
- Enclosing class:
FreeplaneScriptBaseClass
Accessor for Freeplane's configuration: In scripts available
as "global variable"
config
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getArrayProperty
(String key, String separator) support config['key'] from Groovy.boolean
getBooleanProperty
(String key) boolean
getBooleanProperty
(String key, boolean defaultValue) getColorProperty
(String name) getDefaultProperty
(String key) double
getDoubleProperty
(String key) double
getDoubleProperty
(String key, double defaultValue) <T extends Enum<T>>
TgetEnumProperty
(String propertyName, Enum<T> defaultValue) getIconResource
(String resourcePath) getImageIcon
(String iconKey) int
getIntProperty
(String key) int
getIntProperty
(String key, int defaultValue) int
getLengthProperty
(String name) long
getLongProperty
(String key, long defaultValue) getProperty
(String key) boolean
getProperty
(String key, boolean defaultValue) double
getProperty
(String key, double defaultValue) int
getProperty
(String key, int defaultValue) long
getProperty
(String key, long defaultValue) <T extends Enum<T>>
TgetProperty
(String propertyName, Enum<T> defaultValue) getProperty
(String key, String value) Collection
<org.freeplane.core.resources.IFreeplanePropertyListener> getResource
(String resourcePath) getResourceStream
(String resFileName) int
getTimeProperty
(String name) Quantity
<org.freeplane.core.ui.TimePeriodUnits> void
void
setDefaultProperty
(String key, String value) void
setProperty
(String property, boolean value) void
setProperty
(String name, double value) void
setProperty
(String name, int value) void
setProperty
(String name, long value) void
setProperty
(String property, String value)
-
Constructor Details
-
ConfigProperties
public ConfigProperties()
-
-
Method Details
-
getBooleanProperty
-
getBooleanProperty
-
getProperty
-
getEnumProperty
-
getProperty
-
getDoubleProperty
-
getDoubleProperty
-
getProperty
-
getIntProperty
-
getIntProperty
-
getProperty
-
getLongProperty
-
getProperty
-
getLengthProperty
-
getLengthQuantityProperty
-
getTimeProperty
-
getTimeQuantityProperty
-
getColorProperty
-
getProperty
-
getProperty
-
getDefaultProperty
-
getPropertyChangeListeners
public Collection<org.freeplane.core.resources.IFreeplanePropertyListener> getPropertyChangeListeners() -
getResource
-
getResourceStream
- Throws:
IOException
-
getResourceBaseDir
-
getInstallationBaseDir
-
getLanguageCode
-
getDefaultLanguageCode
-
setDefaultProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
getIcon
-
getIconResource
-
getImageIcon
-
getSystemLocale
-
getArrayProperty
-
getProperties
-
getAt
support config['key'] from Groovy. -
setAt
-
getResources
-
getFreeplaneUserDirectory
-