|
|||||||||
| 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 SingleCalendarPanels 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 SingleCalendarPanels 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 SingleCalendarPanels 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 Localepublic MultipleMonthCalendarPanel(int aCalendarsAmount)
Locale and specified Calendars amount
aCalendarsAmount - the Calendars amount
public MultipleMonthCalendarPanel(java.util.Locale aLocale,
int aCalendarsAmount)
Locale and Calendars amount
aLocale - the LocaleaCalendarsAmount - the Calendars amount
public MultipleMonthCalendarPanel(int aCalendarsAmount,
int aRows)
Locale and specified Calendars and rows amount
aCalendarsAmount - the Calendars amountaRows - the rows amount
public MultipleMonthCalendarPanel(java.util.Locale aLocale,
int aCalendarsAmount,
int aRows)
Locale and Calendars and rows amount
aLocale - the LocaleaCalendarsAmount - the Calendars amountaRows - the rows amount| Method 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 DateanIgnoreFirstMonth - 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
SingleCalendarPanelpublic void setFirstMonth(int aMonth)
SingleCalendarPanel with speciifed month
aMonth - the month numberpublic CalendarPanel getCurrentCalendar()
SingleCalendarPanel
SingleCalendarPanelpublic java.util.Date getDate()
Date
getDate in interface CalendarInterfaceDate
protected final void setDate(java.util.Date aDate,
boolean anIgnoreFirstMonth)
Date
aDate - a new DateanIgnoreFirstMonth - 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 CalendarInterfaceaDate - a new Datepublic int getDayOfMonth()
getDayOfMonth in interface CalendarInterfacepublic int getMonth()
getMonth in interface CalendarInterfacepublic int getYear()
getYear in interface CalendarInterfacepublic 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 CalendarInterfaceaFlag - 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 CalendarInterfaceaFlag - 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 CalendarInterfaceaFlag - 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 CalendarInterfaceaShortDayCaption - true if short day caption should be shownpublic CalendarDayRenderer getCalendarDayRenderer()
CalendarDayRenderer
getCalendarDayRenderer in interface CalendarInterfaceCalendarDayRendererpublic void setCalendarDayRenderer(CalendarDayRenderer aCalendarDayRenderer)
CalendarDayRenderer
setCalendarDayRenderer in interface CalendarInterfaceaCalendarDayRenderer - CalendarDayRendererpublic CalendarController getCalendarController()
CalendarController
getCalendarController in interface CalendarInterfaceCalendarControllerpublic void setCalendarController(CalendarController aCalendarControler)
CalendarController
setCalendarController in interface CalendarInterfaceaCalendarControler - the CalendarControllerCalendarControllerpublic java.util.Locale getLocale()
Locale
getLocale in interface CalendarInterfaceLocalepublic void setLocale(java.util.Locale aLocale)
Locale
setLocale in interface CalendarInterfaceaLocale - a new Calendar's Localepublic boolean isEnabled()
true if enabledpublic void setEnabled(boolean aFlag)
aFlag - true if this component should be enabledpublic java.awt.Color getOffMonthWeekdayForeground()
Color
getOffMonthWeekdayForeground in interface CalendarInterfaceColorpublic void setOffMonthWeekdayForeground(java.awt.Color anOffMonthWeekdayForeground)
Color
setOffMonthWeekdayForeground in interface CalendarInterfaceanOffMonthWeekdayForeground - off-month weekday foreground Colorpublic java.awt.Color getOffMonthWeekdayBackground()
Color
getOffMonthWeekdayBackground in interface CalendarInterfaceColorpublic void setOffMonthWeekdayBackground(java.awt.Color anOffMonthWeekdayBackground)
Color
setOffMonthWeekdayBackground in interface CalendarInterfaceanOffMonthWeekdayBackground - off-month weekday background Colorpublic java.awt.Color getOffMonthWeekendForeground()
Color
getOffMonthWeekendForeground in interface CalendarInterfaceColorpublic void setOffMonthWeekendForeground(java.awt.Color anOffMonthWeekendForeground)
Color
setOffMonthWeekendForeground in interface CalendarInterfaceanOffMonthWeekendForeground - off-month weekend foreground Colorpublic java.awt.Color getOffMonthWeekendBackground()
Color
getOffMonthWeekendBackground in interface CalendarInterfaceColorpublic void setOffMonthWeekendBackground(java.awt.Color anOffMonthWeekendBackground)
Color
setOffMonthWeekendBackground in interface CalendarInterfaceanOffMonthWeekendBackground - off-month weekend background Colorpublic java.awt.Color getWeekendForeground()
Color
getWeekendForeground in interface CalendarInterfaceColorpublic void setWeekendForeground(java.awt.Color aWeekendForeground)
Color
setWeekendForeground in interface CalendarInterfaceaWeekendForeground - current month's weekend foreground Colorpublic java.awt.Color getWeekendBackground()
Color
getWeekendBackground in interface CalendarInterfaceColorpublic void setWeekendBackground(java.awt.Color aWeekendBackground)
Color
setWeekendBackground in interface CalendarInterfaceaWeekendBackground - current month's weekend background Colorpublic java.awt.Color getHeaderForeground()
Color
getHeaderForeground in interface CalendarInterfaceColorpublic void setHeaderForeground(java.awt.Color aHeaderForeground)
Color
setHeaderForeground in interface CalendarInterfaceaHeaderForeground - Calendar's header foreground Colorpublic java.awt.Color getCaptionForeground()
Color
Colorpublic void setCaptionForeground(java.awt.Color aCaptionForeground)
Color. Caption shows current month and year
aCaptionForeground - caption's foreground Colorpublic void setBackground(java.awt.Color aBackground)
Color
setBackground in interface CalendarInterfaceaBackground - background Colorpublic void setForeground(java.awt.Color aForeground)
Color
setForeground in interface CalendarInterfaceaForeground - foreground Colorpublic int getTodayBorderThickness()
getTodayBorderThickness in interface CalendarInterfacepublic void setTodayBorderThickness(int aThickness)
setTodayBorderThickness in interface CalendarInterfaceaThickness - Calendar's today's date border thicknesspublic java.awt.Color getTodayBorderColor()
Color
getTodayBorderColor in interface CalendarInterfaceColorpublic void setTodayBorderColor(java.awt.Color aColor)
Color
setTodayBorderColor in interface CalendarInterfaceaColor - Calendar's today's date border Colorpublic boolean isPreserveCurrentDate()
true if the current date should be preserved
isPreserveCurrentDate in interface CalendarInterfacetrue 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 CalendarInterfaceaFlag - true if the current date should be preserved.public void setAllowSelectOffMonthDays(boolean aFlag)
setAllowSelectOffMonthDays in interface CalendarInterfacesetAllowSelectOffMonthDays in class CalendarAdapteraFlag - 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)
SingleCalendarPanels and forwards them to the method
fireDateChanged
anEvent - the CalendarEventpublic void dateSelected(CalendarEvent anEvent)
SingleCalendarPanels 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)
SingleCalendarPanels and forwards them
to the method fireOnRendererCalendarDay
onCalendarDayRenderer in interface CalendarDayRendererListeneraSource - the sourceaDate - current DateaRendererComponent - day renderer Componentpublic void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange in interface java.beans.PropertyChangeListenerpublic 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 | ||||||||