Package org.opencms.gwt.client.ui
Class CmsToggleEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<I_CmsToggleHandler>
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> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCmsToggleEvent(boolean isActivated) Creates a new open event. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(I_CmsToggleHandler handler) static voidfire(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.booleanReturns if the source has been activated.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, reviveMethods 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:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<I_CmsToggleHandler>- See Also:
-
isActivated
Returns if the source has been activated.- Returns:
- if the source has been activated
-
dispatch
- Specified by:
dispatchin classcom.google.gwt.event.shared.GwtEvent<I_CmsToggleHandler>- See Also:
-