@Override public void valueChanged(DateSelectionEvent ev) { monthView.repaint(); }
@Override public void valueChanged(DateSelectionEvent ev) { monthView.repaint(); }
@Override public void valueChanged(DateSelectionEvent ev) { monthView.repaint(); }
/** * * @param locale */ private void superSetLocale(Locale locale) { // PENDING JW: formally, a null value is allowed and must be passed on to super // I suspect this is not done here to keep the logic out off the constructor? // if (locale != null) { super.setLocale(locale); repaint(); } }
/** * * @param locale */ private void superSetLocale(Locale locale) { // PENDING JW: formally, a null value is allowed and must be passed on to super // I suspect this is not done here to keep the logic out off the constructor? // if (locale != null) { super.setLocale(locale); repaint(); } }
public void run() { if (monthView != SubstanceMonthViewUI.this.monthView) { // may happen if the LAF was switched in the meantime return; } Calendar cal = monthView.getCalendar(); cal.set(Calendar.DAY_OF_MONTH, dayIndex); cal.set(Calendar.MONTH, monthIndex); cal.set(Calendar.YEAR, yearIndex); Rectangle dayBounds = getDayBounds(cal.getTime()); if (dayBounds != null) { DayRepaintCallback.this.monthView.repaint(dayBounds); } } });
/** * Sets the color used to draw the foreground of the month string. The * default is <code>Color.WHITE</code>. * * @param c color to set */ public void setMonthStringForeground(Color c) { Color old = getMonthStringForeground(); monthStringForeground = c; firePropertyChange("monthStringForeground", old, getMonthStringForeground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the background of the month string. The * default is <code>138, 173, 209 (Blue-ish)</code>. * * @param c color to set */ public void setMonthStringBackground(Color c) { Color old = getMonthStringBackground(); monthStringBackground = c; firePropertyChange("monthStringBackground", old, getMonthStringBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the bounding box around today. The default * is the background of the <code>JXMonthView</code> component. * * @param c color to set */ public void setTodayBackground(Color c) { Color oldValue = getTodayBackground(); todayBackgroundColor = c; firePropertyChange("todayBackground", oldValue, getTodayBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the bounding box around today. The default * is the background of the <code>JXMonthView</code> component. * * @param c color to set */ public void setTodayBackground(Color c) { Color oldValue = getTodayBackground(); todayBackgroundColor = c; firePropertyChange("todayBackground", oldValue, getTodayBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the bounding box around today. The default * is the background of the <code>JXMonthView</code> component. * * @param c color to set */ public void setTodayBackground(Color c) { Color oldValue = getTodayBackground(); todayBackgroundColor = c; firePropertyChange("todayBackground", oldValue, getTodayBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the background of the month string. The * default is <code>138, 173, 209 (Blue-ish)</code>. * * @param c color to set */ public void setMonthStringBackground(Color c) { Color old = getMonthStringBackground(); monthStringBackground = c; firePropertyChange("monthStringBackground", old, getMonthStringBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the bounding box around today. The default * is the background of the <code>JXMonthView</code> component. * * @param c color to set */ public void setTodayBackground(Color c) { Color oldValue = getTodayBackground(); todayBackgroundColor = c; firePropertyChange("todayBackground", oldValue, getTodayBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the background of the month string. The * default is <code>138, 173, 209 (Blue-ish)</code>. * * @param c color to set */ public void setMonthStringBackground(Color c) { Color old = getMonthStringBackground(); monthStringBackground = c; firePropertyChange("monthStringBackground", old, getMonthStringBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the foreground of the month string. The * default is <code>Color.WHITE</code>. * * @param c color to set */ public void setMonthStringForeground(Color c) { Color old = getMonthStringForeground(); monthStringForeground = c; firePropertyChange("monthStringForeground", old, getMonthStringForeground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the bounding box around today. The default * is the background of the <code>JXMonthView</code> component. * * @param c color to set */ public void setTodayBackground(Color c) { Color oldValue = getTodayBackground(); todayBackgroundColor = c; firePropertyChange("todayBackground", oldValue, getTodayBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the background of the month string. The * default is <code>138, 173, 209 (Blue-ish)</code>. * * @param c color to set */ public void setMonthStringBackground(Color c) { Color old = getMonthStringBackground(); monthStringBackground = c; firePropertyChange("monthStringBackground", old, getMonthStringBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the foreground of the month string. The * default is <code>Color.WHITE</code>. * * @param c color to set */ public void setMonthStringForeground(Color c) { Color old = getMonthStringForeground(); monthStringForeground = c; firePropertyChange("monthStringForeground", old, getMonthStringForeground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Sets the color used to draw the background of the month string. The * default is <code>138, 173, 209 (Blue-ish)</code>. * * @param c color to set */ public void setMonthStringBackground(Color c) { Color old = getMonthStringBackground(); monthStringBackground = c; firePropertyChange("monthStringBackground", old, getMonthStringBackground()); // PENDING JW: remove repaint, ui must take care of it repaint(); }
/** * Updates state after the monthView's zoomable property has been changed. * This implementation adds/removes the header component if zoomable is true/false * respectively. */ protected void updateZoomable() { if (monthView.isZoomable()) { monthView.add(getCalendarHeaderHandler().getHeaderComponent()); } else { monthView.remove(getCalendarHeaderHandler().getHeaderComponent()); } monthView.revalidate(); monthView.repaint(); }