|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.DatePicker
public class DatePicker
Simple date picker.
| Nested Class Summary | |
|---|---|
class |
DatePicker.DatePickerMessages
DatePicker messages. |
| 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 | |
|---|---|
protected DateWrapper |
activeDate
|
protected com.google.gwt.i18n.client.constants.DateTimeConstants |
constants
|
protected Button |
monthBtn
|
protected Button |
todayBtn
|
protected DateWrapper |
value
|
| Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
| Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DatePicker()
Creates a new date picker. |
|
| Method Summary | |
|---|---|
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
void |
focus()
Try to focus this component. |
java.util.Date |
getMaxDate()
Returns the field's maximum allowed date. |
DatePicker.DatePickerMessages |
getMessages()
Returns the data picker messages. |
java.util.Date |
getMinDate()
Returns the picker's minimum data. |
com.google.gwt.i18n.client.DateTimeFormat |
getMonthButtonFormat()
Returns the monthbutton DateTimeFormat |
int |
getStartDay()
Returns the picker's start day. |
java.util.Date |
getValue()
Gets the current selected value of the date field. |
protected void |
onClick(ComponentEvent be)
|
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
protected void |
onDayClick(ComponentEvent ce)
|
protected void |
onFocus(ComponentEvent ce)
|
protected void |
onKeyDown(ComponentEvent ce)
|
protected void |
onKeyEnd(ComponentEvent ce)
|
protected void |
onKeyEnter(ComponentEvent ce)
|
protected void |
onKeyHome(ComponentEvent ce)
|
protected void |
onKeyLeft(ComponentEvent ce)
|
protected void |
onKeyPageDown(ComponentEvent ce)
|
protected void |
onKeyPageUp(ComponentEvent ce)
|
protected void |
onKeyRight(ComponentEvent ce)
|
protected void |
onKeyUp(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
setMaxDate(java.util.Date maxDate)
Sets the picker's maximum allowed date. |
void |
setMessages(DatePicker.DatePickerMessages messages)
Sets the data picker messages. |
void |
setMinDate(java.util.Date minDate)
Sets the picker's minimum allowed date. |
void |
setMonthButtonFormat(com.google.gwt.i18n.client.DateTimeFormat monthButtonFormat)
Sets the monthbutton DateTimeFormat |
void |
setStartDay(int startDay)
Sets the picker's start day |
void |
setValue(java.util.Date date)
Sets the value of the date field. |
void |
setValue(java.util.Date date,
boolean supressEvent)
Sets the value of the date field. |
protected void |
update(DateWrapper date)
|
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustPosition, adjustSize, afterRender, createComponentEvent, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onResize, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Button todayBtn
protected DateWrapper activeDate
protected DateWrapper value
protected com.google.gwt.i18n.client.constants.DateTimeConstants constants
protected Button monthBtn
| Constructor Detail |
|---|
public DatePicker()
| Method Detail |
|---|
public void focus()
Component
focus in class Componentpublic java.util.Date getMaxDate()
public DatePicker.DatePickerMessages getMessages()
public java.util.Date getMinDate()
public com.google.gwt.i18n.client.DateTimeFormat getMonthButtonFormat()
public int getStartDay()
public java.util.Date getValue()
public void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class Componentce - the base eventpublic void setMaxDate(java.util.Date maxDate)
maxDate - the max datepublic void setMessages(DatePicker.DatePickerMessages messages)
messages - the date picker messagespublic void setMinDate(java.util.Date minDate)
minDate - the minimum datepublic void setMonthButtonFormat(com.google.gwt.i18n.client.DateTimeFormat monthButtonFormat)
monthButtonFormat - the DateTimeFormatpublic void setStartDay(int startDay)
startDay - the start daypublic void setValue(java.util.Date date)
date - the date
public void setValue(java.util.Date date,
boolean supressEvent)
date - the datesupressEvent - true to suppress the select eventprotected void doAttachChildren()
doAttachChildren in class Componentprotected void doDetachChildren()
doDetachChildren in class Componentprotected void onClick(ComponentEvent be)
protected void onDayClick(ComponentEvent ce)
protected void onFocus(ComponentEvent ce)
protected void onKeyDown(ComponentEvent ce)
protected void onKeyEnd(ComponentEvent ce)
protected void onKeyEnter(ComponentEvent ce)
protected void onKeyHome(ComponentEvent ce)
protected void onKeyLeft(ComponentEvent ce)
protected void onKeyPageDown(ComponentEvent ce)
protected void onKeyPageUp(ComponentEvent ce)
protected void onKeyRight(ComponentEvent ce)
protected void onKeyUp(ComponentEvent ce)
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Componenttarget - the target elementindex - the insert locationprotected void update(DateWrapper date)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||