org.cruxframework.crux.widgets.client.datepicker
Class GWTOverriddenDateChangeEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<com.google.gwt.event.logical.shared.ValueChangeHandler<T>>
          extended by com.google.gwt.event.logical.shared.ValueChangeEvent<Date>
              extended by org.cruxframework.crux.widgets.client.datepicker.GWTOverriddenDateChangeEvent

public class GWTOverriddenDateChangeEvent
extends com.google.gwt.event.logical.shared.ValueChangeEvent<Date>

Creates a new value every time a date is accessed.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Constructor Summary
protected GWTOverriddenDateChangeEvent(Date value)
          Creates a new date value change event.
 
Method Summary
static
<S extends com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date> & com.google.gwt.event.shared.HasHandlers>
void
fireIfNotEqualDates(S source, Date oldValue, Date newValue)
          Fires value change event if the old value is not equal to the new value.
 Date getValue()
           
 
Methods inherited from class com.google.gwt.event.logical.shared.ValueChangeEvent
dispatch, fire, fireIfNotEqual, getAssociatedType, getType, shouldFire, toDebugString
 
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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GWTOverriddenDateChangeEvent

protected GWTOverriddenDateChangeEvent(Date value)
Creates a new date value change event.

Parameters:
value - the value
Method Detail

fireIfNotEqualDates

public static <S extends com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date> & com.google.gwt.event.shared.HasHandlers> void fireIfNotEqualDates(S source,
                                                                                                                                                             Date oldValue,
                                                                                                                                                             Date newValue)
Fires value change event if the old value is not equal to the new value. Use this call rather than making the decision to short circuit yourself for safe handling of null.

Type Parameters:
S - The event source
Parameters:
source - the source of the handlers
oldValue - the oldValue, may be null
newValue - the newValue, may be null

getValue

public Date getValue()
Overrides:
getValue in class com.google.gwt.event.logical.shared.ValueChangeEvent<Date>


Copyright © 2014. All rights reserved.