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.

  • 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

    Fields
    Modifier and Type
    Field
    Description
    static com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler>
    The event type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsDateBoxEvent(Date date, boolean isUserTyping)
    Creates a new event.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    static void
    fire(I_CmsHasDateBoxEventHandlers source, Date date, boolean isTyping)
    Fires the event.
    com.google.gwt.event.shared.GwtEvent.Type<I_CmsDateBoxEventHandler>
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • CmsDateBoxEvent

      public CmsDateBoxEvent(Date date, boolean isUserTyping)
      Creates a new event.

      Parameters:
      date - the date
      isUserTyping - true if the event was caused by a user key press that may have changed the value.

  • Method Details

    • fire

      public static void fire(I_CmsHasDateBoxEventHandlers source, Date date, boolean isTyping)
      Fires the event.
      Parameters:
      source - the event source
      date - the date
      isTyping - 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 class com.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
      See Also:
      • GwtEvent.getAssociatedType()
    • getDate

      public 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 class com.google.gwt.event.shared.GwtEvent<I_CmsDateBoxEventHandler>
      See Also:
      • GwtEvent.dispatch(com.google.gwt.event.shared.EventHandler)