Class CmsDateBoxEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
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 extends Object>
-
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 void
dispatch
(I_CmsDateBoxEventHandler handler) static void
fire
(I_CmsHasDateBoxEventHandlers source, Date date, boolean isTyping) Fires the event.com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler>
getDate()
Gets the date.boolean
Returns 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, revive
Methods 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:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
- See Also:
-
GwtEvent.getAssociatedType()
-
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:
dispatch
in classcom.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
- See Also:
-
GwtEvent.dispatch(com.google.gwt.event.shared.EventHandler)
-