com.jp.comp.calendar
Class MonthCalendarPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.jp.comp.calendar.CalendarAdapter
                      extended bycom.jp.comp.calendar.CalendarPanel
                          extended bycom.jp.comp.calendar.MonthCalendarPanel
All Implemented Interfaces:
javax.accessibility.Accessible, CalendarInterface, CalendarListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
SingleCalendarPanel

public class MonthCalendarPanel
extends CalendarPanel

MonthCalendarPanel extends CalendarPanel adding two decoration panels on the top and bottom of the CalendarPanel. By default this calendar sets CalendarNavigationPanel on the top to perform navigation by week, month and year and CalendarNavigationPanel on the bottom to highlight today's date and confirm selection

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.jp.comp.calendar.CalendarPanel
CalendarPanel.CalendarHeaderBorder, CalendarPanel.CalendarTableCellRenderer, CalendarPanel.CalendarTableHeaderCellRenderer, 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
protected  boolean fShowBottomDelimiter
           
protected  boolean fShowTopDelimiter
           
protected  CalendarDecorationPanel pnlBottomDecoration
           
protected  CalendarDecorationPanel pnlTopDecoration
           
static java.lang.String PROPERTY_BOTTOM_DECORATION
          Property name for the bottomDecoration property
static java.lang.String PROPERTY_SHOW_BOTTOM_DELIMITER
          Property name for the showBottomDelimiter property
static java.lang.String PROPERTY_SHOW_TOP_DELIMITER
          Property name for the showTopDelimiter property
static java.lang.String PROPERTY_TOP_DECORATION
          Property name for the topDecoration property
 
Fields inherited from class com.jp.comp.calendar.CalendarPanel
DEFAULT_OFFMONTH_WEEKDAY_FOREGROUND, DEFAULT_OFFMONTH_WEEKEND_FOREGROUND, DEFAULT_WEEKEND_FOREGROUND, EMPTY_BORDER, fCalendarController, fCalendarDayRenderer, fHeaderForeground, fMouseHolding, fOffMonthWeekdayBackground, fOffMonthWeekdayForeground, fOffMonthWeekendBackground, fOffMonthWeekendForeground, fPreserveCurrentDate, fSelectionChanged, fTableModel, fWeekendBackground, fWeekendForeground, pnlCalendar, PROPERTY_CALENDAR_CONTROLLER, PROPERTY_CALENDAR_DAY_RENDERER, PROPERTY_DATE, PROPERTY_HEADER_FOREGROUND, PROPERTY_LOCALE, PROPERTY_OFFMONTH_WEEKDAY_BACKGROUND, PROPERTY_OFFMONTH_WEEKDAY_FOREGROUND, PROPERTY_OFFMONTH_WEEKEND_BACKGROUND, PROPERTY_OFFMONTH_WEEKEND_FOREGROUND, PROPERTY_PRESERVE_CURRENT_DATE, PROPERTY_SELECTED_DATE, PROPERTY_SHORT_DAY_CAPTION, PROPERTY_SHOW_GRID, PROPERTY_SHOW_HORIZONTAL_LINES, PROPERTY_SHOW_VERTICAL_LINES, PROPERTY_TODAY_BORDER_COLOR, PROPERTY_TODAY_BORDER_THICKNESS, PROPERTY_WEEKEND_BACKGROUND, PROPERTY_WEEKEND_FOREGROUND, TABLE_COLUMN_MARGIN, tblCalendar, tblhCalendarHeader, TODAY_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
MonthCalendarPanel()
          Constructs the Calendar with default Locale and top and bottom decaratin panels
MonthCalendarPanel(CalendarDecorationPanel aTopDecoration, CalendarDecorationPanel aBottomDecoration)
          Constructs the Calendar with default Locale and specified top and bottom decaratin panels
MonthCalendarPanel(java.util.Locale aLocale)
          Constructs the Calendar with specified Locale and default top and bottom decaratin panels
MonthCalendarPanel(java.util.Locale aLocale, CalendarDayRenderer aCalendarDayRenderer, CalendarController aCalendarControler, CalendarDecorationPanel aTopDecoration, CalendarDecorationPanel aBottomDecoration)
          Constructs the Calendar with specified Locale, CalendarDayRenderer, CalendarControler and top and bottom decaratin panels
MonthCalendarPanel(java.util.Locale aLocale, CalendarDecorationPanel aTopDecoration, CalendarDecorationPanel aBottomDecoration)
          Constructs the Calendar with specified Locale and top and bottom decaratin panels
 
