/** * If {@link com.smartgwt.client.widgets.form.fields.DateItem#getUseTextField useTextField} is <code>true</code> this * property governs the alignment of text within the text field. * * * @return Alignment * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public Alignment getTextAlign() { return EnumUtil.getEnum(Alignment.values(), getAttribute("textAlign")); }
/** * If showing date selectors rather than the date text field (so when <code>this.useTextField</code> is false), this * property allows customization of the order of the day, month and year selector fields. If unset these fields will * match the specified inputFormat for this item. <P> Note: selectors may be ommitted entirely by setting selectorFormat to * (for example) <code>"MD"</code>. In this case the value for the omitted selector will match the {@link * com.smartgwt.client.widgets.form.fields.DateItem#getDefaultValue defaultValue} specified for the item. For example, if * the selector format is "MD" (month and day only), the year comes from the Date specified as the defaultValue. * * * @return DateItemSelectorFormat */ public DateItemSelectorFormat getSelectorFormat() { return EnumUtil.getEnum(DateItemSelectorFormat.values(), getAttribute("selectorFormat")); }
/** * If {@link com.smartgwt.client.widgets.form.fields.DateItem#getUseTextField useTextField} is <code>true</code> this * property can be used to customize the format in which dates are displayed.<br> Should be set to a standard {@link * com.smartgwt.client.types.DateDisplayFormat} or a function which will return a formatted date string. <P> If unset, the * standard shortDate format as set up via Date.setShortDisplayFormat will be used. <P> <B>NOTE: you may need to update * the {@link com.smartgwt.client.widgets.form.fields.DateItem#getInputFormat inputFormat} to ensure the DateItem is able * to parse user-entered date strings back into Dates</B> * * * @return DateDisplayFormat * @see com.smartgwt.client.widgets.form.fields.DateItem#getInputFormat */ public DateDisplayFormat getDisplayFormat() { return EnumUtil.getEnum(DateDisplayFormat.values(), getAttribute("displayFormat")); }