@Test public void testZoomableKeepsMonthStringBackground() { JXMonthView monthView = new JXMonthView(); monthView.setZoomable(true); assertEquals(monthView.getMonthStringBackground(), ((BasicMonthViewUI) monthView.getUI()).getCalendarHeaderHandler().getHeaderComponent().getBackground()); SwingUtilities.updateComponentTreeUI(monthView); assertEquals(monthView.getMonthStringBackground(), ((BasicMonthViewUI) monthView.getUI()).getCalendarHeaderHandler().getHeaderComponent().getBackground()); }
protected CalendarHeaderHandler getCalendarHeaderHandler() { return calendarHeaderHandler; }
BasicMonthViewUI extends MonthViewUI { protected CalendarHeaderHandler getCalendarHeaderHandler() { return calendarHeaderHandler; } }
BasicMonthViewUI extends MonthViewUI { protected CalendarHeaderHandler getCalendarHeaderHandler() { return calendarHeaderHandler; }  }
BasicMonthViewUI extends MonthViewUI { protected CalendarHeaderHandler getCalendarHeaderHandler() { return calendarHeaderHandler; }  @SuppressWarnings({ "UnusedDeclaration" }) static ComponentUI createUI(JComponent c); @Override void installUI(JComponent c); @Override void uninstallUI(JComponent c); @Override String[] getDaysOfTheWeek(); boolean isUsingKeyboard(); void setUsingKeyboard(boolean val); @Override Date getDayAtLocation(int x, int y); boolean isWeekOfYearCell(int x, int y); @Override void update(Graphics g, JComponent c); @Override void paint(Graphics g, JComponent c); @Override Date getLastDisplayedDay(); }
BasicMonthViewUI extends MonthViewUI { protected CalendarHeaderHandler getCalendarHeaderHandler() { return calendarHeaderHandler; }  @SuppressWarnings({ "UnusedDeclaration" }) static ComponentUI createUI(JComponent c); @Override void installUI(JComponent c); @Override void uninstallUI(JComponent c); @Override String[] getDaysOfTheWeek(); boolean isUsingKeyboard(); void setUsingKeyboard(boolean val); @Override Date getDayAtLocation(int x, int y); boolean isWeekOfYearCell(int x, int y); @Override void update(Graphics g, JComponent c); @Override void paint(Graphics g, JComponent c); @Override Date getLastDisplayedDay(); static final int MONTH_DOWN; static final int MONTH_UP; }