Method Summary
 java.lang.String getAbout()
           
 CalendarDecorationPanel getBottomDecoration()
          Gets bottom decoration panel
static CalendarDecorationPanel getDefaultBottomDecoration()
          Gets default bottom decoration panel
static CalendarDecorationPanel getDefaultTopDecoration()
          Gets default top decoration panel
 CalendarDecorationPanel getTopDecoration()
          Gets top decoration panel
 boolean isShowBottomDelimiter()
          Gets whether to show bottom delimiter
 boolean isShowTopDelimiter()
          Gets whether to show top delimiter
 void setAbout(java.lang.String aAbout)
           
 void setBottomDecoration(CalendarDecorationPanel aBottomDecoration)
          Sets a new bottom decoration panel
 void setEnabled(boolean aFlag)
          Sets this component accessibility
 void setShowBottomDelimiter(boolean aShowBottomDelimiter)
          Sets whether to show bottom delimiter
 void setShowTopDelimiter(boolean aShowTopDelimiter)
          Sets whether to show top delimiter
 void setTopDecoration(CalendarDecorationPanel aTopDecoration)
          Sets a new top decoration panel
protected  void updateDelimiters()
          Updates delemiters (lines) dividing the Calendar from the top and bottom decoration panels
 void updateUI()
           
 
Methods inherited from class com.jp.comp.calendar.CalendarPanel
changeSelection, dateChanged, dateSelected, dateSelected, getCalendarController, getCalendarDayRenderer, getDate, getDayOfMonth, getDefaultCalendarController, getDefaultCalendarDayRenderer, getGridColor, getHeaderForeground, getItem, getLocale, getMonth, getOffMonthWeekdayBackground, getOffMonthWeekdayForeground, getOffMonthWeekendBackground, getOffMonthWeekendForeground, getSelectedColumn, getSelectedItem, getSelectedRow, getTable, getTodayBorderColor, getTodayBorderThickness, getWeekendBackground, getWeekendForeground, getYear, isEnabled, isPreserveCurrentDate, isShortDayCaption, isShowGrid, isShowHorizontalLines, isShowVerticalLines, localeChanged, requestFocus, setCalendarController, setCalendarDayRenderer, setCalendarSize, setDate, setGridColor, setHeaderForeground, setLocale, setOffMonthWeekdayBackground, setOffMonthWeekdayForeground, setOffMonthWeekendBackground, setOffMonthWeekendForeground, setPreserveCurrentDate, setSelection, setShortDayCaption, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setTodayBorderColor, setTodayBorderThickness, setWeekendBackground, setWeekendForeground
 
Methods inherited from class com.jp.comp.calendar.CalendarAdapter
aboutToChangeDate, addActionListener, addCalendarDateListener, addCalendarDayRendererListener, addCalendarListener, fireAboutToChangeDate, fireActionPerformed, fireDateChanged, fireDateSelected, fireLocaleChanged, fireOnCalendarDayRenderer, isAllowSelectOffMonthDays, isShowOffMonthDays, removeActionListener, removeCalendarDateListener, removeCalendarDayRendererListener, removeCalendarListener, setAllowSelectOffMonthDays, setShowOffMonthDays
 
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
 
Methods inherited from interface com.jp.comp.calendar.CalendarInterface
addActionListener, addCalendarDateListener, addCalendarDayRendererListener, addCalendarListener, getBackground, getForeground, isAllowSelectOffMonthDays, isShowOffMonthDays, removeActionListener, removeCalendarDateListener, removeCalendarDayRendererListener, removeCalendarListener, setAllowSelectOffMonthDays, setBackground, setForeground, setShowOffMonthDays
 

Field Detail

PROPERTY_BOTTOM_DECORATION

public static final java.lang.String PROPERTY_BOTTOM_DECORATION
Property name for the bottomDecoration property

See Also:
Constant Field Values

PROPERTY_TOP_DECORATION

public static final java.lang.String PROPERTY_TOP_DECORATION
Property name for the topDecoration property

See Also:
Constant Field Values

PROPERTY_SHOW_BOTTOM_DELIMITER

public static final java.lang.String PROPERTY_SHOW_BOTTOM_DELIMITER
Property name for the showBottomDelimiter property

See Also:
Constant Field Values

PROPERTY_SHOW_TOP_DELIMITER

public static final java.lang.String PROPERTY_SHOW_TOP_DELIMITER
Property name for the showTopDelimiter property

