|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.inp.InputWidget zul.inp.FormatWidget zul.db.Datebox
public class Datebox
An edit box for holding a date.
Default Widget.getZclass()
: z-datebox.
Field Summary |
---|
Fields inherited from class zul.inp.InputWidget |
---|
onChangingDelay, onChangingForced |
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
protected void |
enterPressed_(Event evt)
Called when the user presses enter when this widget has the focus ( Widget.focus(int) ). |
protected void |
escPressed_(Event evt)
Called when the user presses escape key when this widget has the focus ( Widget.focus(int) ). |
String |
getConstraint()
Returns the constraint, or null if no constraint at all. |
String |
getDateFormat()
Returns the Date format of the specified format |
Array |
getDisplayedTimeZones()
Returns a list of the time zones that will be displayed at the client and allow user to select. |
String |
getFormat()
Returns the full date format of the specified format |
String |
getTimeFormat()
Returns the Time format of the specified format |
String |
getTimeZone()
Returns the time zone that this date box belongs to. |
String |
getTimeZoneLabel()
Returns the label of the time zone |
String |
getUnformater()
Returns the unformater. |
boolean |
isButtonVisible()
Returns whether the button (on the right of the textbox) is visible. |
boolean |
isLenient()
Returns whether or not date/time parsing is to be lenient. |
boolean |
isTimeZonesReadonly()
Returns whether the list of the time zones to display is readonly. |
boolean |
isWeekOfYear()
Returns whether enable to show the week number in the current calendar or not. |
void |
setButtonVisible(boolean visible)
Sets whether the button (on the right of the textbox) is visible. |
void |
setConstraint(String cst)
Sets the constraint. |
void |
setDisplayedTimeZones(String dtzones)
Sets a catenation of a list of the time zones' ID, separated by comma, that will be displayed at the client and allow user to select. |
void |
setFormat(String format)
Sets the date format. |
void |
setLenient(boolean lenient)
Sets whether or not date/time parsing is to be lenient. |
void |
setOpen()
Drops down or closes the calendar to select a date. |
void |
setTimeZone(String timezone)
Sets the time zone that this date box belongs to. |
void |
setTimeZonesReadonly(boolean readonly)
Sets whether the list of the time zones to display is readonly. |
void |
setUnformater(String unf)
Sets the unformater function. |
void |
setWeekOfYear(boolean weekOfYear)
Sets whether enable to show the week number in the current calendar or not. |
Methods inherited from class zul.inp.InputWidget |
---|
clearErrorMessage, coerceFromString_, coerceToString_, fireOnChange, getCols, getErrorMessage, getErrorMesssage, getInplaceCSS, getInputNode, getMaxlength, getName, getPlaceholder, getTabindex, getText, getType, getValue, inRoundedMold, isDisabled, isInplace, isInstant, isMultiline, isReadonly, select, setCols, setDisabled, setErrorMessage, setInplace, setInstant, setMaxlength, setName, setPlaceholder, setReadonly, setTabindex, setText, setValue, shallUpdate_, showError_, textAttrs_, updateChange_, validate_ |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isButtonVisible()
Default: true.
public void setButtonVisible(boolean visible)
visible
- public String getFormat()
getFormat
in class FormatWidget
public void setFormat(String format)
The following pattern letters are defined:
Letter | Date or Time Component | Presentation | Examples | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
G
| Era designator | AD
y
Year
| Year
| 1996 ; 96
M
Month in year
| Month
| July ; Jul ; 07
w
Week in year (starting at 1)
| Number
| 27
W
Week in month (starting at 1)
| Number
| 2
D
Day in year (starting at 1)
| Number
| 189
d
Day in month (starting at 1)
| Number
| 10
F
Day of week in month
| Number
| 2
E
Day in week
| Text
| Tuesday ; Tue
|
setFormat
in class FormatWidget
format
- the pattern.public String getConstraint()
public void setConstraint(String cst)
Default: null (means no constraint all all).
setConstraint
in class InputWidget
cst
- public String getTimeZone()
public void setTimeZone(String timezone)
timezone
- the time zone's ID, such as "America/Los_Angeles".public boolean isTimeZonesReadonly()
public void setTimeZonesReadonly(boolean readonly)
readonly
- public Array getDisplayedTimeZones()
Default: null
public void setDisplayedTimeZones(String dtzones)
dtzones
- a catenation of a list of the timezones' ID, such as
"America/Los_Angeles,GMT+8"
public String getUnformater()
public void setUnformater(String unf)
unf
- the unformater functionpublic boolean isLenient()
With lenient parsing, the parser may use heuristics to interpret inputs that do not precisely match this object's format. With strict parsing, inputs must match this object's format.
public void setLenient(boolean lenient)
With lenient parsing, the parser may use heuristics to interpret inputs that do not precisely match this object's format. With strict parsing, inputs must match this object's format.
Default: true.
lenient
- public boolean isWeekOfYear()
Default: false
public void setWeekOfYear(boolean weekOfYear)
weekOfYear
- public String getTimeFormat()
public String getDateFormat()
public void setOpen()
protected void enterPressed_(Event evt)
Widget.focus(int)
).
call the close function
evt
- the widget event.
The original DOM event and target can be retrieved by Event.domEvent
and Event.domTarget
protected void escPressed_(Event evt)
Widget.focus(int)
).
call the close function
evt
- the widget event.
The original DOM event and target can be retrieved by Event.domEvent
and Event.domTarget
public String getTimeZoneLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |