/** * * @return the DatePicker's formats. * * @see org.jdesktop.swingx.JXDatePicker#getFormats(). */ public DateFormat[] getFormats() { return datePicker.getFormats(); }
/** * * @return the DatePicker's formats. * * @see org.jdesktop.swingx.JXDatePicker#getFormats(). */ public DateFormat[] getFormats() { return datePicker.getFormats(); }
/** * * @return the DatePicker's formats. * * @see org.jdesktop.swingx.JXDatePicker#getFormats(). */ public DateFormat[] getFormats() { return datePicker.getFormats(); }
/** * * @return the DatePicker's formats. * * @see org.jdesktop.swingx.JXDatePicker#getFormats(). */ public DateFormat[] getFormats() { return datePicker.getFormats(); }
/** * * @return the DatePicker's formats. * * @see org.jdesktop.swingx.JXDatePicker#getFormats(). */ public DateFormat[] getFormats() { return datePicker.getFormats(); }
/** * Updates the picker's formats to the given TimeZone. * @param zone the timezone to set on the formats. */ protected void updateFormatsFromTimeZone(TimeZone zone) { for (DateFormat format : datePicker.getFormats()) { format.setTimeZone(zone); } }
/** * Updates the picker's formats to the given TimeZone. * @param zone the timezone to set on the formats. */ protected void updateFormatsFromTimeZone(TimeZone zone) { for (DateFormat format : datePicker.getFormats()) { format.setTimeZone(zone); } }
/** * Updates the picker's formats to the given TimeZone. * @param zone the timezone to set on the formats. */ protected void updateFormatsFromTimeZone(TimeZone zone) { for (DateFormat format : datePicker.getFormats()) { format.setTimeZone(zone); } }
/** * Updates the picker's formats to the given TimeZone. * @param zone the timezone to set on the formats. */ protected void updateFormatsFromTimeZone(TimeZone zone) { for (DateFormat format : datePicker.getFormats()) { format.setTimeZone(zone); } }
/** * Updates the picker's formats to the given TimeZone. * @param zone the timezone to set on the formats. */ protected void updateFormatsFromTimeZone(TimeZone zone) { for (DateFormat format : datePicker.getFormats()) { format.setTimeZone(zone); } }
/** * Replaces the currently installed formatter and factory used by the * editor.<p> * * Note: The given formats are internally synched to the picker's current * TimeZone. * * @param formats zero or more not null formats to use. Note that a * null array is allowed and resets the formatter to use the * localized default formats. * @throws NullPointerException any of its elements is null. */ public void setFormats(DateFormat... formats) { if (formats != null) { Contract.asNotNull(formats, "the array of formats " + "must not contain null elements"); } DateFormat[] old = getFormats(); _dateField.setFormatterFactory(new DefaultFormatterFactory( new DatePickerFormatter(formats, getLocale()))); firePropertyChange("formats", old, getFormats()); }
/** * Replaces the currently installed formatter and factory used by the * editor.<p> * * Note: The given formats are internally synched to the picker's current * TimeZone. * * @param formats zero or more not null formats to use. Note that a * null array is allowed and resets the formatter to use the * localized default formats. * @throws NullPointerException any of its elements is null. */ public void setFormats(DateFormat... formats) { if (formats != null) { Contract.asNotNull(formats, "the array of formats " + "must not contain null elements"); } DateFormat[] old = getFormats(); _dateField.setFormatterFactory(new DefaultFormatterFactory( new DatePickerFormatter(formats, getLocale()))); firePropertyChange("formats", old, getFormats()); }
/** * Replaces the currently installed formatter and factory used by the * editor.<p> * * Note: The given formats are internally synched to the picker's current * TimeZone. * * @param formats zero or more not null formats to use. Note that a * null array is allowed and resets the formatter to use the * localized default formats. * @throws NullPointerException any of its elements is null. */ public void setFormats(DateFormat... formats) { if (formats != null) { Contract.asNotNull(formats, "the array of formats " + "must not contain null elements"); } DateFormat[] old = getFormats(); _dateField.setFormatterFactory(new DefaultFormatterFactory( new DatePickerFormatter(formats, getLocale()))); firePropertyChange("formats", old, getFormats()); }
/** * Replaces the currently installed formatter and factory used by the * editor.<p> * * Note: The given formats are internally synched to the picker's current * TimeZone. * * @param formats zero or more not null formats to use. Note that a * null array is allowed and resets the formatter to use the * localized default formats. * @throws NullPointerException any of its elements is null. */ public void setFormats(DateFormat... formats) { if (formats != null) { Contract.asNotNull(formats, "the array of formats " + "must not contain null elements"); } DateFormat[] old = getFormats(); _dateField.setFormatterFactory(new DefaultFormatterFactory( new DatePickerFormatter(formats, getLocale()))); firePropertyChange("formats", old, getFormats()); }
/** * Replaces the currently installed formatter and factory used by the * editor.<p> * * Note: The given formats are internally synched to the picker's current * TimeZone. * * @param formats zero or more not null formats to use. Note that a * null array is allowed and resets the formatter to use the * localized default formats. * @throws NullPointerException any of its elements is null. */ public void setFormats(DateFormat... formats) { if (formats != null) { Contract.asNotNull(formats, "the array of formats " + "must not contain null elements"); } DateFormat[] old = getFormats(); _dateField.setFormatterFactory(new DefaultFormatterFactory( new DatePickerFormatter(formats, getLocale()))); firePropertyChange("formats", old, getFormats()); }