Class CmsDateBoxEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<I_CmsDateBoxEventHandler>
com.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
org.opencms.gwt.client.ui.input.datebox.CmsDateBoxEvent
Custom event type for CmsDateBox changes.
The difference between this and a ValueChangeEvent is that this event is also fired after user actions which may or may not have changed the value. The event carries information about that user action.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler> The event type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(I_CmsDateBoxEventHandler handler) static voidfire(I_CmsHasDateBoxEventHandlers source, Date date, boolean isTyping) Fires the event.com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler> getDate()Gets the date.booleanReturns true if the event was caused by a user key press which may have changed the value.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
-
Field Details
-
TYPE
The event type.
-
-
Constructor Details
-
CmsDateBoxEvent
Creates a new event.- Parameters:
date- the dateisUserTyping- true if the event was caused by a user key press that may have changed the value.
-
-
Method Details
-
fire
Fires the event.- Parameters:
source- the event sourcedate- the dateisTyping- true if event was caused by user pressing key that may have changed the value
-
getAssociatedType
- Specified by:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>- See Also:
-
getDate
Gets the date.- Returns:
- the date
-
isUserTyping
Returns true if the event was caused by a user key press which may have changed the value.- Returns:
- true if caused by a keypress which may have changed the value
-
dispatch
- Specified by:
dispatchin classcom.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>- See Also:
-