|
|||||||||
| 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.CalendarPanel
com.jp.comp.calendar.MonthCalendarPanel
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
| 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.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 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_BOTTOM_DECORATION
public static final java.lang.String PROPERTY_TOP_DECORATION
public static final java.lang.String PROPERTY_SHOW_BOTTOM_DELIMITER
public static final java.lang.String PROPERTY_SHOW_TOP_DELIMITER
protected CalendarDecorationPanel pnlTopDecoration
protected CalendarDecorationPanel pnlBottomDecoration
protected boolean fShowTopDelimiter
protected boolean fShowBottomDelimiter
| Constructor Detail |
public MonthCalendarPanel()
Locale and top and bottom decaratin panels
public MonthCalendarPanel(java.util.Locale aLocale)
Locale and default top and bottom
decaratin panels
aLocale - the Locale
public MonthCalendarPanel(CalendarDecorationPanel aTopDecoration,
CalendarDecorationPanel aBottomDecoration)
Locale and specified top and bottom
decaratin panels
aTopDecoration - the top decoration panelaBottomDecoration - the bottom decoration panel
public MonthCalendarPanel(java.util.Locale aLocale,
CalendarDecorationPanel aTopDecoration,
CalendarDecorationPanel aBottomDecoration)
Locale and top and bottom decaratin panels
aLocale - the LocaleaTopDecoration - the top decoration panelaBottomDecoration - the bottom decoration panel
public MonthCalendarPanel(java.util.Locale aLocale,
CalendarDayRenderer aCalendarDayRenderer,
CalendarController aCalendarControler,
CalendarDecorationPanel aTopDecoration,
CalendarDecorationPanel aBottomDecoration)
Locale, CalendarDayRenderer,
CalendarControler and top and bottom decaratin panels
aLocale - the LocaleaCalendarDayRenderer - the CalendarDayRendereraCalendarControler - the CalendarControlleraTopDecoration - the top decoration panelaBottomDecoration - the bottom decoration panel| Method Detail |
protected void updateDelimiters()
public void updateUI()
updateUI in class CalendarPanelpublic boolean isShowBottomDelimiter()
true if yespublic void setShowBottomDelimiter(boolean aShowBottomDelimiter)
aShowBottomDelimiter - true if yespublic boolean isShowTopDelimiter()
true if yespublic void setShowTopDelimiter(boolean aShowTopDelimiter)
aShowTopDelimiter - true if yespublic CalendarDecorationPanel getTopDecoration()
public void setTopDecoration(CalendarDecorationPanel aTopDecoration)
aTopDecoration - a new top decoration panelpublic CalendarDecorationPanel getBottomDecoration()
public void setBottomDecoration(CalendarDecorationPanel aBottomDecoration)
aBottomDecoration - a bottom top decoration panelpublic void setEnabled(boolean aFlag)
setEnabled in class CalendarPanelaFlag - true if this component should be enabled#setMouseWheelNavigationEnabledpublic static CalendarDecorationPanel getDefaultTopDecoration()
public static CalendarDecorationPanel getDefaultBottomDecoration()
public java.lang.String getAbout()
getAbout in class CalendarPanelpublic void setAbout(java.lang.String aAbout)
setAbout in class CalendarPanel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||