| com.gwtext.client.widgets.Component com.gwtext.client.widgets.DatePicker
DatePicker | public class DatePicker extends Component (Code) | | Simple date picker class.
|
Constructor Summary | |
public | DatePicker() Create a new DatePicker. | public | DatePicker(JavaScriptObject jsObj) |
Method Summary | |
native public void | addListener(DatePickerListener listener) Add a Date Picker Listener. | native protected JavaScriptObject | create(JavaScriptObject config) | protected JavaScriptObject | getConfigPrototype() | public boolean | getConstrainToViewport() | public String | getDisabledDatesText() The tooltip text to display when the date falls on a disabled date (defaults to ""). | public String[] | getDisabledDays() An array of days to disable, 0-based. | public String | getDisabledDaysText() The tooltip to display when the date falls on a disabled day (defaults to ""). | public String | getFormat() The default date format string which can be overriden for localization support. | public Date | getMaxDate() Maximum allowable date. | public String | getMaxText() The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date"). | public Date | getMinDate() Minimum allowable date. | public String | getMinText() The error text to display if the minDate validation fails (defaults to "This date is before the minimum date"). | public String[] | getMonthNames() An array of textual month names which can be overriden for localization support. | public String | getMonthYearText() The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)'). | public String | getNextText() The next month navigation button tooltip (defaults to 'Next Month (Control+Right)'). | public String | getOkText() The text to display on the ok button. | public String | getPrevText() The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)'). | public int | getStartDay() Day index at which the week should begin, 0-based (defaults to 0, which is Sunday). | public String | getTodayText() The text to display on the button that selects the current date (defaults to "Today"). | public String | getTodayTip() The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)"). | public Date | getValue() Get the value of the date picker. | public String | getXType() | public void | setConstrainToViewport(boolean constrainToViewport) True to constrain the date picker to the viewport (defaults to true). | public void | setDisabledDatesRE(String disabledDatesRE) Regular expression used to disable a pattern of dates. | public void | setDisabledDatesText(String disabledDatesText) The tooltip text to display when the date falls on a disabled date (defaults to ""). | public void | setDisabledDays(String[] disabledDays) An array of days to disable, 0-based. | public void | setDisabledDaysText(String disabledDaysText) | public void | setFormat(String format) The default date format string which can be overriden for localization support. | public void | setMaxDate(Date maxDate) Maximum allowable date. | public void | setMaxText(String maxText) The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date"). | public void | setMinDate(Date minDate) Minimum allowable date. | public void | setMinText(String minText) The error text to display if the minDate validation fails (defaults to "This date is before the minimum date"). | public void | setMonthNames(String[] monthNames) An array of textual month names which can be overriden for localization support. | public void | setMonthYearText(String monthYearText) The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)'). | public void | setNextText(String nextText) The next month navigation button tooltip (defaults to 'Next Month (Control+Right)'). | public void | setOkText(String okText) The text to display on the ok button. | public void | setPrevText(String prevText) The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)'). | public void | setStartDay(int startDay) Day index at which the week should begin, 0-based (defaults to 0, which is Sunday). | public void | setTodayText(String todayText) The text to display on the button that selects the current date (defaults to "Today"). | public void | setTodayTip(String todayTip) The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)"). | public void | setValue(Date date) Set the value of the date picker. |
DatePicker | public DatePicker()(Code) | | Create a new DatePicker.
|
DatePicker | public DatePicker(JavaScriptObject jsObj)(Code) | | |
addListener | native public void addListener(DatePickerListener listener)(Code) | | Add a Date Picker Listener.
Parameters: listener - the listener |
create | native protected JavaScriptObject create(JavaScriptObject config)(Code) | | |
getConfigPrototype | protected JavaScriptObject getConfigPrototype()(Code) | | |
getConstrainToViewport | public boolean getConstrainToViewport()(Code) | | true if constrin to viewport |
getDisabledDatesText | public String getDisabledDatesText()(Code) | | The tooltip text to display when the date falls on a disabled date (defaults to "").
the disabled dates text |
getDisabledDays | public String[] getDisabledDays()(Code) | | An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday.
the disabled days |
getDisabledDaysText | public String getDisabledDaysText()(Code) | | The tooltip to display when the date falls on a disabled day (defaults to "").
the disabled days text |
getFormat | public String getFormat()(Code) | | The default date format string which can be overriden for localization support. The format must be a valid pattern (defaults to 'm/d/y').
the date format |
getMaxDate | public Date getMaxDate()(Code) | | Maximum allowable date.
the max date |
getMaxText | public String getMaxText()(Code) | | The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date").
the error text to display if the maxDate validation fails |
getMinDate | public Date getMinDate()(Code) | | Minimum allowable date.
the min date |
getMinText | public String getMinText()(Code) | | The error text to display if the minDate validation fails (defaults to "This date is before the minimum date").
the error text to display if the minDate validation fails |
getMonthNames | public String[] getMonthNames()(Code) | | An array of textual month names which can be overriden for localization support.
the month names |
getMonthYearText | public String getMonthYearText()(Code) | | The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)').
the header month selector tooltip text |
getNextText | public String getNextText()(Code) | | The next month navigation button tooltip (defaults to 'Next Month (Control+Right)').
the next month navigation button tooltip |
getOkText | public String getOkText()(Code) | | The text to display on the ok button.
the text for the ok button |
getPrevText | public String getPrevText()(Code) | | The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)').
the previous month navigation button tooltip |
getStartDay | public int getStartDay()(Code) | | Day index at which the week should begin, 0-based (defaults to 0, which is Sunday).
the day index at which the week should begin, 0-based |
getTodayText | public String getTodayText()(Code) | | The text to display on the button that selects the current date (defaults to "Today").
the text to display on the button that selects the current date |
getTodayTip | public String getTodayTip()(Code) | | The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)").
the tooltip to display for the button that selects the current date |
getValue | public Date getValue()(Code) | | Get the value of the date picker.
null if no value selected |
setConstrainToViewport | public void setConstrainToViewport(boolean constrainToViewport) throws IllegalStateException(Code) | | True to constrain the date picker to the viewport (defaults to true).
Parameters: constrainToViewport - true to constrain to view port throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setDisabledDatesRE | public void setDisabledDatesRE(String disabledDatesRE) throws IllegalStateException(Code) | | Regular expression used to disable a pattern of dates.
Parameters: disabledDatesRE - regular expression to disable dates throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setDisabledDatesText | public void setDisabledDatesText(String disabledDatesText) throws IllegalStateException(Code) | | The tooltip text to display when the date falls on a disabled date (defaults to "").
Parameters: disabledDatesText - disabled dates text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setDisabledDays | public void setDisabledDays(String[] disabledDays) throws IllegalStateException(Code) | | An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday.
Parameters: disabledDays - dates to disable throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setDisabledDaysText | public void setDisabledDaysText(String disabledDaysText) throws IllegalStateException(Code) | | The tooltip to display when the date falls on a disabled day (defaults to "")
Parameters: disabledDaysText - disabled days text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setMaxText | public void setMaxText(String maxText) throws IllegalStateException(Code) | | The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date").
Parameters: maxText - the max error text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setMinText | public void setMinText(String minText) throws IllegalStateException(Code) | | The error text to display if the minDate validation fails (defaults to "This date is before the minimum date").
Parameters: minText - the min error text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setMonthNames | public void setMonthNames(String[] monthNames) throws IllegalStateException(Code) | | An array of textual month names which can be overriden for localization support.
Parameters: monthNames - the month names throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setMonthYearText | public void setMonthYearText(String monthYearText) throws IllegalStateException(Code) | | The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)').
Parameters: monthYearText - the header month tooltip text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setNextText | public void setNextText(String nextText) throws IllegalStateException(Code) | | The next month navigation button tooltip (defaults to 'Next Month (Control+Right)').
Parameters: nextText - the next button tooltip text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setPrevText | public void setPrevText(String prevText) throws IllegalStateException(Code) | | The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)').
Parameters: prevText - the previous month tooltip text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setStartDay | public void setStartDay(int startDay) throws IllegalStateException(Code) | | Day index at which the week should begin, 0-based (defaults to 0, which is Sunday).
Parameters: startDay - the start day throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setTodayText | public void setTodayText(String todayText) throws IllegalStateException(Code) | | The text to display on the button that selects the current date (defaults to "Today").
Parameters: todayText - the today text throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setTodayTip | public void setTodayTip(String todayTip) throws IllegalStateException(Code) | | The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)").
Parameters: todayTip - the tooltip for current date throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setValue | public void setValue(Date date)(Code) | | Set the value of the date picker.
Parameters: date - the date |
Methods inherited from com.gwtext.client.widgets.Component | public void addClass(String cls)(Code)(Java Doc) native public void addClassCreated(String cls)(Code)(Java Doc) native public void addEvent(String events)(Code)(Java Doc) public void addEvents(String[] events)(Code)(Java Doc) protected void addListener(String event, JavaScriptObject fn)(Code)(Java Doc) native public void addListener(String event, Function funtion)(Code)(Java Doc) native protected void addListener(ComponentListener listener)(Code)(Java Doc) protected void afterRender()(Code)(Java Doc) protected void beforeDestroy()(Code)(Java Doc) protected void check() throws IllegalStateException(Code)(Java Doc) public Component cloneComponent()(Code)(Java Doc) public Component cloneComponent(Component overrides)(Code)(Java Doc) native protected JavaScriptObject cloneConfig(JavaScriptObject config)(Code)(Java Doc) abstract protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc) native public void destroy()(Code)(Java Doc) public void disable()(Code)(Java Doc) public void enable()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected void error(String message) throws IllegalStateException(Code)(Java Doc) public void focus()(Code)(Java Doc) native public void focus(boolean selectText)(Code)(Java Doc) native public void focus(boolean selectText, int delay)(Code)(Java Doc) public Element getApplyTo()(Code)(Java Doc) protected String getAttribute(String attribute)(Code)(Java Doc) protected boolean getAttributeAsBoolean(String attribute)(Code)(Java Doc) protected float getAttributeAsFloat(String attribute)(Code)(Java Doc) protected int getAttributeAsInt(String attribute)(Code)(Java Doc) protected JavaScriptObject getAttributeAsJavaScriptObject(String attribute)(Code)(Java Doc) public boolean getAutoShow()(Code)(Java Doc) public String getCls()(Code)(Java Doc) native protected static JavaScriptObject getComponentJS(String id)(Code)(Java Doc) public JavaScriptObject getConfig()(Code)(Java Doc) abstract protected JavaScriptObject getConfigPrototype()(Code)(Java Doc) public String getCtCls()(Code)(Java Doc) public String getDisabledClass()(Code)(Java Doc) native public ExtElement getEl()(Code)(Java Doc) native protected Element getElement(JavaScriptObject jsObj)(Code)(Java Doc) public Element getElement()(Code)(Java Doc) public String getHideMode()(Code)(Java Doc) public boolean getHideParent()(Code)(Java Doc) public String getId()(Code)(Java Doc) native public String getItemId()(Code)(Java Doc) public JavaScriptObject getJsObj()(Code)(Java Doc) public int getOffsetHeight()(Code)(Java Doc) public int getOffsetWidth()(Code)(Java Doc) public JavaScriptObject getOrCreateJsObj()(Code)(Java Doc) native public Container getOwnerContainer()(Code)(Java Doc) public Element getRenderTo()(Code)(Java Doc) public String[] getStateEvents()(Code)(Java Doc) public String getStateId()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) protected Element getStyleElement()(Code)(Java Doc) public String getTitle()(Code)(Java Doc) public String getXType()(Code)(Java Doc) native public String getXTypes()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void hide()(Code)(Java Doc) protected void initComponent()(Code)(Java Doc) public boolean isCreated()(Code)(Java Doc) public boolean isDisabled()(Code)(Java Doc) public boolean isHidden()(Code)(Java Doc) native public boolean isRendered()(Code)(Java Doc) native public boolean isVisible()(Code)(Java Doc) native public boolean isXType(String xtype)(Code)(Java Doc) native public boolean isXType(String xtype, boolean shallow)(Code)(Java Doc) protected void onDestroy()(Code)(Java Doc) native public void removeClass(String cls)(Code)(Java Doc) native public void render(String id)(Code)(Java Doc) native public void render(String id, String position)(Code)(Java Doc) native public void render(String id, int position)(Code)(Java Doc) native public void render(Element element)(Code)(Java Doc) native public void render(Element element, String position)(Code)(Java Doc) native public void render(Element element, int position)(Code)(Java Doc) public void setApplyTo(Element element) throws IllegalStateException(Code)(Java Doc) protected void setAttribute(String attribute, String value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, String value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc) protected void setAttribute(String attribute, int[] value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, int[] value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, long value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, double value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, int value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, int value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, Date value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, JavaScriptObject value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, JavaScriptObject value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, String[] value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, String[] value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, boolean value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, boolean value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc) protected void setAttribute(String attribute, Element value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, Element value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc) public void setAutoEl(String autoEl)(Code)(Java Doc) public void setAutoShow(boolean autoShow) throws IllegalStateException(Code)(Java Doc) public void setCls(String cls)(Code)(Java Doc) public void setCtCls(String ctCls) throws IllegalStateException(Code)(Java Doc) public void setDisabled(boolean disabled)(Code)(Java Doc) public void setDisabledClass(String disabledClass)(Code)(Java Doc) public void setEl(Element el) throws IllegalStateException(Code)(Java Doc) public void setEl(String elementID) throws IllegalStateException(Code)(Java Doc) public void setHeight(String height)(Code)(Java Doc) public void setHideMode(String hideMode)(Code)(Java Doc) public void setHideParent(boolean hideParent) throws IllegalStateException(Code)(Java Doc) final public void setId(String id) throws IllegalStateException(Code)(Java Doc) public void setRenderTo(Element elem) throws IllegalStateException(Code)(Java Doc) public void setStateEvents(String[] stateEvents) throws IllegalStateException(Code)(Java Doc) public void setStateId(String stateId) throws IllegalStateException(Code)(Java Doc) public void setStyle(String style) throws IllegalStateException(Code)(Java Doc) public void setTitle(String title)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public void setWidth(String width)(Code)(Java Doc) public void show()(Code)(Java Doc)
|
|
|