|
|||||||||
| 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.gwtext.client.widgets.Component
com.gwtext.client.widgets.DatePicker
public class DatePicker
Simple date picker class.
| 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 |
|---|
| Fields inherited from class com.gwtext.client.widgets.Component |
|---|
config, id |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DatePicker()
Create a new DatePicker. |
|
DatePicker(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
void |
addListener(DatePickerListener listener)
Add a Date Picker Listener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
boolean |
getConstrainToViewport()
|
java.lang.String |
getDisabledDatesText()
The tooltip text to display when the date falls on a disabled date (defaults to ""). |
java.lang.String[] |
getDisabledDays()
An array of days to disable, 0-based. |
java.lang.String |
getDisabledDaysText()
The tooltip to display when the date falls on a disabled day (defaults to ""). |
java.lang.String |
getFormat()
The default date format string which can be overriden for localization support. |
java.util.Date |
getMaxDate()
Maximum allowable date. |
java.lang.String |
getMaxText()
The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date"). |
java.util.Date |
getMinDate()
Minimum allowable date. |
java.lang.String |
getMinText()
The error text to display if the minDate validation fails (defaults to "This date is before the minimum date"). |
java.lang.String[] |
getMonthNames()
An array of textual month names which can be overriden for localization support. |
java.lang.String |
getMonthYearText()
The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)'). |
java.lang.String |
getNextText()
The next month navigation button tooltip (defaults to 'Next Month (Control+Right)'). |
java.lang.String |
getOkText()
The text to display on the ok button. |
java.lang.String |
getPrevText()
The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)'). |
int |
getStartDay()
Day index at which the week should begin, 0-based (defaults to 0, which is Sunday). |
java.lang.String |
getTodayText()
The text to display on the button that selects the current date (defaults to "Today"). |
java.lang.String |
getTodayTip()
The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)"). |
java.util.Date |
getValue()
Get the value of the date picker. |
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
static DatePicker |
instance(com.google.gwt.core.client.JavaScriptObject jsObj)
|
void |
setConstrainToViewport(boolean constrainToViewport)
True to constrain the date picker to the viewport (defaults to true). |
void |
setDisabledDatesRE(java.lang.String disabledDatesRE)
Regular expression used to disable a pattern of dates. |
void |
setDisabledDatesText(java.lang.String disabledDatesText)
The tooltip text to display when the date falls on a disabled date (defaults to ""). |
void |
setDisabledDays(java.lang.String[] disabledDays)
An array of days to disable, 0-based. |
void |
setDisabledDaysText(java.lang.String disabledDaysText)
The tooltip to display when the date falls on a disabled day (defaults to "") |
void |
setFormat(java.lang.String format)
The default date format string which can be overriden for localization support. |
void |
setMaxDate(java.util.Date maxDate)
Maximum allowable date. |
void |
setMaxText(java.lang.String maxText)
The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date"). |
void |
setMinDate(java.util.Date minDate)
Minimum allowable date. |
void |
setMinText(java.lang.String minText)
The error text to display if the minDate validation fails (defaults to "This date is before the minimum date"). |
void |
setMonthNames(java.lang.String[] monthNames)
An array of textual month names which can be overriden for localization support. |
void |
setMonthYearText(java.lang.String monthYearText)
The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)'). |
void |
setNextText(java.lang.String nextText)
The next month navigation button tooltip (defaults to 'Next Month (Control+Right)'). |
void |
setOkText(java.lang.String okText)
The text to display on the ok button. |
void |
setPrevText(java.lang.String prevText)
The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)'). |
void |
setStartDay(int startDay)
Day index at which the week should begin, 0-based (defaults to 0, which is Sunday). |
void |
setTodayText(java.lang.String todayText)
The text to display on the button that selects the current date (defaults to "Today"). |
void |
setTodayTip(java.lang.String todayTip)
The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)"). |
void |
setValue(java.util.Date date)
Set the value of the date picker. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatePicker()
public DatePicker(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype in class Componentpublic java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType in class Componentprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create in class Componentpublic static DatePicker instance(com.google.gwt.core.client.JavaScriptObject jsObj)
public java.util.Date getValue()
public void setValue(java.util.Date date)
date - the datepublic void addListener(DatePickerListener listener)
listener - the listener
public void setConstrainToViewport(boolean constrainToViewport)
throws java.lang.IllegalStateException
constrainToViewport - true to constrain to view port
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic boolean getConstrainToViewport()
public void setDisabledDatesRE(java.lang.String disabledDatesRE)
throws java.lang.IllegalStateException
disabledDatesRE - regular expression to disable dates
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setDisabledDatesText(java.lang.String disabledDatesText)
throws java.lang.IllegalStateException
disabledDatesText - disabled dates text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getDisabledDatesText()
public void setDisabledDays(java.lang.String[] disabledDays)
throws java.lang.IllegalStateException
disabledDays - dates to disable
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String[] getDisabledDays()
public void setDisabledDaysText(java.lang.String disabledDaysText)
throws java.lang.IllegalStateException
disabledDaysText - disabled days text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getDisabledDaysText()
public void setFormat(java.lang.String format)
throws java.lang.IllegalStateException
format - the date format
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedDateUtilpublic java.lang.String getFormat()
public void setMaxDate(java.util.Date maxDate)
throws java.lang.IllegalStateException
maxDate - the max date
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.util.Date getMaxDate()
public void setMaxText(java.lang.String maxText)
throws java.lang.IllegalStateException
maxText - the max error text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getMaxText()
public void setMinDate(java.util.Date minDate)
throws java.lang.IllegalStateException
minDate - the min date
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.util.Date getMinDate()
public void setMinText(java.lang.String minText)
throws java.lang.IllegalStateException
minText - the min error text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getMinText()
public void setMonthNames(java.lang.String[] monthNames)
throws java.lang.IllegalStateException
monthNames - the month names
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String[] getMonthNames()
public void setMonthYearText(java.lang.String monthYearText)
throws java.lang.IllegalStateException
monthYearText - the header month tooltip text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getMonthYearText()
public void setNextText(java.lang.String nextText)
throws java.lang.IllegalStateException
nextText - the next button tooltip text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getNextText()
public void setOkText(java.lang.String okText)
throws java.lang.IllegalStateException
okText - the OK text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getOkText()
public void setPrevText(java.lang.String prevText)
throws java.lang.IllegalStateException
prevText - the previous month tooltip text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getPrevText()
public void setStartDay(int startDay)
throws java.lang.IllegalStateException
startDay - the start day
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic int getStartDay()
public void setTodayText(java.lang.String todayText)
throws java.lang.IllegalStateException
todayText - the today text
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getTodayText()
public void setTodayTip(java.lang.String todayTip)
throws java.lang.IllegalStateException
todayTip - the tooltip for current date
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic java.lang.String getTodayTip()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||