jsx3.util.DateFormat class to both format and parse dates. Dates are formatted
before they are displayed in the text box of the date picker. Dates are parsed after a user manually changes the
text in the text box. Parsing with DateFormat is fairly strict. If parsing fails, the value of
the date picker is unchanged and the displayed value refreshes.
The calendar calculates dates in the time of the local machine, not UTC (Greenwich Mean Time). Date values chosen
with the calendar are always 0h:00m local time.
Date pickers publish the following model events:
CHANGE — when the value of the control is changed by the user selecting a date in the
calendar or editing the formatted date in the text box.SHOW — whenever the calendar is shown.HIDE — whenever the calendar is hidden.| Field Summary | |
|---|---|
| static String | Deprecated. This value is now localized.
|
| static int | Deprecated. This value is now localized.
|
| Constructor Summary | |
|---|---|
| void | init(strName : String, intLeft : int | String, intTop : int | String, intWidth : int | String, intHeight : int | String) The instance initializer. |
| Method Summary | |
|---|---|
| int | |
| void | Shows the calendar for this date picker and places focus within the calendar as though the user had clicked
on the show calendar button. |
| Date | getDate() Returns the current value of this form field as a JavaScript Date object. |
| int | Returns the jsxfirstweekday field |
| String | int | Returns the jsxformat field |
| String | getValue() Returns the value of this form field (the string displayed in the text box). |
| String | paint() |
| void | set the value of this form field |
| void | setFirstDayOfWeek(jsxfirstweekday : int) Sets the jsxfirstweekday field |
| void | Sets the format of this date picker. |
| Methods Inherited From jsx3.gui.Form |
|---|
| doKeyBinding, doReset, getDisabledBackgroundColor, getDisabledColor, getEnabled, getKeyBinding, getRequired, getValidationState, setDisabledBackgroundColor, setDisabledColor, setEnabled, setKeyBinding, setRequired, setValidationState, setValue |
| Methods Inherited From jsx3.gui.Block |
|---|
| getBackground, getBackgroundColor, getBorder, getCSSOverride, getClassName, getColor, getCursor, getDimensions, getDisplay, getFontName, getFontSize, getFontWeight, getHeight, getIndex, getLeft, getMargin, getOverflow, getPadding, getRelativePosition, getTagName, getText, getTextAlign, getTip, getTop, getVisibility, getWidth, getZIndex, hideMask, setBackground, setBackgroundColor, setBorder, setCSSOverride, setClassName, setColor, setCursor, setDimensions, setDisplay, setFontName, setFontSize, setFontWeight, setHeight, setIndex, setLeft, setMargin, setOverflow, setPadding, setRelativePosition, setTagName, setText, setTextAlign, setTip, setTop, setVisibility, setWidth, setZIndex, showMask |
| Methods Inherited From jsx3.gui.Interactive |
|---|
| doEvent, getCanDrag, getCanDrop, getCanMove, getCanSpy, getEvent, getEvents, getMenu, hasEvent, registerHotKey, removeEvent, removeEvents, setCanDrag, setCanDrop, setCanMove, setCanSpy, setEvent, setMenu, setSpyStyles, showSpy |
| Methods Inherited From jsx3.gui.Painted |
|---|
| focus, getAbsolutePosition, getAttribute, getAttributes, getDynamicProperty, getRendered, insertHTML, onAfterPaint, paintChild, paintChildren, recalcBox, removeAttribute, removeAttributes, repaint, setAttribute, setDynamicProperty |
| Methods Inherited From jsx3.util.EventDispatcher |
|---|
| publish, subscribe, unsubscribe, unsubscribeAll |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
| Field Detail |
|---|
| Constructor Detail |
|---|
| Method Detail |
|---|
Date object.jsx3.util.DatePicker.
The provided format may also be an integer, in which case it is intepreted as one of of the fields of
DatePicker - SHORT, MEDIUM, LONG, or FULL - and
the displayed format will be localized accordingly.