|
|||||||||
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 dev.gui.field.PopupField com.jp.comp.calendar.DateField
DateField
represents a field to show and edit the date with popup
MonthCalendarPanel
MonthCalendarPanel
,
Serialized FormNested Class Summary | |
protected class |
DateField.DateFieldVerifier
Fires when the date field loses the focus |
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 javax.swing.KeyStroke |
DEFAULT_POPUP_CALENDAR_HOT_KEY
Default hot key to popup the MonthCalendarPanel (Down Arrow) |
protected DateDocument |
fDateDocument
|
protected java.util.Locale |
fLocale
|
protected java.util.Date |
fOldDate
|
protected static java.lang.String |
POPUP_CALENDAR_ACTION_NAME
|
static java.lang.String |
PROPERTY_POPUP_HOTKEY
Property name for the popupHotKey property |
static java.lang.String |
PROPERTY_YEAR_DIGITS_AMOUNT
Property name for the yearDigitsAmount property |
protected static java.util.Date |
TODAY
|
Fields inherited from class dev.gui.field.PopupField |
btnPopup, DEFAULT_BUTTON_TEXT, fField, fSelectAllFocusAdapter, pnlPopup, popupMenu, PROPERTY_FIELD, PROPERTY_FIELD_ENABLED, PROPERTY_POPUP_BUTTON_ENABLED, PROPERTY_POPUP_BUTTON_ICON, PROPERTY_POPUP_BUTTON_TEXT, PROPERTY_POPUP_BUTTON_TOOLTIP_TEXT, PROPERTY_POPUP_PANEL, PROPERTY_TOOLTIP_TEXT |
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 | |
DateField()
Constructs the Date Field with default Locale |
|
DateField(java.util.Locale aLocale)
Constructs the Date Field with specified Locale |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener aListener)
Adds action listener |
void |
addCalendarDateListener(CalendarDateListener aListener)
Adds Calendar Date listener |
void |
addCalendarDayRendererListener(CalendarDayRendererListener aListener)
Adds Calendar's day renderer listener |
void |
addCalendarListener(CalendarListener aListener)
Adds Date Field's listener |
protected void |
beforeShowPopup()
|
void |
dateChanged(CalendarEvent anEvent)
Catches date is changed event from the MonthCalendarPanel and forwards it to
the methods fireDateChanged |
void |
dateSelected(CalendarEvent anEvent)
Catches date is selected event from the MonthCalendarPanel , processes and forwards
it to the methods fireDateSelected |
protected void |
fireDateChanged(java.util.Date aOldDate,
java.util.Date aNewDate)
Fires date is changed event |
protected void |
fireDateSelected()
Fires date is selected event |
protected void |
fireLocaleChanged(java.util.Locale aLocale,
java.util.Date aDate)
Fires locale is changed event |
java.lang.String |
getAbout()
|
java.awt.Color |
getBackground()
Returns MonthCalendarPanel 's background Color |
MonthCalendarPanel |
getCalendar()
Returns the MonthCalendarPanel |
CalendarController |
getCalendarController()
Returns MonthCalendarPanel 's CalendarController |
CalendarDayRenderer |
getCalendarDayRenderer()
Returns MonthCalendarPanel 's CalendarDayRenderer |
java.util.Date |
getDate()
Returns selected Date |
int |
getDayOfMonth()
Returns selected/entered day of month |
DateDocument |
getDocument()
Gets the date field's Document |
java.awt.Color |
getForeground()
Returns MonthCalendarPanel 's foreground Color |
java.awt.Color |
getGridColor()
|
java.awt.Color |
getHeaderForeground()
Returns MonthCalendarPanel 's header (names of the days of the week) foreground Color |
java.util.Locale |
getLocale()
Returns Calendar's Locale |
int |
getMonth()
Returns selected/entered month number (0 - 11) |
java.awt.Color |
getOffMonthWeekdayBackground()
Returns off-month weekday background Color in the MonthCalendarPanel |
java.awt.Color |
getOffMonthWeekdayForeground()
Returns off-month weekday foreground Color in the MonthCalendarPanel |
java.awt.Color |
getOffMonthWeekendBackground()
Returns off-month weekend background Color in the MonthCalendarPanel |
java.awt.Color |
getOffMonthWeekendForeground()
Returns off-month weekday background Color in the MonthCalendarPanel |
javax.swing.KeyStroke |
getPopupCalendarHotKey()
Returns hot key for popup CalendarPanel |
java.awt.Dimension |
getPreferredSize()
|
java.awt.Color |
getTodayBorderColor()
Returns Calendar's today's date border Color in the MonthCalendarPanel |
int |
getTodayBorderThickness()
Returns Calendar's today's date border thickness in the MonthCalendarPanel |
java.awt.Color |
getWeekendBackground()
Returns current month's weekend background Color in the MonthCalendarPanel |
java.awt.Color |
getWeekendForeground()
Returns current month's weekend foreground Color in the MonthCalendarPanel |
int |
getYear()
Returns selected/entered year |
int |
getYearDigitsAmount()
Gets the year digits amount |
boolean |
isAllowSelectOffMonthDays()
Returns true |
boolean |
isPreserveCurrentDate()
Returns true if the current date should be preserved |
boolean |
isShortDayCaption()
Returns true |
boolean |
isShowGrid()
Returns true |
boolean |
isShowHorizontalLines()
Returns true |
boolean |
isShowOffMonthDays()
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 |
propertyChange(java.beans.PropertyChangeEvent anEvent)
|
void |
removeActionListener(java.awt.event.ActionListener aListener)
Removes action listener |
void |
removeCalendarDateListener(CalendarDateListener aListener)
Removes Calendar Date listener |
void |
removeCalendarDayRendererListener(CalendarDayRendererListener aListener)
Removes Calendar's day renderer listener |
void |
removeCalendarListener(CalendarListener aListener)
Removes Date Field's listener |
void |
setAbout(java.lang.String aAbout)
|
void |
setAllowSelectOffMonthDays(boolean aFlag)
Sets whether off-month days can be selected in the MonthCalendarPanel |
void |
setBackground(java.awt.Color aColor)
Sets MonthCalendarPanel 's background Color |
void |
setCalendarController(CalendarController aCalendarControler)
Sets the CalendarController in the MonthCalendarPanel |
void |
setCalendarDayRenderer(CalendarDayRenderer aCalendarDayRenderer)
Sets the CalendarDayRenderer in the MonthCalendarPanel |
protected void |
setCaretPosition()
Sets caret position in the date field to 0 |
void |
setDate(java.util.Date aDate)
Sets a new Date |
void |
setForeground(java.awt.Color aColor)
Sets MonthCalendarPanel 's foreground Color |
void |
setGridColor(java.awt.Color gridColor)
|
void |
setHeaderForeground(java.awt.Color aHeaderForeground)
Sets MonthCalendarPanel '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 in the MonthCalendarPanel |
void |
setOffMonthWeekdayForeground(java.awt.Color anOffMonthWeekdayForeground)
Sets off-month weekday foreground Color in the MonthCalendarPanel |
void |
setOffMonthWeekendBackground(java.awt.Color anOffMonthWeekendBackground)
Sets off-month weekend background Color in the MonthCalendarPanel |
void |
setOffMonthWeekendForeground(java.awt.Color anOffMonthWeekendForeground)
Sets off-month weekend foreground Color in the MonthCalendarPanel |
void |
setPopupCalendarHotKey(javax.swing.KeyStroke aKeyStroke)
Assigns a new hot key for the popup MonthCalendarPanel |
void |
setPreserveCurrentDate(boolean aFlag)
Sets true if the current date should be preserved |
void |
setShortDayCaption(boolean aShortDayCaption)
Sets whether short day caption should be shown in the MonthCalendarPanel |
void |
setShowGrid(boolean aFlag)
Sets whether the Calendar draws grid lines around cells in the MonthCalendarPanel |
void |
setShowHorizontalLines(boolean aFlag)
Sets whether the Calendar draws horizontal lines between days in the MonthCalendarPanel |
void |
setShowOffMonthDays(boolean aFlag)
Sets whether off-month days should be shown in the MonthCalendarPanel |
void |
setShowVerticalLines(boolean aFlag)
Sets whether the Calendar draws vertical lines between days in the MonthCalendarPanel |
void |
setTodayBorderColor(java.awt.Color aColor)
Sets Calendar's today's date border Color in the MonthCalendarPanel |
void |
setTodayBorderThickness(int aThickness)
Sets Calendar's today's date border thickness in the MonthCalendarPanel |
void |
setWeekendBackground(java.awt.Color aWeekendBackground)
Sets current month's weekend background Color in the MonthCalendarPanel |
void |
setWeekendForeground(java.awt.Color aWeekendForeground)
Sets current month's weekend foreground Color in the MonthCalendarPanel |
void |
setYearDigitsAmount(int aYearDigitsAmount)
Sets the year digits amount |
Methods inherited from class dev.gui.field.PopupField |
btnPopup_actionPerformed, fieldFocusGained, getField, getPopupButton, getPopupButtonIcon, getPopupButtonText, getPopupButtonToolTipText, getPopupPanel, getToolTipText, initPopup, isEnabled, isFieldEnabled, isPopupButtonEnabled, requestFocus, setEnabled, setField, setFieldEnabled, setPopupButtonEnabled, setPopupButtonIcon, setPopupButtonText, setPopupButtonToolTipText, setPopupPanel, setToolTipText |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
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, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, 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, 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, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, 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_YEAR_DIGITS_AMOUNT
public static final java.lang.String PROPERTY_POPUP_HOTKEY
public static final javax.swing.KeyStroke DEFAULT_POPUP_CALENDAR_HOT_KEY
MonthCalendarPanel
(Down Arrow)
protected static final java.lang.String POPUP_CALENDAR_ACTION_NAME
protected static java.util.Date TODAY
protected java.util.Locale fLocale
protected DateDocument fDateDocument
protected java.util.Date fOldDate
Constructor Detail |
public DateField()
Locale
public DateField(java.util.Locale aLocale)
Locale
aLocale
- the Locale
Method Detail |
public java.awt.Color getGridColor()
public void setGridColor(java.awt.Color gridColor)
protected void beforeShowPopup()
public MonthCalendarPanel getCalendar()
MonthCalendarPanel
MonthCalendarPanel
public DateDocument getDocument()
Document
Document
DateDocument
public int getYearDigitsAmount()
DateDocument.setYearDigitsAmount(int)
,
DateDocument.getYearDigitsAmount()
public void setYearDigitsAmount(int aYearDigitsAmount)
aYearDigitsAmount
- the year digits amount
java.lang.IllegalArgumentException
DateDocument.setYearDigitsAmount(int)
public javax.swing.KeyStroke getPopupCalendarHotKey()
CalendarPanel
CalendarPanel
public void setPopupCalendarHotKey(javax.swing.KeyStroke aKeyStroke)
MonthCalendarPanel
aKeyStroke
- a new hot keypublic 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 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 java.awt.Color getBackground()
MonthCalendarPanel
's background Color
getBackground
in interface CalendarInterface
MonthCalendarPanel
's background Color
public void setBackground(java.awt.Color aColor)
MonthCalendarPanel
's background Color
setBackground
in interface CalendarInterface
aColor
- background Color
public java.awt.Color getForeground()
MonthCalendarPanel
's foreground Color
getForeground
in interface CalendarInterface
MonthCalendarPanel
's foreground Color
public void setForeground(java.awt.Color aColor)
MonthCalendarPanel
's foreground Color
setForeground
in interface CalendarInterface
aColor
- foreground Color
public CalendarController getCalendarController()
MonthCalendarPanel
's CalendarController
getCalendarController
in interface CalendarInterface
MonthCalendarPanel
's CalendarController
public CalendarDayRenderer getCalendarDayRenderer()
MonthCalendarPanel
's CalendarDayRenderer
getCalendarDayRenderer
in interface CalendarInterface
MonthCalendarPanel
's CalendarDayRenderer
public int getDayOfMonth()
getDayOfMonth
in interface CalendarInterface
public int getMonth()
getMonth
in interface CalendarInterface
public int getYear()
getYear
in interface CalendarInterface
public java.awt.Color getHeaderForeground()
MonthCalendarPanel
's header (names of the days of the week) foreground Color
getHeaderForeground
in interface CalendarInterface
MonthCalendarPanel
's header foreground Color
public boolean isShowOffMonthDays()
true if off-month days are shown in the MonthCalendarPanel
- Specified by:
isShowOffMonthDays
in interface CalendarInterface
- Returns:
true if off-month days are shown- See Also:
CalendarInterface.setShowOffMonthDays(boolean)
public void setShowOffMonthDays(boolean aFlag)
MonthCalendarPanel
setShowOffMonthDays
in interface CalendarInterface
aFlag
- true
if off-month days should be shownCalendarInterface.setAllowSelectOffMonthDays(boolean)
public boolean isAllowSelectOffMonthDays()
true if off-month days can be selected in the MonthCalendarPanel
- Specified by:
isAllowSelectOffMonthDays
in interface CalendarInterface
- Returns:
true if off-month days can be selected- See Also:
CalendarInterface.setAllowSelectOffMonthDays(boolean)
public void setAllowSelectOffMonthDays(boolean aFlag)
MonthCalendarPanel
setAllowSelectOffMonthDays
in interface CalendarInterface
aFlag
- true
if off-month days can be selectedCalendarInterface.setShowOffMonthDays(boolean)
public java.awt.Color getOffMonthWeekdayForeground()
Color
in the MonthCalendarPanel
getOffMonthWeekdayForeground
in interface CalendarInterface
Color
public java.awt.Color getOffMonthWeekendForeground()
Color
in the MonthCalendarPanel
getOffMonthWeekendForeground
in interface CalendarInterface
Color
public java.awt.Color getWeekendForeground()
Color
in the MonthCalendarPanel
getWeekendForeground
in interface CalendarInterface
Color
public boolean isShortDayCaption()
true if short day caption is shown in the MonthCalendarPanel
- Specified by:
isShortDayCaption
in interface CalendarInterface
- Returns:
true if short day caption is shown- See Also:
CalendarInterface.setShortDayCaption(boolean)
public boolean isShowGrid()
true if the Calendar draws grid around days in the MonthCalendarPanel
- Specified by:
isShowGrid
in interface CalendarInterface
- Returns:
true if the Calendar draws grid around days
public boolean isShowHorizontalLines()
true if the Calendar draws horizontal lines between days
in the MonthCalendarPanel
- Specified by:
isShowHorizontalLines
in interface CalendarInterface
- Returns:
true if the Calendar draws horizontal lines between days
public boolean isShowVerticalLines()
true if the Calendar draws vertical lines between days
in the MonthCalendarPanel
- Specified by:
isShowVerticalLines
in interface CalendarInterface
- Returns:
true if the table draws vertical lines between days
public void setCalendarController(CalendarController aCalendarControler)
CalendarController
in the MonthCalendarPanel
setCalendarController
in interface CalendarInterface
aCalendarControler
- the CalendarController
CalendarController
public void setCalendarDayRenderer(CalendarDayRenderer aCalendarDayRenderer)
CalendarDayRenderer
in the MonthCalendarPanel
setCalendarDayRenderer
in interface CalendarInterface
aCalendarDayRenderer
- CalendarDayRenderer
public void setHeaderForeground(java.awt.Color aHeaderForeground)
MonthCalendarPanel
's header (names of the days of the week) foreground Color
setHeaderForeground
in interface CalendarInterface
aHeaderForeground
- MonthCalendarPanel
's header foreground Color
public void setOffMonthWeekdayForeground(java.awt.Color anOffMonthWeekdayForeground)
Color
in the MonthCalendarPanel
setOffMonthWeekdayForeground
in interface CalendarInterface
anOffMonthWeekdayForeground
- off-month weekday foreground Color
public void setOffMonthWeekendForeground(java.awt.Color anOffMonthWeekendForeground)
Color
in the MonthCalendarPanel
setOffMonthWeekendForeground
in interface CalendarInterface
anOffMonthWeekendForeground
- off-month weekend foreground Color
public java.awt.Color getOffMonthWeekdayBackground()
Color
in the MonthCalendarPanel
getOffMonthWeekdayBackground
in interface CalendarInterface
Color
public void setOffMonthWeekdayBackground(java.awt.Color anOffMonthWeekdayBackground)
Color
in the MonthCalendarPanel
setOffMonthWeekdayBackground
in interface CalendarInterface
anOffMonthWeekdayBackground
- off-month weekday background Color
public java.awt.Color getOffMonthWeekendBackground()
Color
in the MonthCalendarPanel
getOffMonthWeekendBackground
in interface CalendarInterface
Color
public void setOffMonthWeekendBackground(java.awt.Color anOffMonthWeekendBackground)
Color
in the MonthCalendarPanel
setOffMonthWeekendBackground
in interface CalendarInterface
anOffMonthWeekendBackground
- off-month weekend background Color
public void setShortDayCaption(boolean aShortDayCaption)
MonthCalendarPanel
setShortDayCaption
in interface CalendarInterface
aShortDayCaption
- true
if short day caption should be shownpublic void setShowGrid(boolean aFlag)
MonthCalendarPanel
setShowGrid
in interface CalendarInterface
aFlag
- true if the Calendar should draw grid lines- See Also:
CalendarInterface.setShowVerticalLines(boolean)
,
CalendarInterface.setShowHorizontalLines(boolean)
public void setShowHorizontalLines(boolean aFlag)
MonthCalendarPanel
setShowHorizontalLines
in interface CalendarInterface
aFlag
- true if the Calendar view should draw horizontal lines- See Also:
CalendarInterface.setShowGrid(boolean)
public void setShowVerticalLines(boolean aFlag)
MonthCalendarPanel
setShowVerticalLines
in interface CalendarInterface
aFlag
- true if the Calendar view should draw vertical lines- See Also:
CalendarInterface.setShowGrid(boolean)
public void setWeekendForeground(java.awt.Color aWeekendForeground)
Color
in the MonthCalendarPanel
setWeekendForeground
in interface CalendarInterface
aWeekendForeground
- current month's weekend foreground Color
public java.awt.Color getWeekendBackground()
Color
in the MonthCalendarPanel
getWeekendBackground
in interface CalendarInterface
Color
public void setWeekendBackground(java.awt.Color aWeekendBackground)
Color
in the MonthCalendarPanel
setWeekendBackground
in interface CalendarInterface
aWeekendBackground
- current month's weekend background Color
public int getTodayBorderThickness()
MonthCalendarPanel
getTodayBorderThickness
in interface CalendarInterface
public void setTodayBorderThickness(int aThickness)
MonthCalendarPanel
setTodayBorderThickness
in interface CalendarInterface
aThickness
- Calendar's today's date border thicknesspublic java.awt.Color getTodayBorderColor()
Color
in the MonthCalendarPanel
getTodayBorderColor
in interface CalendarInterface
Color
public void setTodayBorderColor(java.awt.Color aColor)
Color
in the MonthCalendarPanel
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 java.lang.String getAbout()
public void setAbout(java.lang.String aAbout)
protected void setCaretPosition()
public void dateChanged(CalendarEvent anEvent)
MonthCalendarPanel
and forwards it to
the methods fireDateChanged
dateChanged
in interface CalendarListener
anEvent
- the CalendarEvent
public void dateSelected(CalendarEvent anEvent)
MonthCalendarPanel
, processes and forwards
it to the methods fireDateSelected
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 void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
protected void fireDateChanged(java.util.Date aOldDate, java.util.Date aNewDate)
aOldDate
- old Date
aNewDate
- new Date
protected void fireDateSelected()
protected void fireLocaleChanged(java.util.Locale aLocale, java.util.Date aDate)
aLocale
- new Locale
aDate
- current Date
public void addCalendarListener(CalendarListener aListener)
addCalendarListener
in interface CalendarInterface
aListener
- Date Field's listenerpublic void removeCalendarListener(CalendarListener aListener)
removeCalendarListener
in interface CalendarInterface
aListener
- Date Field's listenerpublic void addCalendarDayRendererListener(CalendarDayRendererListener aListener)
addCalendarDayRendererListener
in interface CalendarInterface
aListener
- Calendar's day renderer listenerpublic void removeCalendarDayRendererListener(CalendarDayRendererListener aListener)
removeCalendarDayRendererListener
in interface CalendarInterface
aListener
- Calendar's day renderer listenerpublic void addCalendarDateListener(CalendarDateListener aListener)
addCalendarDateListener
in interface CalendarInterface
aListener
- Calendar Date listenerpublic void removeCalendarDateListener(CalendarDateListener aListener)
removeCalendarDateListener
in interface CalendarInterface
aListener
- Calendar Date listenerpublic void addActionListener(java.awt.event.ActionListener aListener)
addActionListener
in interface CalendarInterface
aListener
- action listenerpublic void removeActionListener(java.awt.event.ActionListener aListener)
removeActionListener
in interface CalendarInterface
aListener
- action listenerpublic java.awt.Dimension getPreferredSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |