Class 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 java.lang.Object>
    • 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
      • 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
    • Constructor Detail

      • CmsDateBoxEvent

        public CmsDateBoxEvent​(java.util.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 Detail

      • fire

        public static void fire​(I_CmsHasDateBoxEventHandlers source,
                                java.util.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
      • 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