|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jp.comp.calendar.CalendarAdapter
com.jp.comp.calendar.MultipleMonthCalendarPanel
MultipleMonthCalendarPanel
is similar to MonthCalendarPanel
,
but allows showing as many months as required
Nested Class Summary |
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 | |
protected boolean |
fCalendarAdjusting
|
protected MultipleMonthCalendarController |
fCalendarController
|
protected MultipleMonthCalendarDayRenderer |
fCalendarDayRenderer
|
protected int |
fCalendarsAmount
|
protected SingleCalendarPanel |
fCurrentCalendar
|
protected boolean |
fMonthNavigatorVisible
|
protected int |
fRows
|
protected boolean |
fShowBottomDelimiter
|
protected boolean |
fWeekNavigatorVisible
|
protected boolean |
fYearNavigatorVisible
|
protected java.awt.GridLayout |
gridLayout
|
protected javax.swing.JPanel |
pnlCalendars
|
protected CalendarControlPanel |
pnlControl
|
static java.lang.String |
PROPERTY_CALENDARS_AMOUNT
Property name for the calendarsAmount property |
static java.lang.String |
PROPERTY_FIRST_MONTH
Property name for the firstMonth property |
static java.lang.String |
PROPERTY_ROWS
Property name for the rows property |
static java.lang.String |
PROPERTY_SHOW_BOTTOM_DELIMITER
Property name for the showBottomDelimiter property |
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 | |
MultipleMonthCalendarPanel()
Constructs the Calendar with default Locale |
|
MultipleMonthCalendarPanel(int aCalendarsAmount)
Constructs the Calendar with default Locale and specified Calendars amount |
|
MultipleMonthCalendarPanel(int aCalendarsAmount,
int aRows)
Constructs the Calendar with default Locale and specified Calendars and rows amount |
|
MultipleMonthCalendarPanel(java.util.Locale aLocale)
Constructs the Calendar with specified Locale and fourth Calendars |
|
MultipleMonthCalendarPanel(java.util.Locale aLocale,
int aCalendarsAmount)
Constructs the Calendar with specified Locale and Calendars amount |
|
MultipleMonthCalendarPanel(java.util.Locale aLocale,
int aCalendarsAmount,
int aRows)
Constructs the Calendar with specified Locale and Calendars and rows amount |
Method Summary | |
protected void |
buildCalendarPanel()
Builds the MultipleMonthCalendarPanel using Calendars and rows amount |
void |
dateChanged(CalendarEvent anEvent)
Catches date is changed events from SingleCalendarPanel s and forwards them to the method
fireDateChanged |
protected void |
dateSelected()
Invoked when OK button click is performed to fire dateSelected event |
void |
dateSelected(CalendarEvent anEvent)
Catches date is selected events from SingleCalendarPanel s and forwards them
to the methods fireDateSelected and fireActionPerformed |
protected void |
evaluateParameters()
Evaluates Calendars amount and rows parameters to calculate the columns value and valid ration between Calendars amount, rows and columns |
java.lang.String |
getAbout()
|
CalendarController |
getCalendarController()
Returns the CalendarController |
CalendarDayRenderer |
getCalendarDayRenderer()
Returns the CalendarDayRenderer |
int |
getCalendarsAmount()
Returns Calendars amount |
java.awt.Color |
getCaptionForeground()
Returns caption's foreground Color |
CalendarPanel |
getCurrentCalendar()
Returns selected SingleCalendarPanel |
java.util.Date |
getDate()
Returns selected Date |
int |
getDayOfMonth()
Returns selected day of month |
int |
getFirstMonth()
Returns month number from the first SingleCalendarPanel |
java.awt.Color |
getGridColor()
|
java.awt.Color |
getHeaderForeground()
Returns Calendar's header (names of the days of the week) foreground Color |
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 |
getRows()
Returns rows amount |
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 |
protected boolean |
isCalendarAdjusting()
|
boolean |
isEnabled()
Returns whether this component is enabled |
protected boolean |
isFirstCalendar(CalendarPanel aCalendarPanel)
Checks is aCalendarPanel first in MultipleMonthCalendarPanel |
protected boolean |
isLastCalendar(CalendarPanel aCalendarPanel)
Checks is aCalendarPanel last in MultipleMonthCalendarPanel |
boolean |
isMonthNavigatorVisible()
Returns whether Month Navigation buttons is visible |
boolean |
isOkButtonVisible()
Returns whether OK button is visible |
boolean |
isPreserveCurrentDate()
Returns true if the current date should be preserved |
boolean |
isShortDayCaption()
Returns true |
boolean |
isShowBottomDelimiter()
Gets whether to show bottom delimiter |
boolean |
isShowGrid()
Returns true |
boolean |
isShowHorizontalLines()
Returns true |
boolean |
isShowVerticalLines()
Returns true |
boolean |
isTodayButtonVisible()
Returns whether Today button is visible |
boolean |
isWeekNavigatorVisible()
Returns whether Week Navigation buttons is visible |
boolean |
isYearNavigatorVisible()
Returns whether Week Navigation buttons is visible |
void |
localeChanged(CalendarInterface aSource,
java.util.Locale aLocale,
java.util.Date aDate)
|
void |
onCalendarDayRenderer(CalendarInterface aSource,
java.util.Date aDate,
java.awt.Component aRendererComponent)
Catches on calendar day renderer events from SingleCalendarPanel s and forwards them
to the method fireOnRendererCalendarDay |
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
|
void |
requestFocus()
|
void |
setAbout(java.lang.String aAbout)
|
void |
setAllowSelectOffMonthDays(boolean aFlag)
Sets whether off-month days can be selected |
void |
setBackground(java.awt.Color aBackground)
Sets Calendar's background Color |
void |
setCalendarController(CalendarController aCalendarControler)
Sets the CalendarController |
void |
setCalendarDayRenderer(CalendarDayRenderer aCalendarDayRenderer)
Sets the CalendarDayRenderer |
void |
setCalendarsAmount(int aCalendarsAmount)
Sets theCalendars amount. |
void |
setCaptionForeground(java.awt.Color aCaptionForeground)
Sets caption's foreground Color . |
protected void |
setCurrentCalendar(java.util.Date aDate,
boolean anIgnoreFirstMonth)
Finds and sets current calendar which equals to a new date. |
void |
setDate(java.util.Date aDate)
Sets a new Date |
protected void |
setDate(java.util.Date aDate,
boolean anIgnoreFirstMonth)
Sets a new Date |
void |
setEnabled(boolean aFlag)
Sets this component accessibility |
void |
setFirstMonth(int aMonth)
Sets first SingleCalendarPanel with speciifed month |
void |
setForeground(java.awt.Color aForeground)
Sets Calendar's foreground Color |
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 |
setMonthNavigatorVisible(boolean aFlag)
Sets Month Navigation buttons' visibility |
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 |
setOkButtonVisible(boolean aFlag)
Sets OK button's visibility |
void |
setPreserveCurrentDate(boolean aFlag)
Sets true if the current date should be preserved |
void |
setRows(int aRows)
Sets the rows amount |
void |
setShortDayCaption(boolean aShortDayCaption)
Sets whether short day caption should be shown |
void |
setShowBottomDelimiter(boolean aShowBottomDelimiter)
Sets whether to show bottom delimiter |
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 |
setTodayButtonVisible(boolean aFlag)
Sets Today button's visibility |
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 |
setWeekNavigatorVisible(boolean aFlag)
Sets Week Navigation buttons' visibility |
void |
setYearNavigatorVisible(boolean aFlag)
Sets Week Navigation buttons' visibility |
protected void |
updateCalendars(CalendarPanel aCalendarPanel)
Updates the date of all Calendars starting from aCalendarPanel |
protected void |
updateDelimiter()
Updates delemiter (line) dividing the Calendar from the bottom decoration panel |
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, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, 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 |
Methods inherited from interface com.jp.comp.calendar.CalendarInterface |
getBackground, getForeground |
Field Detail |
public static final java.lang.String PROPERTY_SHOW_BOTTOM_DELIMITER
public static final java.lang.String PROPERTY_CALENDARS_AMOUNT
public static final java.lang.String PROPERTY_ROWS
public static final java.lang.String PROPERTY_FIRST_MONTH
protected java.awt.GridLayout gridLayout
protected javax.swing.JPanel pnlCalendars
protected CalendarControlPanel pnlControl
protected int fCalendarsAmount
protected int fRows
protected SingleCalendarPanel fCurrentCalendar
protected MultipleMonthCalendarController fCalendarController
protected MultipleMonthCalendarDayRenderer fCalendarDayRenderer
protected boolean fCalendarAdjusting
protected boolean fWeekNavigatorVisible
protected boolean fMonthNavigatorVisible
protected boolean fYearNavigatorVisible
protected boolean fShowBottomDelimiter
Constructor Detail |
public MultipleMonthCalendarPanel()
Locale
public MultipleMonthCalendarPanel(java.util.Locale aLocale)
Locale
and fourth Calendars
aLocale
- the Locale
public MultipleMonthCalendarPanel(int aCalendarsAmount)
Locale
and specified Calendars amount
aCalendarsAmount
- the Calendars amountpublic MultipleMonthCalendarPanel(java.util.Locale aLocale, int aCalendarsAmount)
Locale
and Calendars amount
aLocale
- the Locale
aCalendarsAmount
- the Calendars amountpublic MultipleMonthCalendarPanel(int aCalendarsAmount, int aRows)
Locale
and specified Calendars and rows amount
aCalendarsAmount
- the Calendars amountaRows
- the rows amountpublic MultipleMonthCalendarPanel(java.util.Locale aLocale, int aCalendarsAmount, int aRows)
Locale
and Calendars and rows amount
aLocale
- the Locale
aCalendarsAmount
- the Calendars amountaRows
- the rows amountMethod Detail |
protected void updateDelimiter()
public void updateUI()
protected void buildCalendarPanel()
MultipleMonthCalendarPanel
using Calendars and rows amount
protected void evaluateParameters()
protected boolean isFirstCalendar(CalendarPanel aCalendarPanel)
aCalendarPanel
first in MultipleMonthCalendarPanel
aCalendarPanel
- the SimpleCalendarPanel
for checking
true
if firstprotected boolean isLastCalendar(CalendarPanel aCalendarPanel)
aCalendarPanel
last in MultipleMonthCalendarPanel
aCalendarPanel
- the SimpleCalendarPanel
for checking
true
if lastprotected void updateCalendars(CalendarPanel aCalendarPanel)
aCalendarPanel
aCalendarPanel
- the SimpleCalendarPanel
to start updating fromprotected void dateSelected()
dateSelected
event
public void requestFocus()
protected void setCurrentCalendar(java.util.Date aDate, boolean anIgnoreFirstMonth)
aDate
- a new Date
anIgnoreFirstMonth
- if true
set the date to the nearest Calendar,
otherwise change a new date to the date of the nearest Calendarpublic boolean isShowBottomDelimiter()
true
if yespublic void setShowBottomDelimiter(boolean aShowBottomDelimiter)
aShowBottomDelimiter
- true
if yespublic boolean isWeekNavigatorVisible()
true
if visiblepublic void setWeekNavigatorVisible(boolean aFlag)
aFlag
- true
if Week Navigation buttons should be visiblepublic boolean isMonthNavigatorVisible()
true
if visiblepublic void setMonthNavigatorVisible(boolean aFlag)
aFlag
- true
if Month Navigation buttons should be visiblepublic boolean isYearNavigatorVisible()
true
if visiblepublic void setYearNavigatorVisible(boolean aFlag)
aFlag
- true
if Week Navigation buttons should be visiblepublic int getCalendarsAmount()
public void setCalendarsAmount(int aCalendarsAmount)
getRows()
aCalendarsAmount
- the Calendars amountgetRows()
,
setRows(int)
public int getRows()
public void setRows(int aRows)
aRows
- the rows amountpublic int getFirstMonth()
SingleCalendarPanel
SingleCalendarPanel
public void setFirstMonth(int aMonth)
SingleCalendarPanel
with speciifed month
aMonth
- the month numberpublic CalendarPanel getCurrentCalendar()
SingleCalendarPanel
SingleCalendarPanel
public java.util.Date getDate()
Date
getDate
in interface CalendarInterface
Date
protected final void setDate(java.util.Date aDate, boolean anIgnoreFirstMonth)
Date
aDate
- a new Date
anIgnoreFirstMonth
- if true
set the date to the nearest Calendar,
otherwise change a new date to the date of the nearest Calendarpublic 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 boolean isOkButtonVisible()
true
if visiblepublic void setOkButtonVisible(boolean aFlag)
aFlag
- true
if OK button should be visiblepublic boolean isTodayButtonVisible()
true
if visiblepublic void setTodayButtonVisible(boolean aFlag)
aFlag
- true
if OK button should be visiblepublic 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 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 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.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 isEnabled()
true if enabled
public void setEnabled(boolean aFlag)
aFlag
- true
if this component should be enabledpublic 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 java.awt.Color getCaptionForeground()
Color
Color
public void setCaptionForeground(java.awt.Color aCaptionForeground)
Color
. Caption shows current month and year
aCaptionForeground
- caption's foreground Color
public void setBackground(java.awt.Color aBackground)
Color
setBackground
in interface CalendarInterface
aBackground
- background Color
public void setForeground(java.awt.Color aForeground)
Color
setForeground
in interface CalendarInterface
aForeground
- 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.public void setAllowSelectOffMonthDays(boolean aFlag)
setAllowSelectOffMonthDays
in interface CalendarInterface
setAllowSelectOffMonthDays
in class CalendarAdapter
aFlag
- true
if off-month days can be selectedpublic java.lang.String getAbout()
public void setAbout(java.lang.String aAbout)
protected boolean isCalendarAdjusting()
public void dateChanged(CalendarEvent anEvent)
SingleCalendarPanel
s and forwards them to the method
fireDateChanged
anEvent
- the CalendarEvent
public void dateSelected(CalendarEvent anEvent)
SingleCalendarPanel
s and forwards them
to the methods fireDateSelected
and fireActionPerformed
anEvent
- the CalendarEvent
public void localeChanged(CalendarInterface aSource, java.util.Locale aLocale, java.util.Date aDate)
public void onCalendarDayRenderer(CalendarInterface aSource, java.util.Date aDate, java.awt.Component aRendererComponent)
SingleCalendarPanel
s and forwards them
to the method fireOnRendererCalendarDay
onCalendarDayRenderer
in interface CalendarDayRendererListener
aSource
- the sourceaDate
- current Date
aRendererComponent
- day renderer Component
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
public java.awt.Color getGridColor()
public void setGridColor(java.awt.Color gridColor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |