public final class Plugins extends JavaScriptObjectContainer
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
getOptions(java.lang.String pluginId)
Returns the plugin options, if exist.
|
boolean |
isEnabled(java.lang.String pluginId)
Returns if a global plugin is enabled or not.
|
void |
setEnabled(java.lang.String pluginId,
boolean enabled)
Sets if a global plugin must be enabled or not.
|
void |
setOptions(java.lang.String pluginId,
com.google.gwt.core.client.JavaScriptObject options)
Sets the plugin options.
|
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public void setEnabled(java.lang.String pluginId, boolean enabled) throws InvalidPluginIdException
pluginId
- plugin id.enabled
- false
disable a gloabl plugin.InvalidPluginIdException
- occurs if the plugin id is invalid.public boolean isEnabled(java.lang.String pluginId) throws InvalidPluginIdException
pluginId
- plugin id.false
if a gloabl plugin is not enabled otherwise true
.InvalidPluginIdException
- occurs if the plugin id is invalid.public void setOptions(java.lang.String pluginId, com.google.gwt.core.client.JavaScriptObject options) throws InvalidPluginIdException
pluginId
- plugin id.options
- java script object used to configure the plugin. Pass null
to remove the configuration if exist.InvalidPluginIdException
- occurs if the plugin id is invalid.public com.google.gwt.core.client.JavaScriptObject getOptions(java.lang.String pluginId) throws InvalidPluginIdException
pluginId
- plugin id.null
if not exist.InvalidPluginIdException
- occurs if the plugin id is invalid.