|
JDatePicker v4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
com.standbysoft.component.date.swing.plaf.DateUI
com.standbysoft.component.date.swing.plaf.basic.AbstractMonthUI
com.standbysoft.component.date.swing.plaf.basic.BasicMonthUI
com.standbysoft.component.date.swing.plaf.basic.DefaultMonthUI
Default implementation for a
JMonth UI delegate.
It has a meaningful title that displays the current month and year. The month can be changed using a popup that is displayed when it is clicked while the year can be changed using a spinner. The spinner is displayed when the year is clicked.
This type of title is similar to that used by the Outlook calendar. You can
define your own title by extending BasicMonthUI.
| Field Summary |
| Fields inherited from class com.standbysoft.component.date.swing.plaf.basic.BasicMonthUI |
titleMonth, titleYear |
| Fields inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthUI |
body, month, title |
| Constructor Summary | |
DefaultMonthUI()
|
|
| Method Summary | |
protected javax.swing.JComponent |
createTitleMonth()
Creates the component that displays month information from JMonth. |
protected javax.swing.JComponent |
createTitleYear()
Creates the component that displays year information from JMonth. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates a new instance of this class. |
protected void |
installListeners()
Attaches listeners to the JMonth component. |
protected void |
uninstallComponents()
Uninstalls all registered components. |
protected void |
uninstallListeners()
Detaches listeners from the JMonth component. |
protected void |
updateLocale()
Updates the locale for the month components. |
protected void |
updateTitle()
Does nothing because this implementation does not have a title. |
protected void |
updateTitleBackground()
Updates the color for the title background. |
protected void |
updateTitleForeground()
Updates the color for the title foreground. |
| Methods inherited from class com.standbysoft.component.date.swing.plaf.basic.BasicMonthUI |
createBody, createTitle, createTitleLayout, updateDatesOrientation, updateEnabled, updateFont, updateForeground, updateGridColor, updateHorizontalLinesVisible, updateMonthBackground, updateMonthModel, updateTimeZone, updateTrailingForeground, updateVerticalLinesVisible, updateWeekModel, updateWeekNamesVisible, updateWeekNumbersVisible |
| Methods inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthUI |
createDefaults, createLayout, initializeDefaults, installComponents, installDefaults, installKeyboardActions, installUI, uninstallKeyboardActions, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultMonthUI()
| Method Detail |
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected javax.swing.JComponent createTitleYear()
JMonth.
You can override it to create whatever title component you find fit. If
null is returned, then this component is ignored and it is
not added to the title.
createTitleYear in class BasicMonthUIBasicMonthUI.createTitle()protected javax.swing.JComponent createTitleMonth()
JMonth.
You can override it to create whatever title component you find fit. If
null is returned, then this component is ignored and it is
not added to the title.
createTitleMonth in class BasicMonthUIBasicMonthUI.createTitle()protected void updateTitle()
BasicMonthUI
updateTitle in class BasicMonthUIprotected void installListeners()
installListeners in class BasicMonthUIprotected void uninstallComponents()
uninstallComponents in class BasicMonthUIAbstractMonthUI.uninstallUI(JComponent)protected void uninstallListeners()
uninstallListeners in class BasicMonthUIprotected void updateTitleForeground()
AbstractMonthUI
updateTitleForeground in class BasicMonthUIprotected void updateTitleBackground()
AbstractMonthUI
updateTitleBackground in class BasicMonthUIprotected void updateLocale()
updateLocale in class BasicMonthUI
|
JDatePicker v4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Visit www.jdatepicker.com for further information or send us your suggestions.
Copyright © 2003-2007 Stand By Soft Ltd. All Rights Reserved.