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 void
addListener
(@NotNull IConfigurationListener listener) Adds the specified listener to this configuration.final void
removeListener
(@NotNull IConfigurationListener listener) Removes the specified listener from this configuration.final void
reset()
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
- whenlistener
is null.
-
removeListener
Removes the specified listener from this configuration.- Parameters:
listener
- the listener to be removed.- Throws:
IllegalStateException
- when this configuration is closed.IllegalArgumentException
- whenlistener
is null.
-