Class Datebox
- All Implemented Interfaces:
Serializable,Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Disable,org.zkoss.zk.ui.ext.Readonly,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl,Constrainted
The default format (FormatInputElement.getFormat()) depends on DateFormats.getDateFormat(int, Locale, String)
and the current user's locale (unless DateTimeFormatInputElement.setLocale(java.util.Locale) is assigned.
Please refer to setFormat(java.lang.String) for more details.
Default getZclass(): z-datebox.(since 3.5.0)
- Author:
- tomyeh
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classA utility class to implementHtmlBasedComponent.getExtraCtrl().Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children, org.zkoss.zk.ui.AbstractComponent.ForwardInfo, org.zkoss.zk.ui.AbstractComponent.TargetInfo -
Field Summary
FieldsFields inherited from class org.zkoss.zul.impl.DateTimeFormatInputElement
_locale, _tzoneFields inherited from class org.zkoss.zul.impl.InputElement
_cols, _valueFields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclassFields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_CLONED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, AFTER_PARENT_CHANGED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE -
Constructor Summary
ConstructorsConstructorDescriptionDatebox()Constructor with a given date.Datebox(LocalDateTime value) Constructor with a given date.Constructor with a given date.Datebox(ZonedDateTime value) Constructor with a given date.Constructor with a given date. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the calendar if it was dropped down.protected ObjectcoerceFromString(String value) Coerces the value passed toInputElement.setText(java.lang.String).protected StringcoerceToString(Object value) Coerces the value passed toInputElement.setText(java.lang.String).booleanReturns whether to auto close the datebox popup after changing the timezone.protected DateFormatgetDateFormat(String fmt) Returns the date format of the specified formatReturns the default datetime if the value is empty.protected StringReturns the default format, which is used when constructing a datebox, or whensetFormat(java.lang.String)is called with null or empty.Returns a list of the time zones that will be displayed at the client and allow user to select.protected StringReturns the localized format, which is used when constructing a datebox.org.zkoss.zk.ui.sys.PropertyAccessgetPropertyAccess(String prop) Returns the real format, i.e., the combination of the format patterns, such as yyyy-MM-dd.static Object[]getRealSymbols(Locale locale, org.zkoss.zk.ui.Component comp) Returns the localized client date symbols payload for a component locale.Returns the level that a user can select.booleanReturns whether enable to show the link that jump to today in day viewReturns the label of the link that jump to today in day viewbooleanReturns whether the button (on the right of the textbox) is visible.booleanReturns whether date/time parsing is to be lenient or not.booleanReturns whether date/time should be strict or not.booleanReturns whether the list of the time zones to display is readonly.booleanReturns whether enable to show the week number in the current calendar or not.voidopen()Drops down the calendar to select a date.protected voidrenderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) voidservice(org.zkoss.zk.au.AuRequest request, boolean everError) Processes an AU request.voidsetButtonVisible(boolean visible) Sets whether the button (on the right of the textbox) is visible.voidsetClosePopupOnTimezoneChange(boolean closePopupOnTimezoneChange) Sets whether to auto close the datebox popup after changing the timezone.voidsetConstraint(String constr) voidsetDefaultDateTime(LocalDateTime defaultDateTime) Sets the default datetime if the value is empty.voidsetDisplayedTimeZones(String dtzones) Sets a concatenation of a list of the time zones' ID, separated by comma, that will be displayed at the client and allow user to select.voidsetDisplayedTimeZones(List<TimeZone> dtzones) Sets a list of the time zones that will be displayed at the client and allow user to select.voidSets the date format.voidsetLenient(boolean lenient) Sets whether date/time parsing is to be lenient or not.voidsetOpen(boolean open) Drops down or closes the calendar to select a date.voidsetPosition(String position) Position the popup datebox to the specified location.voidsetSelectLevel(String selectLevel) Sets the level that a user can select.voidsetShowTodayLink(boolean showTodayLink) Sets whether enable to show the link that jump to today in day viewvoidsetStrictDate(boolean strictDate) Sets whether or not date/time should be strict.voidsetTimeZone(TimeZone tzone) Sets the time zone that this component belongs to, or null if the default time zone is used.voidsetTimeZonesReadonly(boolean readonly) Sets whether the list of the time zones to display is readonly.voidsetTodayLinkLabel(String todayLinkLabel) Sets the label of the link that jump to today in day viewvoidsetWeekOfYear(boolean weekOfYear) Sets whether enable to show the week number in the current calendar or not.static intReturns the styling index, or -111 if not matched.Methods inherited from class org.zkoss.zul.impl.DateTimeFormatInputElement
getLocale, getTimeZone, getValue, getValueInLocalDate, getValueInLocalDateTime, getValueInLocalTime, getValueInZonedDateTime, getZoneId, setConstraint, setLocale, setLocale, setTimeZone, setValue, setValueInLocalDate, setValueInLocalDateTime, setValueInLocalTime, setValueInZonedDateTime, toDate, toDate, toDate, toZonedDateTimeMethods inherited from class org.zkoss.zul.impl.FormatInputElement
getFormatMethods inherited from class org.zkoss.zul.impl.InputElement
checkUserError, clearErrorMessage, clearErrorMessage, clone, getCols, getConstraint, getConstraintString, getErrorboxIconSclass, getErrorboxSclass, getErrorMessage, getInputAttributes, getInstant, getMaxlength, getName, getPlaceholder, getRawText, getRawValue, getTargetValue, getText, getType, isChildable, isDisabled, isInplace, isInstant, isMultiline, isReadonly, isValid, marshall, onWrongValue, select, setCols, setDisabled, setErrorboxIconSclass, setErrorboxSclass, setErrorMessage, setInplace, setInputAttributes, setInputAttributes, setInsertedText, setInstant, setMaxlength, setName, setPlaceholder, setRawValue, setReadonly, setSelectedText, setSelectionRange, setText, setValueDirectly, showCustomError, unmarshall, validateMethods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesMethods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setClientAction, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setSkeleton, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyMethods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, destroyIndexCacheMap, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, disableHostChanged, enableBindingAnnotation, enableHostChanged, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getForwards, getId, getIndexCacheMap, getLastChild, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, initIndexCacheMap, insertBefore, invalidate, isDisabledHostChanged, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onParentChanged, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderPropertiesOnly, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Field Details
-
DEFAULT_FORMAT
- See Also:
-
-
Constructor Details
-
Datebox
public Datebox() -
Datebox
Constructor with a given date.- Parameters:
date- the date to be assigned to this datebox initially.
Notice that, if this datebox does not allow users to select the time (i.e., the format limited to year, month and day), the date specified here is better to set hour, minutes, seconds and milliseconds to zero (for the current timezone,TimeZones.getCurrent()), so it is easier to work with other libraries, such as SQL.Dateshas a set of utilities to simplify the task.- Throws:
org.zkoss.zk.ui.WrongValueException
-
Datebox
Constructor with a given date.- Parameters:
value- the date to be assigned to this datebox initially.
Notice that, if this datebox does not allow users to select the time (i.e., the format limited to year, month and day), the date specified here is better to set hour, minutes, seconds and milliseconds to zero (for the current timezone,TimeZones.getCurrent()), so it is easier to work with other libraries, such as SQL.Dateshas a set of utilities to simplify the task.- Throws:
org.zkoss.zk.ui.WrongValueException- Since:
- 9.0.0
-
Datebox
Constructor with a given date.- Parameters:
value- the date to be assigned to this datebox initially.
Notice that, if this datebox does not allow users to select the time (i.e., the format limited to year, month and day), the date specified here is better to set hour, minutes, seconds and milliseconds to zero (for the current timezone,TimeZones.getCurrent()), so it is easier to work with other libraries, such as SQL.Dateshas a set of utilities to simplify the task.- Throws:
org.zkoss.zk.ui.WrongValueException- Since:
- 9.0.0
-
Datebox
Constructor with a given date.- Parameters:
value- the date to be assigned to this datebox initially.
Notice that, if this datebox does not allow users to select the time (i.e., the format limited to year, month and day), the date specified here is better to set hour, minutes, seconds and milliseconds to zero (for the current timezone,TimeZones.getCurrent()), so it is easier to work with other libraries, such as SQL.Dateshas a set of utilities to simplify the task.- Throws:
org.zkoss.zk.ui.WrongValueException- Since:
- 9.0.0
-
Datebox
Constructor with a given date.- Parameters:
value- the date to be assigned to this datebox initially.
Notice that, if this datebox does not allow users to select the time (i.e., the format limited to year, month and day), the date specified here is better to set hour, minutes, seconds and milliseconds to zero (for the current timezone,TimeZones.getCurrent()), so it is easier to work with other libraries, such as SQL.Dateshas a set of utilities to simplify the task.- Throws:
org.zkoss.zk.ui.WrongValueException- Since:
- 9.0.0
-
-
Method Details
-
setWeekOfYear
public void setWeekOfYear(boolean weekOfYear) Sets whether enable to show the week number in the current calendar or not. [ZK EE]- Since:
- 6.5.0
-
isWeekOfYear
public boolean isWeekOfYear()Returns whether enable to show the week number in the current calendar or not.Default: false
- Since:
- 6.5.0
-
setStrictDate
public void setStrictDate(boolean strictDate) Sets whether or not date/time should be strict. If true, any invalid input like "Jan 0" or "Nov 31" would be refused. If false, it won't be checked and let lenient parsing decide.- Since:
- 8.6.0
-
isStrictDate
public boolean isStrictDate()Returns whether date/time should be strict or not.Default: false.
- Since:
- 8.6.0
-
getDefaultFormat
Returns the default format, which is used when constructing a datebox, or whensetFormat(java.lang.String)is called with null or empty.Default: DateFormats.getDateFormat(DEFAULT, null, "yyyy/MM/dd") (see
DateFormats.getDateFormat(int, java.util.Locale, java.lang.String)).Though you might override this method to provide your own default format, it is suggested to specify the format for the current thread with
DateFormats.setLocalFormatInfo(org.zkoss.text.DateFormatInfo). -
getLocalizedFormat
Returns the localized format, which is used when constructing a datebox.You might override this method to provide your own localized format.
-
isLenient
public boolean isLenient()Returns whether date/time parsing is to be lenient or not.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.
-
setLenient
public void setLenient(boolean lenient) Sets whether date/time parsing is to be lenient or not.Default: true.
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.
-
isButtonVisible
public boolean isButtonVisible()Returns whether the button (on the right of the textbox) is visible.Default: true.
- Since:
- 2.4.1
-
setButtonVisible
public void setButtonVisible(boolean visible) Sets whether the button (on the right of the textbox) is visible.- Since:
- 2.4.1
-
getPosition
- Returns:
- the datebox popup position
- Since:
- 8.0.3
-
setPosition
Position the popup datebox to the specified location.- Parameters:
position- where to position. Default:after_startAllowed values:- before_start
the element appears above the anchor, aligned to the left. - before_center
the element appears above the anchor, aligned to the center. - before_end
the element appears above the anchor, aligned to the right. - after_start
the element appears below the anchor, aligned to the left. - after_center
the element appears below the anchor, aligned to the center. - after_end
the element appears below the anchor, aligned to the right. - start_before
the element appears to the left of the anchor, aligned to the top. - start_center
the element appears to the left of the anchor, aligned to the middle. - start_after
the element appears to the left of the anchor, aligned to the bottom. - end_before
the element appears to the right of the anchor, aligned to the top. - end_center
the element appears to the right of the anchor, aligned to the middle. - end_after
the element appears to the right of the anchor, aligned to the bottom. - overlap/top_left
the element overlaps the anchor, with anchor and element aligned at top-left. - top_center
the element overlaps the anchor, with anchor and element aligned at top-center. - overlap_end/top_right
the element overlaps the anchor, with anchor and element aligned at top-right. - middle_left
the element overlaps the anchor, with anchor and element aligned at middle-left. - middle_center
the element overlaps the anchor, with anchor and element aligned at middle-center. - middle_right
the element overlaps the anchor, with anchor and element aligned at middle-right. - overlap_before/bottom_left
the element overlaps the anchor, with anchor and element aligned at bottom-left. - bottom_center
the element overlaps the anchor, with anchor and element aligned at bottom-center. - overlap_after/bottom_right
the element overlaps the anchor, with anchor and element aligned at bottom-right. - at_pointer
the element appears with the upper-left aligned with the mouse cursor. - after_pointer
the element appears with the top aligned with the bottom of the mouse cursor, with the left side of the element at the horizontal position of the mouse cursor.
- before_start
- Since:
- 8.0.3
-
setFormat
Sets the date format.If null or empty is specified,
getDefaultFormat()is assumed. Since 5.0.7, you could specify one of the following reserved words, andDateFormats.getDateFormat(int, java.util.Locale, java.lang.String)orDateFormats.getDateTimeFormat(int, int, java.util.Locale, java.lang.String)will be used to retrieve the real format.short DateFormats.getDateFormat(int, java.util.Locale, java.lang.String)withDateFormat.SHORTmedium DateFormats.getDateFormat(int, java.util.Locale, java.lang.String)withDateFormat.MEDIUMlong DateFormats.getDateFormat(int, java.util.Locale, java.lang.String)withDateFormat.LONGfull DateFormats.getDateFormat(int, java.util.Locale, java.lang.String)withDateFormat.FULLTo specify a date/time format, you could specify two reserved words, separated by a plus. For example, "medium+short" means
DateFormats.getDateTimeFormat(int, int, java.util.Locale, java.lang.String)with the medium date styling and the short time styling.In additions, the format could be a combination of the following pattern letters:
Letter Date or Time Component Presentation Examples GEra designator Text ADyYear Year 1996;96MMonth in year Month July;Jul;07wWeek in year (starting at 1) Number 27WWeek in month (starting at 1) Number 2DDay in year (starting at 1) Number 189dDay in month (starting at 1) Number 10FDay of week in month Number 2EDay in week Text Tuesday;Tue- Overrides:
setFormatin classFormatInputElement- Throws:
org.zkoss.zk.ui.WrongValueException
-
toStyle
Returns the styling index, or -111 if not matched. -
getRealFormat
Returns the real format, i.e., the combination of the format patterns, such as yyyy-MM-dd.As described in
setFormat(java.lang.String), a developer could specify an abstract name, such as short, or an empty string as the format, and this method will convert it to a real date/time format.- Overrides:
getRealFormatin classFormatInputElement- Since:
- 5.0.7
-
setTimeZone
Sets the time zone that this component belongs to, or null if the default time zone is used.The default time zone is determined by
TimeZones.getCurrent().Notice that if
getDisplayedTimeZones()was called with a non-empty list, the time zone must be one of it. Otherwise (includingtzone is null), the first timezone is selected.- Overrides:
setTimeZonein classDateTimeFormatInputElement
-
getDisplayedTimeZones
Returns a list of the time zones that will be displayed at the client and allow user to select.Default: null
- Since:
- 3.6.3
-
setDisplayedTimeZones
Sets a list of the time zones that will be displayed at the client and allow user to select.If the
DateTimeFormatInputElement.getTimeZone()is null, the first time zone in the list is assumed.- Parameters:
dtzones- a list of the time zones to display. If empty, it assumed to be null.- Since:
- 3.6.3
-
setDisplayedTimeZones
Sets a concatenation of a list of the time zones' ID, separated by comma, that will be displayed at the client and allow user to select.The time zone is retrieved by calling TimeZone.getTimeZone().
- Parameters:
dtzones- a concatenation of a list of the timezones' ID, such as"America/Los_Angeles,GMT+8"- Since:
- 3.6.3
- See Also:
-
isTimeZonesReadonly
public boolean isTimeZonesReadonly()Returns whether the list of the time zones to display is readonly. If readonly, the user cannot change the time zone at the client.- Since:
- 3.6.3
-
setTimeZonesReadonly
public void setTimeZonesReadonly(boolean readonly) Sets whether the list of the time zones to display is readonly. If readonly, the user cannot change the time zone at the client.- Since:
- 3.6.3
-
getRealSymbols
Returns the localized client date symbols payload for a component locale.- Parameters:
locale- the component locale, ornullfor the page localecomp- the component requesting the symbols- Returns:
- the client payload, or
nullif no component locale is set - Since:
- 11.0.0
-
setOpen
public void setOpen(boolean open) Drops down or closes the calendar to select a date. only works while visible -
open
public void open()Drops down the calendar to select a date. The same as setOpen(true).- Since:
- 3.0.1
-
close
public void close()Closes the calendar if it was dropped down. The same as setOpen(false).- Since:
- 3.0.1
-
service
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) Processes an AU request.Default: in addition to what are handled by
HtmlBasedComponent.service(org.zkoss.zk.au.AuRequest, boolean), it also handles onTimeZoneChange, onChange, onChanging and onError.- Specified by:
servicein interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
servicein classInputElement- Since:
- 5.0.0
-
getExtraCtrl
- Specified by:
getExtraCtrlin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
getExtraCtrlin classorg.zkoss.zk.ui.HtmlBasedComponent
-
setConstraint
- Overrides:
setConstraintin classInputElement- Parameters:
constr- a list of constraints separated by comma. Example: "between 20071012 and 20071223", "before 20080103"
-
coerceFromString
Description copied from class:InputElementCoerces the value passed toInputElement.setText(java.lang.String).Deriving note:
If you want to store the value in other type, say BigDecimal, you have to overrideInputElement.coerceToString(java.lang.Object)andInputElement.coerceFromString(java.lang.String)to convert between a string and your targeting type.Moreover, when
Textboxis called, it calls this method with value = null. Derives shall handle this case properly.- Specified by:
coerceFromStringin classInputElement- Throws:
org.zkoss.zk.ui.WrongValueException
-
coerceToString
Description copied from class:InputElementCoerces the value passed toInputElement.setText(java.lang.String).Default: convert null to an empty string.
Deriving note:
If you want to store the value in other type, say BigDecimal, you have to overrideInputElement.coerceToString(java.lang.Object)andInputElement.coerceFromString(java.lang.String)to convert between a string and your targeting type.- Specified by:
coerceToStringin classInputElement
-
getDateFormat
Returns the date format of the specified formatDefault: it uses SimpleDateFormat to format the date.
- Parameters:
fmt- the pattern.
-
getZclass
- Overrides:
getZclassin classorg.zkoss.zk.ui.HtmlBasedComponent
-
getShowTodayLink
public boolean getShowTodayLink()Returns whether enable to show the link that jump to today in day viewDefault: false
- Returns:
- boolean
- Since:
- 8.0.0
-
setShowTodayLink
public void setShowTodayLink(boolean showTodayLink) Sets whether enable to show the link that jump to today in day view- Parameters:
showTodayLink- show or hidden- Since:
- 8.0.0
-
getTodayLinkLabel
Returns the label of the link that jump to today in day viewDefault: Today
- Returns:
- String
- Since:
- 8.0.4
-
setTodayLinkLabel
Sets the label of the link that jump to today in day view- Parameters:
todayLinkLabel- today link label- Since:
- 8.0.4
-
getDefaultDateTime
Returns the default datetime if the value is empty.Default: null (means current datetime)
- Since:
- 9.0.0
-
setDefaultDateTime
Sets the default datetime if the value is empty.- Parameters:
defaultDateTime- Default datetime. null means current datetime.- Since:
- 9.0.0
-
getSelectLevel
Returns the level that a user can select.Default: "day"
- Returns:
- the level that a user can select
- Since:
- 9.5.1
-
setSelectLevel
Sets the level that a user can select. The valid options are "day", "month", and "year".- Parameters:
selectLevel- the level that a user can select- Since:
- 9.5.1
-
getClosePopupOnTimezoneChange
public boolean getClosePopupOnTimezoneChange()Returns whether to auto close the datebox popup after changing the timezone.Default: true
- Returns:
- boolean
- Since:
- 9.6.0
-
setClosePopupOnTimezoneChange
public void setClosePopupOnTimezoneChange(boolean closePopupOnTimezoneChange) Sets whether to auto close the datebox popup after changing the timezone.- Parameters:
closePopupOnTimezoneChange- shall close the datebox popup or not- Since:
- 9.6.0
-
getPropertyAccess
- Specified by:
getPropertyAccessin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
getPropertyAccessin classDateTimeFormatInputElement
-
renderProperties
- Overrides:
renderPropertiesin classDateTimeFormatInputElement- Throws:
IOException
-