mseries.plaf.Windows
Class WindowsCalendarPanelUI
java.lang.Object
javax.swing.plaf.ComponentUI
mseries.plaf.basic.BasicCalendarPanelUI
mseries.plaf.Windows.WindowsCalendarPanelUI
public class WindowsCalendarPanelUI
- extends BasicCalendarPanelUI
The Windows Look and Feel UIDelagate for CalendarPanel
A Look and Feel delegate for the CalenderPanel. This version renders the
selected date with a raised border and dashed focus indicator. TAB moves
around the calendar, Shift-Tab jumps out to the next component. The arrow
keys move around the panel stopping (i.e. not rolling over) at the ends.
| Fields inherited from class mseries.plaf.basic.BasicCalendarPanelUI |
background, calendarPanel, cellHeight, cellWidth, DAYS, focusHandler, font, foreground, keyHandler, mouseHandler, selectedBackground, selectedForeground, WEEKS |
|
Method Summary |
static ComponentUI |
createUI(JComponent x)
This method is called by the UIManager to get an instance of
this class and must be overridden in subclasses. |
static void |
drawDashedRect(Graphics g,
int x,
int y,
int width,
int height)
Draws a dashed rectangle in the selected date. |
protected void |
drawFocusedEffect(Graphics g,
boolean focused,
boolean selected)
Draws the dashed rectangle around the number in the cell which is selected
when the calendar panel has focus. |
protected void |
drawSelectedEffect(Graphics g,
boolean selected)
|
| Methods inherited from class mseries.plaf.basic.BasicCalendarPanelUI |
createFocusHandler, createKeyHandler, createMouseHandler, drawLegend, getCellSize, installDefaults, installListeners, installUI, isOpaque, moveToNextCell, paint, uninstallDefaults, uninstallListeners, uninstallUI, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowsCalendarPanelUI
public WindowsCalendarPanelUI()
createUI
public static ComponentUI createUI(JComponent x)
- This method is called by the UIManager to get an instance of
this class and must be overridden in subclasses.
drawSelectedEffect
protected void drawSelectedEffect(Graphics g,
boolean selected)
- Overrides:
drawSelectedEffect in class BasicCalendarPanelUI
drawFocusedEffect
protected void drawFocusedEffect(Graphics g,
boolean focused,
boolean selected)
- Draws the dashed rectangle around the number in the cell which is selected
when the calendar panel has focus. Over ride this method in a subclass
to change the appearance.
- Overrides:
drawFocusedEffect in class BasicCalendarPanelUI
- See Also:
drawDashedRect(java.awt.Graphics, int, int, int, int)
drawDashedRect
public static void drawDashedRect(Graphics g,
int x,
int y,
int width,
int height)
- Draws a dashed rectangle in the selected date.
Copyright © 2001-2007 M Newstead. All Rights Reserved.