/** * Maximum date the selectors will allow the user to pick. <P> See {@link * com.smartgwt.client.widgets.form.fields.DateItem#getStartDate startDate} for details on how this restriction works. * * * @return java.util.Date * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public java.util.Date getEndDate() { return getAttributeAsDate("endDate"); }
/** * Default date to show in the date chooser. If this items value is currently unset, this property may be specified to set * a default date to highlight in the dateChooser for this item. If unset, the date chooser will highlight the current * date by default. Note that this has no effect if the item as a whole currently has a value - in that case the date * chooser will always highlight the current value for the item. * * * @return Returns the default date to display in the date chooser if this form items value is currently unset. <P> Default * implementation returns {@link com.smartgwt.client.widgets.form.fields.DateItem#getDefaultChooserDate defaultChooserDate} */ public java.util.Date getDefaultChooserDate() { return getAttributeAsDate("defaultChooserDate"); }
/** * Minimum date the selectors will allow the user to pick. <P> <b>NOTE:</b> by design, setting <code>startDate</code> and * <code>endDate</code> will not always prevent the user from picking invalid values. In particular: <ul> <li> the set of * available days will only be restricted if the start and end dates fall within the same month <li> the set of available * months will only be restricted if the start and end dates fall within the same year </ul> <P> This is <b>by design</b> * as it allows the user to set the day, month and year in whatever order is convenient, rather than forcing them to pick * in a specific order. <P> For actual enforcement of a date being in correct range before data is submitted, a {@link * com.smartgwt.client.widgets.form.validator.Validator} of type "dateRange" should always be declared. * * * @return java.util.Date * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public java.util.Date getStartDate() { return getAttributeAsDate("startDate"); }