/** * Updates picker's timezone dependent properties on change notification * from the associated monthView. * * PENDING JW: DatePicker needs to send notification on timezone change? * * @param old the timezone before the change. */ protected void updateTimeZone(TimeZone old) { updateFormatsFromTimeZone(datePicker.getTimeZone()); updateLinkDate(); }
/** * Updates picker's timezone dependent properties on change notification * from the associated monthView. * * PENDING JW: DatePicker needs to send notification on timezone change? * * @param old the timezone before the change. */ protected void updateTimeZone(TimeZone old) { updateFormatsFromTimeZone(datePicker.getTimeZone()); updateLinkDate(); }
/** * Updates picker's timezone dependent properties on change notification * from the associated monthView. * * PENDING JW: DatePicker needs to send notification on timezone change? * * @param old the timezone before the change. */ protected void updateTimeZone(TimeZone old) { updateFormatsFromTimeZone(datePicker.getTimeZone()); updateLinkDate(); }
/** * Updates picker's timezone dependent properties on change notification * from the associated monthView. * * PENDING JW: DatePicker needs to send notification on timezone change? * * @param old the timezone before the change. */ protected void updateTimeZone(TimeZone old) { updateFormatsFromTimeZone(datePicker.getTimeZone()); updateLinkDate(); }
/** * Updates picker's timezone dependent properties on change notification * from the associated monthView. * * PENDING JW: DatePicker needs to send notification on timezone change? * * @param old the timezone before the change. */ protected void updateTimeZone(TimeZone old) { updateFormatsFromTimeZone(datePicker.getTimeZone()); updateLinkDate(); }
/** * Sets the date shown in the TodayPanel. * * PENDING JW ... quick api hack for testing. Don't recreate the panel if * it had been used * * @param linkDay the date used in the TodayPanel */ public void setLinkDay(Date linkDay) { this.linkDate = linkDay; Format[] formats = getLinkFormat().getFormatsByArgumentIndex(); for (Format format : formats) { if (format instanceof DateFormat) { ((DateFormat) format).setTimeZone(getTimeZone()); } } setLinkPanel(new TodayPanel()); }
/** * Sets the date shown in the TodayPanel. * * PENDING JW ... quick api hack for testing. Don't recreate the panel if * it had been used * * @param linkDay the date used in the TodayPanel */ public void setLinkDay(Date linkDay) { this.linkDate = linkDay; Format[] formats = getLinkFormat().getFormatsByArgumentIndex(); for (Format format : formats) { if (format instanceof DateFormat) { ((DateFormat) format).setTimeZone(getTimeZone()); } } setLinkPanel(new TodayPanel()); }
/** * Sets the date shown in the TodayPanel. * * PENDING JW ... quick api hack for testing. Don't recreate the panel if * it had been used * * @param linkDay the date used in the TodayPanel */ public void setLinkDay(Date linkDay) { this.linkDate = linkDay; Format[] formats = getLinkFormat().getFormatsByArgumentIndex(); for (Format format : formats) { if (format instanceof DateFormat) { ((DateFormat) format).setTimeZone(getTimeZone()); } } setLinkPanel(new TodayPanel()); }
/** * Sets the date shown in the TodayPanel. * * PENDING JW ... quick api hack for testing. Don't recreate the panel if * it had been used * * @param linkDay the date used in the TodayPanel */ public void setLinkDay(Date linkDay) { this.linkDate = linkDay; Format[] formats = getLinkFormat().getFormatsByArgumentIndex(); for (Format format : formats) { if (format instanceof DateFormat) { ((DateFormat) format).setTimeZone(getTimeZone()); } } setLinkPanel(new TodayPanel()); }
/** * Sets the date shown in the TodayPanel. * * PENDING JW ... quick api hack for testing. Don't recreate the panel if * it had been used * * @param linkDay the date used in the TodayPanel */ public void setLinkDay(Date linkDay) { this.linkDate = linkDay; Format[] formats = getLinkFormat().getFormatsByArgumentIndex(); for (Format format : formats) { if (format instanceof DateFormat) { ((DateFormat) format).setTimeZone(getTimeZone()); } } setLinkPanel(new TodayPanel()); }
updateFormatsFromTimeZone(datePicker.getTimeZone());
updateFormatsFromTimeZone(datePicker.getTimeZone());
updateFormatsFromTimeZone(datePicker.getTimeZone());
updateFormatsFromTimeZone(datePicker.getTimeZone());
updateFormatsFromTimeZone(datePicker.getTimeZone());
/** * Set the component to use the specified JXMonthView. If the new JXMonthView * is configured to a different time zone it will affect the time zone of this * component. * * @param monthView month view comopnent. * @throws NullPointerException if view component is null * * @see #setTimeZone * @see #getTimeZone */ public void setMonthView(JXMonthView monthView) { Contract.asNotNull(monthView, "monthView must not be null"); JXMonthView oldMonthView = getMonthView(); TimeZone oldTZ = getTimeZone(); oldMonthView.removePropertyChangeListener(getMonthViewListener()); _monthView = monthView; getMonthView().addPropertyChangeListener(getMonthViewListener()); firePropertyChange(MONTH_VIEW, oldMonthView, getMonthView()); firePropertyChange("timeZone", oldTZ, getTimeZone()); }
/** * Set the component to use the specified JXMonthView. If the new JXMonthView * is configured to a different time zone it will affect the time zone of this * component. * * @param monthView month view comopnent. * @throws NullPointerException if view component is null * * @see #setTimeZone * @see #getTimeZone */ public void setMonthView(JXMonthView monthView) { Contract.asNotNull(monthView, "monthView must not be null"); JXMonthView oldMonthView = getMonthView(); TimeZone oldTZ = getTimeZone(); oldMonthView.removePropertyChangeListener(getMonthViewListener()); _monthView = monthView; getMonthView().addPropertyChangeListener(getMonthViewListener()); firePropertyChange(MONTH_VIEW, oldMonthView, getMonthView()); firePropertyChange("timeZone", oldTZ, getTimeZone()); }
/** * Set the component to use the specified JXMonthView. If the new JXMonthView * is configured to a different time zone it will affect the time zone of this * component. * * @param monthView month view comopnent. * @throws NullPointerException if view component is null * * @see #setTimeZone * @see #getTimeZone */ public void setMonthView(JXMonthView monthView) { Contract.asNotNull(monthView, "monthView must not be null"); JXMonthView oldMonthView = getMonthView(); TimeZone oldTZ = getTimeZone(); oldMonthView.removePropertyChangeListener(getMonthViewListener()); _monthView = monthView; getMonthView().addPropertyChangeListener(getMonthViewListener()); firePropertyChange(MONTH_VIEW, oldMonthView, getMonthView()); firePropertyChange("timeZone", oldTZ, getTimeZone()); }
/** * Set the component to use the specified JXMonthView. If the new JXMonthView * is configured to a different time zone it will affect the time zone of this * component. * * @param monthView month view comopnent. * @throws NullPointerException if view component is null * * @see #setTimeZone * @see #getTimeZone */ public void setMonthView(JXMonthView monthView) { Contract.asNotNull(monthView, "monthView must not be null"); JXMonthView oldMonthView = getMonthView(); TimeZone oldTZ = getTimeZone(); oldMonthView.removePropertyChangeListener(getMonthViewListener()); _monthView = monthView; getMonthView().addPropertyChangeListener(getMonthViewListener()); firePropertyChange(MONTH_VIEW, oldMonthView, getMonthView()); firePropertyChange("timeZone", oldTZ, getTimeZone()); }
/** * Set the component to use the specified JXMonthView. If the new JXMonthView * is configured to a different time zone it will affect the time zone of this * component. * * @param monthView month view comopnent. * @throws NullPointerException if view component is null * * @see #setTimeZone * @see #getTimeZone */ public void setMonthView(JXMonthView monthView) { Contract.asNotNull(monthView, "monthView must not be null"); JXMonthView oldMonthView = getMonthView(); TimeZone oldTZ = getTimeZone(); oldMonthView.removePropertyChangeListener(getMonthViewListener()); _monthView = monthView; getMonthView().addPropertyChangeListener(getMonthViewListener()); firePropertyChange(MONTH_VIEW, oldMonthView, getMonthView()); firePropertyChange("timeZone", oldTZ, getTimeZone()); }