mseries.Calendar
Class MDefaultPullDownConstraints
java.lang.Object
mseries.Calendar.MDefaultPullDownConstraints
- All Implemented Interfaces:
- MDateSelectorConstraints
public class MDefaultPullDownConstraints
- extends Object
- implements MDateSelectorConstraints
The defualt implementation of MDateSelectorConstraints
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bundleName
public String bundleName
rb
public ResourceBundle rb
firstDay
public int firstDay
imageFile
public String imageFile
foreground
public Color foreground
outOfRangeForeground
public Color outOfRangeForeground
outOfRangeBackground
public Color outOfRangeBackground
todayForeground
public Color todayForeground
todayBackground
public Color todayBackground
background
public Color background
font
public Font font
foregrounds
public Color[] foregrounds
backgrounds
public Color[] backgrounds
changerStyle
public int changerStyle
cellSize
public Dimension cellSize
hasShadow
public boolean hasShadow
selectionClickCount
public int selectionClickCount
selectionEventsEnabled
public boolean selectionEventsEnabled
specialDayModel
public SpecialDayModel specialDayModel
popupTitle
public String popupTitle
changerEditable
public boolean changerEditable
MDefaultPullDownConstraints
public MDefaultPullDownConstraints()
getPopupTitle
public String getPopupTitle()
- Specified by:
getPopupTitle in interface MDateSelectorConstraints
- Returns:
- the title for the popup window
getResourceBundle
public ResourceBundle getResourceBundle()
- Specified by:
getResourceBundle in interface MDateSelectorConstraints
- Returns:
- the resource bundle for the localisation
getFirstDay
public int getFirstDay()
- Specified by:
getFirstDay in interface MDateSelectorConstraints
- Returns:
- the index of the day that should be displayed first, use DAY constants
from java.util.Calendar
- See Also:
Calendar
getImageFile
public String getImageFile()
- Specified by:
getImageFile in interface MDateSelectorConstraints
- Returns:
- the full path name of the image file for the background
getForeground
public Color getForeground()
- Specified by:
getForeground in interface MDateSelectorConstraints
- Returns:
- the default foreground
getTodayForeground
public Color getTodayForeground()
- Specified by:
getTodayForeground in interface MDateSelectorConstraints
- Returns:
- the current date foreground
getTodayBackground
public Color getTodayBackground()
- Specified by:
getTodayBackground in interface MDateSelectorConstraints
- Returns:
- the current date background
getBackground
public Color getBackground()
- Specified by:
getBackground in interface MDateSelectorConstraints
- Returns:
- the default background
getFont
public Font getFont()
- Specified by:
getFont in interface MDateSelectorConstraints
getForegrounds
public Color[] getForegrounds()
- Specified by:
getForegrounds in interface MDateSelectorConstraints
- Returns:
- an array of colors, each not null value is the colour for the
foreground for the day of the week represented by the index.
0 is Sunday, 6 is Saturday. Null entries will inherit the
foreground given by getForeground()
getBackgrounds
public Color[] getBackgrounds()
- Specified by:
getBackgrounds in interface MDateSelectorConstraints
- Returns:
- an array of colors, each not null value is the colour for the
background for the day of the week represented by the index.
0 is Sunday, 6 is Saturday. Null entries will inherit the
background given by getBackground()
getChangerStyle
public int getChangerStyle()
- Specified by:
getChangerStyle in interface MDateSelectorConstraints
- Returns:
- the style of changer given by MDateChanger
getCellSize
public Dimension getCellSize()
- Specified by:
getCellSize in interface MDateSelectorConstraints
hasShadow
public boolean hasShadow()
- Specified by:
hasShadow in interface MDateSelectorConstraints
- Returns:
- true if the lightweight popup is to have a shadow. Heavyweights
never have shadows. Heavyweights over lap their parents boundaries.
getSelectionClickCount
public int getSelectionClickCount()
- Specified by:
getSelectionClickCount in interface MDateSelectorConstraints
- Returns:
- the number of mouse clicks required to select a date in the
calendar
isSelectionEventsEnabled
public boolean isSelectionEventsEnabled()
- Specified by:
isSelectionEventsEnabled in interface MDateSelectorConstraints
- Returns:
- true if the selection in the calendar causes events to be fired.
Usually the date is echoed by catching the events, so the date in the
textfield changes as the user moves through the calendar using the TAB
and arrow keys. Switching the events off causes the textfield to remain
unchanged until (perhaps) the clanedar is dismissed. A value of false
makes the ESCAPE and RETURN/ENTER keys more effective for the pull
down calendar. In this mode, ESC will cause the value in the date field
to remain unchanged regardless of the setting in the calendar.
RETURN/ENTER selects the value.
getSpecialDayModel
public SpecialDayModel getSpecialDayModel()
- Specified by:
getSpecialDayModel in interface MDateSelectorConstraints
- Returns:
- a model that can supply the colours representing Special Days
getOutOfRangeForeground
public Color getOutOfRangeForeground()
- Specified by:
getOutOfRangeForeground in interface MDateSelectorConstraints
- Returns:
- the foreground color for out of range cells
getOutOfRangeBackground
public Color getOutOfRangeBackground()
- Specified by:
getOutOfRangeBackground in interface MDateSelectorConstraints
- Returns:
- the background color for out of range cells
isChangerEditable
public boolean isChangerEditable()
- Specified by:
isChangerEditable in interface MDateSelectorConstraints
- Returns:
- true if the changer can be edited by the keyboard (if appropriate).
For now, only the Spinner can be edited.
Copyright © 2001-2007 M Newstead. All Rights Reserved.