|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jp.comp.calendar.CalendarAdapter com.jp.comp.calendar.CalendarPanel
CalendarPanel
represents a simple month calendar with navigation by keyboard and mouse.
By default this calendar uses DefaultCalendarDayRenderer
as a CalendarDayRenderer
and MonthCalendarController
as a CalendarController
Nested Class Summary | |
protected class |
CalendarPanel.CalendarHeaderBorder
Calendar's header border |
protected class |
CalendarPanel.CalendarTableCellRenderer
Calendar's table cell renderer. |
protected class |
CalendarPanel.CalendarTableHeaderCellRenderer
Calendar's table header cell renderer |
protected static class |
CalendarPanel.CalendarTableUI
|
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
static java.awt.Color |
DEFAULT_OFFMONTH_WEEKDAY_FOREGROUND
Default weekday foreground color |
static java.awt.Color |
DEFAULT_OFFMONTH_WEEKEND_FOREGROUND
Default off-month weekend foreground color |
static java.awt.Color |
DEFAULT_WEEKEND_FOREGROUND
Default weekend foreground color |
protected static javax.swing.border.EmptyBorder |
EMPTY_BORDER
|
protected CalendarController |
fCalendarController
|
protected CalendarDayRenderer |
fCalendarDayRenderer
|
protected java.awt.Color |
fHeaderForeground
|
protected boolean |
fMouseHolding
|
protected java.awt.Color |
fOffMonthWeekdayBackground
|
protected java.awt.Color |
fOffMonthWeekdayForeground
|
protected java.awt.Color |
fOffMonthWeekendBackground
|
protected java.awt.Color |
fOffMonthWeekendForeground
|
protected boolean |
fPreserveCurrentDate
|
protected boolean |
fSelectionChanged
|
protected CalendarTableModel |
fTableModel
|
protected java.awt.Color |
fWeekendBackground
|
protected java.awt.Color |
fWeekendForeground
|
protected javax.swing.JPanel |
pnlCalendar
|
static java.lang.String |
PROPERTY_CALENDAR_CONTROLLER
Property name for the calendarController property |
static java.lang.String |
PROPERTY_CALENDAR_DAY_RENDERER
Property name for the calendarDayRenderer property |
static java.lang.String |
PROPERTY_DATE
Property name for the date property |
static java.lang.String |
PROPERTY_HEADER_FOREGROUND
Property name for the headerForeground property |
static java.lang.String |
PROPERTY_LOCALE
Property name for the locale property |
static java.lang.String |
PROPERTY_OFFMONTH_WEEKDAY_BACKGROUND
Property name for the offMonthWeekdayBackground property |
static java.lang.String |
PROPERTY_OFFMONTH_WEEKDAY_FOREGROUND
Property name for the offMonthWeekdayForeground property |
static java.lang.String |
PROPERTY_OFFMONTH_WEEKEND_BACKGROUND
Property name for the offMonthWeekendBackground property |
static java.lang.String |
PROPERTY_OFFMONTH_WEEKEND_FOREGROUND
Property name for the offMonthWeekendForeground property |
static java.lang.String |
PROPERTY_PRESERVE_CURRENT_DATE
Property name for the preserveCurrentDate property |
static java.lang.String |
PROPERTY_SELECTED_DATE
Property name for the date selectedDate property |
static java.lang.String |
PROPERTY_SHORT_DAY_CAPTION
Property name for the shortDayCaption property |
static java.lang.String |
PROPERTY_SHOW_GRID
Property name for the showGrid property |
static java.lang.String |
PROPERTY_SHOW_HORIZONTAL_LINES
Property name for the showHorizontalLines property |
static java.lang.String |
PROPERTY_SHOW_VERTICAL_LINES
Property name for the showVerticalLines property |
static java.lang.String |
PROPERTY_TODAY_BORDER_COLOR
Property name for the todayBorderColor property |
static java.lang.String |
PROPERTY_TODAY_BORDER_THICKNESS
Property name for the todayBorderThickness property |
static java.lang.String |
PROPERTY_WEEKEND_BACKGROUND
Property name for the weekendBackground property |
static java.lang.String |
PROPERTY_WEEKEND_FOREGROUND
Property name for the weekendForeground property |
protected static int |
TABLE_COLUMN_MARGIN
|
protected javax.swing.JTable |
tblCalendar
|
protected javax.swing.table.JTableHeader |
tblhCalendarHeader
|
static javax.swing.border.LineBorder |
TODAY_BORDER
Today's date border |
Fields inherited from class com.jp.comp.calendar.CalendarAdapter |
fActionListeners, fAllowSelectOffMonthDays, fCalendarDateListeners, fCalendarDayRendererListeners, fCalendarListeners, fLocale, fShowOffMonthDays, fSynchronizeSetDate, PROPERTY_ALLOW_SELECT_OFFMONTH_DAYS, PROPERTY_SHOW_OFFMONTH_DAYS |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CalendarPanel()
Constructs the Calendar with default Locale , CalendarDayRenderer
and CalendarControler |
|
CalendarPanel(java.util.Locale aLocale)
Constructs the Calendar with specified Locale , and default
CalendarDayRenderer and CalendarControler |
|
CalendarPanel(java.util.Locale aLocale,
CalendarDayRenderer aCalendarDayRenderer)
Constructs the Calendar with specified Locale and CalendarDayRenderer ,
and default CalendarControler |
|
CalendarPanel(java.util.Locale aLocale,
CalendarDayRenderer aCalendarDayRenderer,
CalendarController aCalendarControler)
Constructs the Calendar with specified Locale , CalendarDayRenderer
and CalendarControler |
Method Summary | |
protected void |
changeSelection(int aRow,
int aColumn,
int aSelection)
Invoked by the table when selection is changing |
void |
dateChanged(CalendarEvent anEvent)
Catches date is changed event from the table model and forwards it to the method fireDateChanged |
protected void |
dateSelected()
Invoked by the table listeners when Enter is pressed or mouse double click is performed to fire dateSelected event |
void |
dateSelected(CalendarEvent anEvent)
Invoked by the Calendar when date is selected in the Calendar by mouse double click or when Enter is presssed |
java.lang.String |
getAbout()
|
CalendarController |
getCalendarController()
Returns the CalendarController |
CalendarDayRenderer |
getCalendarDayRenderer()
Returns the CalendarDayRenderer |
java.util.Date |
getDate()
Returns selected Date |
int |
getDayOfMonth()
Returns selected day of month |
static CalendarController |
getDefaultCalendarController()
Returns the instance of default CalendarController |
static CalendarDayRenderer |
getDefaultCalendarDayRenderer()
Returns the instance of default CalendarDayRenderer |
java.awt.Color |
getGridColor()
|
java.awt.Color |
getHeaderForeground()
Returns Calendar's header (names of the days of the week) foreground Color |
CalendarItem |
getItem(int aRow,
int aColumn)
Gets the CalendarItem from specified row and column |
java.util.Locale |
getLocale()
Returns Calendar's Locale |
int |
getMonth()
Returns selected month number (0 - 11) |
java.awt.Color |
getOffMonthWeekdayBackground()
Returns off-month weekday background Color |
java.awt.Color |
getOffMonthWeekdayForeground()
Returns off-month weekday foreground Color |
java.awt.Color |
getOffMonthWeekendBackground()
Returns off-month weekend background Color |
java.awt.Color |
getOffMonthWeekendForeground()
Returns off-month weekend foreground Color |
int |
getSelectedColumn()
Gets selected column |
CalendarItem |
getSelectedItem()
Gets selected CalendarItem |
int |
getSelectedRow()
Gets selected row |
javax.swing.JTable |
getTable()
Returns the table that represents the Calendar's data (days and names of weekdays) |
java.awt.Color |
getTodayBorderColor()
Returns Calendar's today's date border Color |
int |
getTodayBorderThickness()
Returns Calendar's today's date border thickness |
java.awt.Color |
getWeekendBackground()
Returns current month's weekend background Color |
java.awt.Color |
getWeekendForeground()
Returns current month's weekend foreground Color |
int |
getYear()
Returns selected year |
boolean |
isEnabled()
Returns whether this component is enabled |
boolean |
isPreserveCurrentDate()
Returns true if the current date should be preserved |
boolean |
isShortDayCaption()
Returns true |
boolean |
isShowGrid()
Returns true |
boolean |
isShowHorizontalLines()
Returns true |
boolean |
isShowVerticalLines()
Returns true |
void |
localeChanged(CalendarInterface aSource,
java.util.Locale aLocale,
java.util.Date aDate)
Catches locale is changed event from the table model and delegates it to the method fireLocaleChanged |
void |
requestFocus()
|
void |
setAbout(java.lang.String aAbout)
|
void |
setCalendarController(CalendarController aCalendarControler)
Sets the CalendarController |
void |
setCalendarDayRenderer(CalendarDayRenderer aCalendarDayRenderer)
Sets the CalendarDayRenderer |
protected void |
setCalendarSize()
Calculates and sets Calendar's size |
void |
setDate(java.util.Date aDate)
Sets a new Date |
void |
setEnabled(boolean aFlag)
Sets this component accessibility. |
void |
setGridColor(java.awt.Color gridColor)
|
void |
setHeaderForeground(java.awt.Color aHeaderForeground)
Sets Calendar's header (names of the days of the week) foreground Color |
void |
setLocale(java.util.Locale aLocale)
Sets a new Calendar's Locale |
void |
setOffMonthWeekdayBackground(java.awt.Color anOffMonthWeekdayBackground)
Sets off-month weekday background Color |
void |
setOffMonthWeekdayForeground(java.awt.Color anOffMonthWeekdayForeground)
Sets off-month weekday foreground Color |
void |
setOffMonthWeekendBackground(java.awt.Color anOffMonthWeekendBackground)
Sets off-month weekend background Color |
void |
setOffMonthWeekendForeground(java.awt.Color anOffMonthWeekendForeground)
Sets off-month weekend foreground Color |
void |
setPreserveCurrentDate(boolean aFlag)
Sets true if the current date should be preserved |
protected void |
setSelection()
Selects current day |
void |
setShortDayCaption(boolean aShortDayCaption)
Sets whether short day caption should be shown |
void |
setShowGrid(boolean aFlag)
Sets whether the Calendar draws grid lines around cells |
void |
setShowHorizontalLines(boolean aFlag)
Sets whether the Calendar draws horizontal lines between days |
void |
setShowVerticalLines(boolean aFlag)
Sets whether the Calendar draws vertical lines between days |
void |
setTodayBorderColor(java.awt.Color aColor)
Sets Calendar's today's date border Color |
void |
setTodayBorderThickness(int aThickness)
Sets Calendar's today's date border thickness |
void |
setWeekendBackground(java.awt.Color aWeekendBackground)
Sets current month's weekend background Color |
void |
setWeekendForeground(java.awt.Color aWeekendForeground)
Sets current month's weekend foreground Color |
void |
updateUI()
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPERTY_CALENDAR_CONTROLLER
public static final java.lang.String PROPERTY_CALENDAR_DAY_RENDERER
public static final java.lang.String PROPERTY_HEADER_FOREGROUND
public static final java.lang.String PROPERTY_LOCALE
public static final java.lang.String PROPERTY_OFFMONTH_WEEKDAY_BACKGROUND
public static final java.lang.String PROPERTY_OFFMONTH_WEEKDAY_FOREGROUND
public static final java.lang.String PROPERTY_OFFMONTH_WEEKEND_BACKGROUND
public static final java.lang.String PROPERTY_OFFMONTH_WEEKEND_FOREGROUND
public static final java.lang.String PROPERTY_PRESERVE_CURRENT_DATE
public static final java.lang.String PROPERTY_SHORT_DAY_CAPTION
public static final java.lang.String PROPERTY_SHOW_GRID
public static final java.lang.String PROPERTY_SHOW_HORIZONTAL_LINES
public static final java.lang.String PROPERTY_SHOW_VERTICAL_LINES
public static final java.lang.String PROPERTY_TODAY_BORDER_COLOR
public static final java.lang.String PROPERTY_TODAY_BORDER_THICKNESS
public static final java.lang.String PROPERTY_WEEKEND_BACKGROUND
public static final java.lang.String PROPERTY_WEEKEND_FOREGROUND
public static final java.lang.String PROPERTY_DATE
public static final java.lang.String PROPERTY_SELECTED_DATE
public static final java.awt.Color DEFAULT_WEEKEND_FOREGROUND
public static final java.awt.Color DEFAULT_OFFMONTH_WEEKDAY_FOREGROUND
public static final java.awt.Color DEFAULT_OFFMONTH_WEEKEND_FOREGROUND
public static javax.swing.border.LineBorder TODAY_BORDER
protected static final int TABLE_COLUMN_MARGIN
protected static final javax.swing.border.EmptyBorder EMPTY_BORDER
protected javax.swing.JPanel pnlCalendar
protected javax.swing.table.JTableHeader tblhCalendarHeader
protected javax.swing.JTable tblCalendar
protected CalendarDayRenderer fCalendarDayRenderer
protected CalendarController fCalendarController
protected CalendarTableModel fTableModel
protected java.awt.Color fHeaderForeground
protected java.awt.Color fWeekendForeground
protected java.awt.Color fWeekendBackground
protected java.awt.Color fOffMonthWeekdayForeground
protected java.awt.Color fOffMonthWeekdayBackground
protected java.awt.Color fOffMonthWeekendForeground
protected java.awt.Color fOffMonthWeekendBackground
protected boolean fPreserveCurrentDate
protected boolean fMouseHolding
protected boolean fSelectionChanged
Constructor Detail |
public CalendarPanel()
Locale
, CalendarDayRenderer
and CalendarControler
public CalendarPanel(java.util.Locale aLocale)
Locale
, and default
CalendarDayRenderer
and CalendarControler
aLocale
- the Locale
public CalendarPanel(java.util.Locale aLocale, CalendarDayRenderer aCalendarDayRenderer)
Locale
and CalendarDayRenderer
,
and default CalendarControler
aLocale
- the Locale
aCalendarDayRenderer
- the CalendarDayRenderer
public CalendarPanel(java.util.Locale aLocale, CalendarDayRenderer aCalendarDayRenderer, CalendarController aCalendarControler)
Locale
, CalendarDayRenderer
and CalendarControler
aLocale
- the Locale
aCalendarDayRenderer
- the CalendarDayRenderer
aCalendarControler
- the CalendarController
Method Detail |
public javax.swing.JTable getTable()
public CalendarItem getItem(int aRow, int aColumn)
CalendarItem
from specified row and column
aRow
- the rowaColumn
- the column
CalendarItem
public CalendarItem getSelectedItem()
CalendarItem
CalendarItem
public int getSelectedColumn()
public int getSelectedRow()
public static CalendarDayRenderer getDefaultCalendarDayRenderer()
CalendarDayRenderer
CalendarDayRenderer
public static CalendarController getDefaultCalendarController()
CalendarController
CalendarController
public CalendarDayRenderer getCalendarDayRenderer()
CalendarDayRenderer
getCalendarDayRenderer
in interface CalendarInterface
CalendarDayRenderer
public void setCalendarDayRenderer(CalendarDayRenderer aCalendarDayRenderer)
CalendarDayRenderer
setCalendarDayRenderer
in interface CalendarInterface
aCalendarDayRenderer
- CalendarDayRenderer
public CalendarController getCalendarController()
CalendarController
getCalendarController
in interface CalendarInterface
CalendarController
public void setCalendarController(CalendarController aCalendarControler)
CalendarController
setCalendarController
in interface CalendarInterface
aCalendarControler
- the CalendarController
CalendarController
public java.util.Date getDate()
Date
getDate
in interface CalendarInterface
Date
public final void setDate(java.util.Date aDate)
Date
setDate
in interface CalendarInterface
aDate
- a new Date
public int getDayOfMonth()
getDayOfMonth
in interface CalendarInterface
public int getMonth()
getMonth
in interface CalendarInterface
public int getYear()
getYear
in interface CalendarInterface
public java.util.Locale getLocale()
Locale
getLocale
in interface CalendarInterface
Locale
public void setLocale(java.util.Locale aLocale)
Locale
setLocale
in interface CalendarInterface
aLocale
- a new Calendar's Locale
public boolean isShortDayCaption()
true if short day caption is shown
- Specified by:
isShortDayCaption
in interface CalendarInterface
- Returns:
true if short day caption is shown- See Also:
CalendarInterface.setShortDayCaption(boolean)
public void setShortDayCaption(boolean aShortDayCaption)
setShortDayCaption
in interface CalendarInterface
aShortDayCaption
- true
if short day caption should be shownpublic boolean isEnabled()
true if enabled
public void setEnabled(boolean aFlag)
aFlag
- true
if this component should be enabled#setMouseWheelNavigationEnabled
public boolean isShowVerticalLines()
true if the Calendar draws vertical lines between days
- Specified by:
isShowVerticalLines
in interface CalendarInterface
- Returns:
true if the table draws vertical lines between days
public void setShowVerticalLines(boolean aFlag)
setShowVerticalLines
in interface CalendarInterface
aFlag
- true if the Calendar view should draw vertical lines- See Also:
CalendarInterface.setShowGrid(boolean)
public boolean isShowHorizontalLines()
true if the Calendar draws horizontal lines between days
- Specified by:
isShowHorizontalLines
in interface CalendarInterface
- Returns:
true if the Calendar draws horizontal lines between days
public void setShowHorizontalLines(boolean aFlag)
setShowHorizontalLines
in interface CalendarInterface
aFlag
- true if the Calendar view should draw horizontal lines- See Also:
CalendarInterface.setShowGrid(boolean)
public boolean isShowGrid()
true if the Calendar draws grid around days
- Specified by:
isShowGrid
in interface CalendarInterface
- Returns:
true if the Calendar draws grid around days
public void setShowGrid(boolean aFlag)
setShowGrid
in interface CalendarInterface
aFlag
- true if the Calendar should draw grid lines- See Also:
CalendarInterface.setShowVerticalLines(boolean)
,
CalendarInterface.setShowHorizontalLines(boolean)
public java.awt.Color getOffMonthWeekdayForeground()
Color
getOffMonthWeekdayForeground
in interface CalendarInterface
Color
public void setOffMonthWeekdayForeground(java.awt.Color anOffMonthWeekdayForeground)
Color
setOffMonthWeekdayForeground
in interface CalendarInterface
anOffMonthWeekdayForeground
- off-month weekday foreground Color
public java.awt.Color getOffMonthWeekdayBackground()
Color
getOffMonthWeekdayBackground
in interface CalendarInterface
Color
public void setOffMonthWeekdayBackground(java.awt.Color anOffMonthWeekdayBackground)
Color
setOffMonthWeekdayBackground
in interface CalendarInterface
anOffMonthWeekdayBackground
- off-month weekday background Color
public java.awt.Color getOffMonthWeekendForeground()
Color
getOffMonthWeekendForeground
in interface CalendarInterface
Color
public void setOffMonthWeekendForeground(java.awt.Color anOffMonthWeekendForeground)
Color
setOffMonthWeekendForeground
in interface CalendarInterface
anOffMonthWeekendForeground
- off-month weekend foreground Color
public java.awt.Color getOffMonthWeekendBackground()
Color
getOffMonthWeekendBackground
in interface CalendarInterface
Color
public void setOffMonthWeekendBackground(java.awt.Color anOffMonthWeekendBackground)
Color
setOffMonthWeekendBackground
in interface CalendarInterface
anOffMonthWeekendBackground
- off-month weekend background Color
public java.awt.Color getWeekendForeground()
Color
getWeekendForeground
in interface CalendarInterface
Color
public void setWeekendForeground(java.awt.Color aWeekendForeground)
Color
setWeekendForeground
in interface CalendarInterface
aWeekendForeground
- current month's weekend foreground Color
public java.awt.Color getWeekendBackground()
Color
getWeekendBackground
in interface CalendarInterface
Color
public void setWeekendBackground(java.awt.Color aWeekendBackground)
Color
setWeekendBackground
in interface CalendarInterface
aWeekendBackground
- current month's weekend background Color
public java.awt.Color getHeaderForeground()
Color
getHeaderForeground
in interface CalendarInterface
Color
public void setHeaderForeground(java.awt.Color aHeaderForeground)
Color
setHeaderForeground
in interface CalendarInterface
aHeaderForeground
- Calendar's header foreground Color
public int getTodayBorderThickness()
getTodayBorderThickness
in interface CalendarInterface
public void setTodayBorderThickness(int aThickness)
setTodayBorderThickness
in interface CalendarInterface
aThickness
- Calendar's today's date border thicknesspublic java.awt.Color getTodayBorderColor()
Color
getTodayBorderColor
in interface CalendarInterface
Color
public void setTodayBorderColor(java.awt.Color aColor)
Color
setTodayBorderColor
in interface CalendarInterface
aColor
- Calendar's today's date border Color
public boolean isPreserveCurrentDate()
true
if the current date should be preserved
isPreserveCurrentDate
in interface CalendarInterface
true
if the current date should be preservedCalendarInterface.setPreserveCurrentDate(boolean)
public void setPreserveCurrentDate(boolean aFlag)
true
if the current date should be preserved
setPreserveCurrentDate
in interface CalendarInterface
aFlag
- true
if the current date should be preserved.protected void setSelection()
public void updateUI()
protected void setCalendarSize()
protected void changeSelection(int aRow, int aColumn, int aSelection)
aRow
- the rowaColumn
- the rowaSelection
- selection keyprotected void dateSelected()
dateSelected
event
public void requestFocus()
public void dateChanged(CalendarEvent anEvent)
fireDateChanged
dateChanged
in interface CalendarListener
anEvent
- the CalendarEvent
public void dateSelected(CalendarEvent anEvent)
CalendarListener
dateSelected
in interface CalendarListener
anEvent
- the CalendarEvent
public void localeChanged(CalendarInterface aSource, java.util.Locale aLocale, java.util.Date aDate)
fireLocaleChanged
localeChanged
in interface CalendarListener
aSource
- the source of the eventaLocale
- the new Locale
aDate
- the current Date
public java.awt.Color getGridColor()
public void setGridColor(java.awt.Color gridColor)
public java.lang.String getAbout()
public void setAbout(java.lang.String aAbout)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |