public class KSDatePicker extends KSDatePickerAbstract implements HasWatermark
Constructor and Description |
---|
KSDatePicker()
Creates a KSDatePicker widget.
|
Modifier and Type | Method and Description |
---|---|
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) |
Date |
getValue()
Get the currently selected date.
|
boolean |
hasWatermark() |
void |
setValue(Date date)
Sets the date and selects it.
|
void |
setValue(Date date,
boolean fireEvents) |
void |
setWatermarkText(String waterMark) |
boolean |
watermarkShowing() |
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
public KSDatePicker()
public Date getValue()
getValue
in interface com.google.gwt.user.client.TakesValue<Date>
getValue
in interface com.google.gwt.user.client.ui.HasValue<Date>
getValue
in class KSDatePickerAbstract
public void setValue(Date date)
setValue
in interface com.google.gwt.user.client.TakesValue<Date>
setValue
in interface com.google.gwt.user.client.ui.HasValue<Date>
setValue
in class KSDatePickerAbstract
date
- the Date to set the calendar and associated field topublic void setValue(Date date, boolean fireEvents)
setValue
in interface com.google.gwt.user.client.ui.HasValue<Date>
HasValue.setValue(java.lang.Object, boolean)
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Date> handler)
addValueChangeHandler
in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date>
HasValueChangeHandlers.addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler)
public com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
addFocusHandler
in interface com.google.gwt.event.dom.client.HasFocusHandlers
public com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
addBlurHandler
in interface com.google.gwt.event.dom.client.HasBlurHandlers
public boolean hasWatermark()
hasWatermark
in interface HasWatermark
public void setWatermarkText(String waterMark)
setWatermarkText
in interface HasWatermark
public boolean watermarkShowing()
watermarkShowing
in interface HasWatermark
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.