/** * Validation error message to display if the user enters an invalid date * * * @return String */ public String getInvalidDateStringMessage() { return getAttributeAsString("invalidDateStringMessage"); }
/** * Prompt to show when the user hovers the mouse over the picker icon for this DateItem. May be overridden for localization * of your application. * * * @return String */ public String getPickerIconPrompt() { return getAttributeAsString("pickerIconPrompt"); }
/** * If {@link com.smartgwt.client.widgets.form.fields.DateItem#getUseTextField useTextField} is <code>true</code> this * property can be used to specify the input format for date strings. If unset, the input format will be determined based * on the specified {@link com.smartgwt.client.widgets.form.fields.DateItem#getDisplayFormat displayFormat} if possible * (see {@link com.smartgwt.client.widgets.form.fields.DateItem#getInputFormat DateItem.getInputFormat}), otherwise picked * up from the Date class (see Date.setInputFormat). <P> Should be set to a standard String or a function which will take * a date string as a parameter and return a Javascript Date object. * * * @return If {@link com.smartgwt.client.widgets.form.fields.DateItem#getUseTextField useTextField} is <code>true</code> this * method returns a standard String, or parsing function, determining how values entered by the user are to be converted to * Javascript Date objects. <P> If an explicit {@link com.smartgwt.client.widgets.form.fields.DateItem#getInputFormat * inputFormat} has been specified it will be returned. <P> Otherwise, if an explicit {@link * com.smartgwt.client.widgets.form.fields.DateItem#getDisplayFormat displayFormat} has been specified as one of * <code>toUSShortDate</code>, <code>toEuropeanShortDate</code> or <code>toJapanShortDate</code> this method will return * the appropriate DateInputFormat to parse strings entered in the specified displayFormat. <P> If no inputFormat can be * derived, the method will return null, meaning the standard input format for Date objects (specified via * Date.setInputFormat) will be used. * @see com.smartgwt.client.widgets.form.fields.DateItem#getDisplayFormat */ public String getInputFormat() { return getAttributeAsString("inputFormat"); }