Class FreeplaneScriptBaseClass.ConfigProperties

java.lang.Object
org.freeplane.plugin.script.FreeplaneScriptBaseClass.ConfigProperties
Enclosing class:
FreeplaneScriptBaseClass

public static class FreeplaneScriptBaseClass.ConfigProperties
extends java.lang.Object
Accessor for Freeplane's configuration: In scripts available as "global variable" config.
  • Constructor Details

    • ConfigProperties

      public ConfigProperties()
  • Method Details

    • getBooleanProperty

      public boolean getBooleanProperty​(java.lang.String key)
    • getBooleanProperty

      public boolean getBooleanProperty​(java.lang.String key, boolean defaultValue)
    • getProperty

      public boolean getProperty​(java.lang.String key, boolean defaultValue)
    • getEnumProperty

      public <T extends java.lang.Enum<T>> T getEnumProperty​(java.lang.String propertyName, java.lang.Enum<T> defaultValue)
    • getProperty

      public <T extends java.lang.Enum<T>> T getProperty​(java.lang.String propertyName, java.lang.Enum<T> defaultValue)
    • getDoubleProperty

      public double getDoubleProperty​(java.lang.String key)
    • getDoubleProperty

      public double getDoubleProperty​(java.lang.String key, double defaultValue)
    • getProperty

      public double getProperty​(java.lang.String key, double defaultValue)
    • getIntProperty

      public int getIntProperty​(java.lang.String key)
    • getIntProperty

      public int getIntProperty​(java.lang.String key, int defaultValue)
    • getProperty

      public int getProperty​(java.lang.String key, int defaultValue)
    • getLongProperty

      public long getLongProperty​(java.lang.String key, long defaultValue)
    • getProperty

      public long getProperty​(java.lang.String key, long defaultValue)
    • getLengthProperty

      public int getLengthProperty​(java.lang.String name)
    • getLengthQuantityProperty

      public Quantity<LengthUnit> getLengthQuantityProperty​(java.lang.String name)
    • getTimeProperty

      public int getTimeProperty​(java.lang.String name)
    • getTimeQuantityProperty

      public Quantity<org.freeplane.core.ui.TimePeriodUnits> getTimeQuantityProperty​(java.lang.String name)
    • getColorProperty

      public java.awt.Color getColorProperty​(java.lang.String name)
    • getProperty

      public java.lang.String getProperty​(java.lang.String key)
    • getProperty

      public java.lang.String getProperty​(java.lang.String key, java.lang.String value)
    • getDefaultProperty

      public java.lang.String getDefaultProperty​(java.lang.String key)
    • getPropertyChangeListeners

      public java.util.Collection<org.freeplane.core.resources.IFreeplanePropertyListener> getPropertyChangeListeners()
    • getResource

      public java.net.URL getResource​(java.lang.String resourcePath)
    • getResourceStream

      public java.io.InputStream getResourceStream​(java.lang.String resFileName) throws java.io.IOException
      Throws:
      java.io.IOException
    • getResourceBaseDir

      public java.lang.String getResourceBaseDir()
    • getInstallationBaseDir

      public java.lang.String getInstallationBaseDir()
    • getLanguageCode

      public java.lang.String getLanguageCode()
    • getDefaultLanguageCode

      public java.lang.String getDefaultLanguageCode()
    • setDefaultProperty

      public void setDefaultProperty​(java.lang.String key, java.lang.String value)
    • setProperty

      public void setProperty​(java.lang.String property, boolean value)
    • setProperty

      public void setProperty​(java.lang.String name, int value)
    • setProperty

      public void setProperty​(java.lang.String name, long value)
    • setProperty

      public void setProperty​(java.lang.String name, double value)
    • setProperty

      public void setProperty​(java.lang.String property, java.lang.String value)
    • getIcon

      public javax.swing.Icon getIcon​(java.lang.String iconKey)
    • getIconResource

      public java.net.URL getIconResource​(java.lang.String resourcePath)
    • getImageIcon

      public javax.swing.Icon getImageIcon​(java.lang.String iconKey)
    • getSystemLocale

      public java.util.Locale getSystemLocale()
    • getArrayProperty

      public java.lang.String[] getArrayProperty​(java.lang.String key, java.lang.String separator)
    • getProperties

      public java.util.Properties getProperties()
    • getAt

      public java.lang.String getAt​(java.lang.String name)
      support config['key'] from Groovy.
    • setAt

      public void setAt​(java.lang.String name, java.lang.String value)
    • getResources

      public java.util.ResourceBundle getResources()
    • getFreeplaneUserDirectory

      public java.lang.String getFreeplaneUserDirectory()