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
-
public class CmsDateBoxEvent extends com.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
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.
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler>
TYPE
The event type.
-
Constructor Summary
Constructors Constructor Description CmsDateBoxEvent(java.util.Date date, boolean isUserTyping)
Creates a new event.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatch(I_CmsDateBoxEventHandler handler)
static void
fire(I_CmsHasDateBoxEventHandlers source, java.util.Date date, boolean isTyping)
Fires the event.com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler>
getAssociatedType()
java.util.Date
getDate()
Gets the date.boolean
isUserTyping()
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
-
-
-
-
Field Detail
-
TYPE
public static com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler> TYPE
The event type.
-
-
Constructor Detail
-
CmsDateBoxEvent
public CmsDateBoxEvent(java.util.Date date, boolean isUserTyping)
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 Detail
-
fire
public static void fire(I_CmsHasDateBoxEventHandlers source, java.util.Date date, boolean isTyping)
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
public com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler> getAssociatedType()
- Specified by:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
- See Also:
GwtEvent.getAssociatedType()
-
getDate
public java.util.Date getDate()
Gets the date.- Returns:
- the date
-
isUserTyping
public boolean 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
protected void dispatch(I_CmsDateBoxEventHandler handler)
- Specified by:
dispatch
in classcom.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
- See Also:
GwtEvent.dispatch(com.google.gwt.event.shared.EventHandler)
-
-