/** * Sets whether enable to show the link that jump to today in day view * @param showTodayLink show or hidden * @since 8.0.0 */ public void setShowTodayLink(boolean showTodayLink) { if (_showTodayLink != showTodayLink) { _showTodayLink = showTodayLink; smartUpdate("showTodayLink", _showTodayLink); } }
/** * Sets whether enable to show the week number within the current year or * not. * [ZK EE] * @since 6.5.0 */ public void setWeekOfYear(boolean weekOfYear) { if (_weekOfYear != weekOfYear) { _weekOfYear = weekOfYear; smartUpdate("weekOfYear", _weekOfYear); } }
/** Assigns a value to this component. * @param value the date to assign. If null, today is assumed. */ public void setValue(Date value) { if (value == null) value = Dates.today(); if (!value.equals(_value)) { _value = value; smartUpdate("value", _value); } }
/** * Sets the label of the link that jump to today in day view * @param todayLinkLabel today link label * @since 8.0.4 */ public void setTodayLinkLabel(String todayLinkLabel) { if (!Objects.equals(_todayLinkLabel, todayLinkLabel)) { _todayLinkLabel = todayLinkLabel; smartUpdate("todayLinkLabel", todayLinkLabel); } }
/** Sets the name of this component. * <p>The name is used only to work with "legacy" Web application that * handles user's request by servlets. * It works only with HTTP/HTML-based browsers. It doesn't work * with other kind of clients. * <p>Don't use this method if your application is purely based * on ZK's event-driven model. * * @param name the name of this component. * @since 3.0.0 */ public void setName(String name) { if (name != null && name.length() == 0) name = null; if (!Objects.equals(_name, name)) { _name = name; smartUpdate("name", _name); } }
public void setConstraint(Constraint constr) { if (!Objects.equals(_constraint, constr)) { _constraint = (SimpleDateConstraint) constr; smartUpdate("constraint", new JavaScriptValue(_constraint.getClientConstraint())); } }