/** * Set the panel that will be used at the bottom of the popup. * PENDING JW: why insist on JPanel? JComponent would be enough? * * @param linkPanel The new panel to install in the popup */ public void setLinkPanel(JPanel linkPanel) { JPanel oldLinkPanel = _linkPanel; _linkPanel = linkPanel; firePropertyChange(LINK_PANEL, oldLinkPanel, _linkPanel); }
/** * Set the panel that will be used at the bottom of the popup. * PENDING JW: why insist on JPanel? JComponent would be enough? * * @param linkPanel The new panel to install in the popup */ public void setLinkPanel(JPanel linkPanel) { JPanel oldLinkPanel = _linkPanel; _linkPanel = linkPanel; firePropertyChange(LINK_PANEL, oldLinkPanel, _linkPanel); }
/** * Set the panel that will be used at the bottom of the popup. * PENDING JW: why insist on JPanel? JComponent would be enough? * * @param linkPanel The new panel to install in the popup */ public void setLinkPanel(JPanel linkPanel) { JPanel oldLinkPanel = _linkPanel; _linkPanel = linkPanel; firePropertyChange(LINK_PANEL, oldLinkPanel, _linkPanel); }
/** * Set the panel that will be used at the bottom of the popup. * PENDING JW: why insist on JPanel? JComponent would be enough? * * @param linkPanel The new panel to install in the popup */ public void setLinkPanel(JPanel linkPanel) { JPanel oldLinkPanel = _linkPanel; _linkPanel = linkPanel; firePropertyChange(LINK_PANEL, oldLinkPanel, _linkPanel); }
/** * Set the panel that will be used at the bottom of the popup. * PENDING JW: why insist on JPanel? JComponent would be enough? * * @param linkPanel The new panel to install in the popup */ public void setLinkPanel(JPanel linkPanel) { JPanel oldLinkPanel = _linkPanel; _linkPanel = linkPanel; firePropertyChange(LINK_PANEL, oldLinkPanel, _linkPanel); }
/** * Callback from monthView timezone changes. <p> * * NOTE: as timeZone is a bound property of this class we need to * guarantee the propertyChangeNotification. As this class doesn't * own this property it must listen to the owner (monthView) and * re-fire the change. * * @param oldValue the old timezone. * @param newValue the new timezone. */ protected void updateTimeZone(TimeZone oldValue, TimeZone newValue) { firePropertyChange("timeZone", oldValue, newValue); }
/** * Callback from monthView timezone changes. <p> * * NOTE: as timeZone is a bound property of this class we need to * guarantee the propertyChangeNotification. As this class doesn't * own this property it must listen to the owner (monthView) and * re-fire the change. * * @param oldValue the old timezone. * @param newValue the new timezone. */ protected void updateTimeZone(TimeZone oldValue, TimeZone newValue) { firePropertyChange("timeZone", oldValue, newValue); }
@Override public void firePropertyChange(String propertyName, Object oldValue, Object newValue) { super.firePropertyChange(propertyName, oldValue, newValue); }
/** * Callback from monthView timezone changes. <p> * * NOTE: as timeZone is a bound property of this class we need to * guarantee the propertyChangeNotification. As this class doesn't * own this property it must listen to the owner (monthView) and * re-fire the change. * * @param oldValue the old timezone. * @param newValue the new timezone. */ protected void updateTimeZone(TimeZone oldValue, TimeZone newValue) { firePropertyChange("timeZone", oldValue, newValue); }
/** * Callback from monthView timezone changes. <p> * * NOTE: as timeZone is a bound property of this class we need to * guarantee the propertyChangeNotification. As this class doesn't * own this property it must listen to the owner (monthView) and * re-fire the change. * * @param oldValue the old timezone. * @param newValue the new timezone. */ protected void updateTimeZone(TimeZone oldValue, TimeZone newValue) { firePropertyChange("timeZone", oldValue, newValue); }
/** * Callback from monthView timezone changes. <p> * * NOTE: as timeZone is a bound property of this class we need to * guarantee the propertyChangeNotification. As this class doesn't * own this property it must listen to the owner (monthView) and * re-fire the change. * * @param oldValue the old timezone. * @param newValue the new timezone. */ protected void updateTimeZone(TimeZone oldValue, TimeZone newValue) { firePropertyChange("timeZone", oldValue, newValue); }
/** * Sets the editable property. If false, ...? * * The default value is true. * * @param value * @see #isEditable() */ public void setEditable(boolean value) { boolean oldEditable = isEditable(); editable = value; firePropertyChange("editable", oldEditable, editable); if (editable != oldEditable) { repaint(); } }
/** * Sets the editable property. If false, ...? * * The default value is true. * * @param value * @see #isEditable() */ public void setEditable(boolean value) { boolean oldEditable = isEditable(); editable = value; firePropertyChange("editable", oldEditable, editable); if (editable != oldEditable) { repaint(); } }
/** * Sets the editable property. If false, ...? * * The default value is true. * * @param value * @see #isEditable() */ public void setEditable(boolean value) { boolean oldEditable = isEditable(); editable = value; firePropertyChange("editable", oldEditable, editable); if (editable != oldEditable) { repaint(); } }
/** * Sets the editable property. If false, ...? * * The default value is true. * * @param value * @see #isEditable() */ public void setEditable(boolean value) { boolean oldEditable = isEditable(); editable = value; firePropertyChange("editable", oldEditable, editable); if (editable != oldEditable) { repaint(); } }
/** * Sets the editable property. If false, ...? * * The default value is true. * * @param value * @see #isEditable() */ public void setEditable(boolean value) { boolean oldEditable = isEditable(); editable = value; firePropertyChange("editable", oldEditable, editable); if (editable != oldEditable) { repaint(); } }
/** * 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()); }
/** * 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()); }