org.kuali.student.common.ui.client.widgets.impl
Class KSDatePickerImpl

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.kuali.student.common.ui.client.widgets.KSDatePickerAbstract
                  extended by org.kuali.student.common.ui.client.widgets.impl.KSDatePickerImpl
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasBlurHandlers, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.TakesValue<Date>, com.google.gwt.user.client.ui.HasValue<Date>, com.google.gwt.user.client.ui.IsWidget, HasWatermark

public class KSDatePickerImpl
extends KSDatePickerAbstract
implements com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.dom.client.HasBlurHandlers


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
private  boolean allowedKeyPress
           
private  Date currentDate
           
private  KSTextBox dateField
           
private  com.google.gwt.i18n.client.DateTimeFormat df
           
private  FocusGroup focus
           
private  boolean hasWatermark
           
private  boolean justPicked
           
private  com.google.gwt.user.datepicker.client.DatePicker picker
           
private  com.google.gwt.user.client.ui.PopupPanel popup
           
private  Date selectedDate
           
private  boolean watermarkShowing
           
private  String watermarkText
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSDatePickerImpl()
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Date> handler)
           
private  void fireValueChangeEvent()
           
 KSTextBox getDateTextField()
           
 Date getValue()
           
 boolean hasWatermark()
           
private  boolean isDeleteOrBackspaceKey(int code)
           
 void setValue(Date date)
           
 void setValue(Date date, boolean fireEvents)
           
 void setWatermarkText(String text)
           
 boolean watermarkShowing()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

picker

private com.google.gwt.user.datepicker.client.DatePicker picker

dateField

private KSTextBox dateField

popup

private com.google.gwt.user.client.ui.PopupPanel popup

selectedDate

private Date selectedDate

currentDate

private Date currentDate

df

private com.google.gwt.i18n.client.DateTimeFormat df

justPicked

private boolean justPicked

focus

private final FocusGroup focus

allowedKeyPress

private boolean allowedKeyPress

hasWatermark

private boolean hasWatermark

watermarkShowing

private boolean watermarkShowing

watermarkText

private String watermarkText
Constructor Detail

KSDatePickerImpl

public KSDatePickerImpl()
Method Detail

isDeleteOrBackspaceKey

private boolean isDeleteOrBackspaceKey(int code)

fireValueChangeEvent

private void fireValueChangeEvent()

getValue

public Date getValue()
Specified by:
getValue in interface com.google.gwt.user.client.TakesValue<Date>
Specified by:
getValue in interface com.google.gwt.user.client.ui.HasValue<Date>
Specified by:
getValue in class KSDatePickerAbstract

setValue

public void setValue(Date date)
Specified by:
setValue in interface com.google.gwt.user.client.TakesValue<Date>
Specified by:
setValue in interface com.google.gwt.user.client.ui.HasValue<Date>
Specified by:
setValue in class KSDatePickerAbstract

getDateTextField

public KSTextBox getDateTextField()

setValue

public void setValue(Date date,
                     boolean fireEvents)
Specified by:
setValue in interface com.google.gwt.user.client.ui.HasValue<Date>

addValueChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Date> handler)
Specified by:
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date>

addFocusHandler

public com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
Specified by:
addFocusHandler in interface com.google.gwt.event.dom.client.HasFocusHandlers

addBlurHandler

public com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
Specified by:
addBlurHandler in interface com.google.gwt.event.dom.client.HasBlurHandlers

hasWatermark

public boolean hasWatermark()
Specified by:
hasWatermark in interface HasWatermark

setWatermarkText

public void setWatermarkText(String text)
Specified by:
setWatermarkText in interface HasWatermark

watermarkShowing

public boolean watermarkShowing()
Specified by:
watermarkShowing in interface HasWatermark


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.