See Also:
Constant Field Values

pnlTopDecoration

protected CalendarDecorationPanel pnlTopDecoration

pnlBottomDecoration

protected CalendarDecorationPanel pnlBottomDecoration

fShowTopDelimiter

protected boolean fShowTopDelimiter

fShowBottomDelimiter

protected boolean fShowBottomDelimiter
Constructor Detail

MonthCalendarPanel

public MonthCalendarPanel()
Constructs the Calendar with default Locale and top and bottom decaratin panels


MonthCalendarPanel

public MonthCalendarPanel(java.util.Locale aLocale)
Constructs the Calendar with specified Locale and default top and bottom decaratin panels

Parameters:
aLocale - the Locale

MonthCalendarPanel

public MonthCalendarPanel(CalendarDecorationPanel aTopDecoration,
                          CalendarDecorationPanel aBottomDecoration)
Constructs the Calendar with default Locale and specified top and bottom decaratin panels

Parameters:
aTopDecoration - the top decoration panel
aBottomDecoration - the bottom decoration panel

MonthCalendarPanel

public MonthCalendarPanel(java.util.Locale aLocale,
                          CalendarDecorationPanel aTopDecoration,
                          CalendarDecorationPanel aBottomDecoration)
Constructs the Calendar with specified Locale and top and bottom decaratin panels

Parameters:
aLocale - the Locale
aTopDecoration - the top decoration panel
aBottomDecoration - the bottom decoration panel

MonthCalendarPanel

public MonthCalendarPanel(java.util.Locale aLocale,
                          CalendarDayRenderer aCalendarDayRenderer,
                          CalendarController aCalendarControler,
                          CalendarDecorationPanel aTopDecoration,
                          CalendarDecorationPanel aBottomDecoration)
Constructs the Calendar with specified Locale, CalendarDayRenderer, CalendarControler and top and bottom decaratin panels

Parameters:
aLocale - the Locale
aCalendarDayRenderer - the CalendarDayRenderer
aCalendarControler - the CalendarController
aTopDecoration - the top decoration panel
aBottomDecoration - the bottom decoration panel
Method Detail

updateDelimiters

protected void updateDelimiters()
Updates delemiters (lines) dividing the Calendar from the top and bottom decoration panels


updateUI

public void updateUI()
Overrides:
updateUI in class CalendarPanel

isShowBottomDelimiter

public boolean isShowBottomDelimiter()
Gets whether to show bottom delimiter

Returns:
true if yes

setShowBottomDelimiter

public void setShowBottomDelimiter(boolean aShowBottomDelimiter)
Sets whether to show bottom delimiter

Parameters:
aShowBottomDelimiter - true if yes

isShowTopDelimiter

public boolean isShowTopDelimiter()
Gets whether to show top delimiter

Returns:
true if yes

setShowTopDelimiter

public void setShowTopDelimiter(boolean aShowTopDelimiter)
Sets whether to show top delimiter

Parameters:
aShowTopDelimiter - true if yes

getTopDecoration

public CalendarDecorationPanel getTopDecoration()
Gets top decoration panel

Returns:
top decoration panel

setTopDecoration

public void setTopDecoration(CalendarDecorationPanel aTopDecoration)
Sets a new top decoration panel

Parameters:
aTopDecoration - a new top decoration panel

getBottomDecoration

public CalendarDecorationPanel getBottomDecoration()
Gets bottom decoration panel

Returns:
bottom decoration panel

setBottomDecoration

public void setBottomDecoration(CalendarDecorationPanel aBottomDecoration)
Sets a new bottom decoration panel

Parameters:
aBottomDecoration - a bottom top decoration panel

setEnabled

public void setEnabled(boolean aFlag)
Sets this component accessibility

Overrides:
setEnabled in class CalendarPanel
Parameters:
aFlag - true if this component should be enabled
See Also:
#setMouseWheelNavigationEnabled

getDefaultTopDecoration

public static CalendarDecorationPanel getDefaultTopDecoration()
Gets default top decoration panel

Returns:
default top decoration panel

getDefaultBottomDecoration

public static CalendarDecorationPanel getDefaultBottomDecoration()
Gets default bottom decoration panel

Returns:
default bottom decoration panel

getAbout

public java.lang.String getAbout()
Overrides:
getAbout in class CalendarPanel

setAbout

public void setAbout(java.lang.String aAbout)
Overrides:
setAbout in class CalendarPanel