@groovy.util.logging.Slf4j class ConfigButtonToggled extends java.lang.Object implements GUIEventInterface
Detects when the global configuration toggle buttons is clicked and stores this new state in the users preferences. This setting is global and used for all pages.
Type | Name and description |
---|---|
private static java.lang.String |
ELEMENT The element the preference is stored under. |
private static java.lang.String |
EVENT The event string expected for this event. |
private static java.lang.String |
KEY The key for the button state preference. |
private static java.lang.String |
PAGE The page the preference is stored under. |
Constructor and description |
---|
ConfigButtonToggled
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
handleEvent(java.util.Map params) Handles the toggled event when called from the client. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The element the preference is stored under. This is used just once per page, so the key is static.
The event string expected for this event.
The key for the button state preference. There is only one preference for a configuration button.
The page the preference is stored under. This is a global setting for the user.
Handles the toggled event when called from the client. Inputs are:
pageURI
- Always '/index' element
- Always 'ToggleConfigButtons'event
- The change event (e.g. 'ConfigButtonsToggled', etc).visible
- 'true' or 'false' for the current button visibility state.params
- The HTTP request parameters.Groovy Documentation