Package com.myscript.iink
Class Configuration
java.lang.Object
com.myscript.iink.ParameterSet
com.myscript.iink.Configuration
- All Implemented Interfaces:
AutoCloseable
Represents the configuration values of the iink runtime environment.
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddListener(@NotNull IConfigurationListener listener) Adds the specified listener to this configuration.final voidremoveListener(@NotNull IConfigurationListener listener) Removes the specified listener from this configuration.final voidreset()Resets this configuration to its default values.Methods inherited from class com.myscript.iink.ParameterSet
checkNotClosed, close, finalize, getBoolean, getBoolean, getNumber, getNumber, getNumberArray, getNumberArray, getSection, getString, getString, getStringArray, getStringArray, inject, isClosed, setBoolean, setNumber, setNumberArray, setString, setStringArray
-
Method Details
-
reset
public final void reset()Resets this configuration to its default values. -
addListener
Adds the specified listener to this configuration.- Parameters:
listener- the listener to be added.- Throws:
IllegalStateException- when this configuration is closed.IllegalArgumentException- whenlisteneris null.
-
removeListener
Removes the specified listener from this configuration.- Parameters:
listener- the listener to be removed.- Throws:
IllegalStateException- when this configuration is closed.IllegalArgumentException- whenlisteneris null.
-