Package org.opencms.gwt.client.ui
Class CmsToggleEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<I_CmsToggleHandler>
org.opencms.gwt.client.ui.CmsToggleEvent
Event to be fired by a widget being activated or deactivated.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H extends Object>
-
Constructor Summary
ModifierConstructorDescriptionprotected
CmsToggleEvent
(boolean isActivated) Creates a new open event. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(I_CmsToggleHandler handler) static void
fire
(I_CmsHasToggleHandlers source, boolean isActivated) Fires a toggle event on all registered handlers in the handler manager.If no such handlers exist, this method will do nothing.com.google.gwt.event.shared.GwtEvent.Type<I_CmsToggleHandler>
static com.google.gwt.event.shared.GwtEvent.Type<I_CmsToggleHandler>
getType()
Gets the type associated with this event.boolean
Returns if the source has been activated.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
CmsToggleEvent
Creates a new open event.- Parameters:
isActivated
- if the source has been activated
-
-
Method Details
-
fire
Fires a toggle event on all registered handlers in the handler manager.If no such handlers exist, this method will do nothing.- Parameters:
source
- the event sourceisActivated
- if the source has been activated
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
- Specified by:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<I_CmsToggleHandler>
- See Also:
-
GwtEvent.getAssociatedType()
-
isActivated
Returns if the source has been activated.- Returns:
- if the source has been activated
-
dispatch
- Specified by:
dispatch
in classcom.google.gwt.event.shared.GwtEvent<I_CmsToggleHandler>
- See Also:
-
GwtEvent.dispatch(com.google.gwt.event.shared.EventHandler)
-