|
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.AbstractMonthViewUI
com.standbysoft.component.date.swing.plaf.basic.BasicMonthViewUI
Implements only what is strictly necessary for a
JMonthView UI delegate. It does
not contain the month scrolling buttons, the today button and the none button.
If you want to create a custom UI delegate for JMonthView, then
the best solution is to extend this class.
DefaultMonthViewUI| Nested Class Summary |
| Nested classes inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI |
AbstractMonthViewUI.CalendarLayout |
| Field Summary | |
protected java.util.List |
months
List of months that are added to the JMonthView component. |
protected java.awt.event.MouseListener |
noneMouseListener
|
protected java.awt.event.MouseListener |
todayMouseListener
|
| Fields inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI |
monthView, nextMonthButton, nextYearButton, noneComponent, previousMonthButton, previousYearButton, todayComponent |
| Constructor Summary | |
BasicMonthViewUI()
|
|
| Method Summary | |
protected DateSelectionListener |
createDateSelectionListener()
Creates a listener that controls what months get displayed when the date selection changes. |
protected JMonth |
createMonth()
A JMonthView component is (for now) a one month calendar. |
protected MonthModelListener |
createMonthModelListener()
Creates a listener that synchronizes the state of the calendar month model with the calendar components. |
protected javax.swing.JButton |
createNextMonthButton()
Returns null to indicate the absence of the next month button. |
protected javax.swing.JButton |
createNextYearButton()
Returns null to indicate the absence of the next year button. |
protected javax.swing.JComponent |
createNoneComponent()
Returns null to indicate the absence of the none label. |
protected java.awt.event.MouseListener |
createNoneMouseListener()
Creates a listener that defines what happens when the user clicks on the none button. |
protected javax.swing.JButton |
createPreviousMonthButton()
Returns null to indicate the absence of the previous month button. |
protected javax.swing.JButton |
createPreviousYearButton()
Returns null to indicate the absence of the previous year button. |
protected javax.swing.JComponent |
createTodayComponent()
Returns null to indicate the absence of the today label. |
protected java.awt.event.MouseListener |
createTodayMouseListener()
Creates a listener that defines what happens when the user clicks on the today button. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
protected void |
installComponents()
Installs all the components needed by JMonthView to implement its
behavior. |
protected void |
installListeners()
Installs all useful listeners on the JMonthView component. |
protected void |
uninstallComponents()
|
protected void |
uninstallListeners()
Uninstalls all registered listeners. |
protected void |
updateDateSelectionModel()
Updates the selection model for the components of the calendar. |
protected void |
updateDatesOrientation()
Updates how the dates of the month are displayed. |
protected void |
updateDisplayToday()
Specifies whether the calendar displays the today button or not. |
protected void |
updateEnabled()
Updates the enabled state of the children components based on the enabled state of the JMonthView. |
protected void |
updateFont()
Updates the font for the JMonthView components. |
protected void |
updateForeground()
Updates the foreground color of the calendar. |
protected void |
updateGridColor()
Updates the grid color of the calendar. |
protected void |
updateHorizontalLinesVisible()
Specifies whether the calendar horizontal grid lines are visible or not. |
protected void |
updateLocale()
Updates the locale for the JMonthView components. |
protected void |
updateMonthBackground()
Updates the background color of the calendar. |
protected void |
updateMonthModel()
Keeps the calendar months ordered. |
protected void |
updateMonthUI()
Updates the UI delegate used by all the JMonth objects from
the JMonthView. |
protected void |
updateNoneButtonVisible()
Specifies whether the calendar displays the none button or not. |
protected void |
updateRenderer()
Updates the date renderer for the JMonthView components. |
protected void |
updateRowsColumns()
Updates the row/column arrangement of the months of the calendar. |
protected void |
updateTimeZone()
Updates the time zone for the months of the calendar. |
protected void |
updateTitleBackground()
Updates the title background color of the calendar. |
protected void |
updateTitleForeground()
Updates the title foreground color of the calendar. |
protected void |
updateToggleDateSelectionEnabled()
Updates the toggle date selection flag for the components of the calendar. |
protected void |
updateTrailingForeground()
Updates the trailing foreground color of the calendar. |
protected void |
updateTrailingNextEnabled()
Updates the state of the trailing dates for the last month |
protected void |
updateTrailingPreviousEnabled()
Updates the state of the trailing dates for the first month |
protected void |
updateVerticalLinesVisible()
Specifies whether the calendar vertical grid lines are visible or not. |
protected void |
updateWeekLabelsHighlight()
Updates the client property that enables the highlighting of the selected days of week or weeks. |
protected void |
updateWeekModel()
Called whenever the week model for a JMonthView changes. |
protected void |
updateWeekNamesVisible()
Specifies whether the calendar displays the week names or not. |
protected void |
updateWeekNumbersVisible()
Specifies whether the calendar displays the week numbers or not. |
| Methods inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractMonthViewUI |
createDefaults, createLayout, initializeDefaults, installDefaults, installKeyboardActions, installUI, uninstallKeyboardActions, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, paint, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.awt.event.MouseListener todayMouseListener
protected java.awt.event.MouseListener noneMouseListener
protected java.util.List months
JMonthView component.
| Constructor Detail |
public BasicMonthViewUI()
| Method Detail |
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installComponents()
AbstractMonthViewUIJMonthView to implement its
behavior. This implementation uses a title and an actual month for this.
installComponents in class AbstractMonthViewUIAbstractMonthViewUI.createLayout(),
AbstractMonthViewUI.createPreviousMonthButton(),
AbstractMonthViewUI.createNextMonthButton(),
AbstractMonthViewUI.createTodayComponent(),
AbstractMonthViewUI.createNoneComponent(),
AbstractMonthViewUI.createMonth()protected javax.swing.JButton createPreviousYearButton()
null to indicate the absence of the previous year button.
createPreviousYearButton in class AbstractMonthViewUInull to indicate the absence of the previous year button.protected javax.swing.JButton createNextYearButton()
null to indicate the absence of the next year button.
createNextYearButton in class AbstractMonthViewUInull to indicate the absence of the next year button.protected javax.swing.JButton createPreviousMonthButton()
null to indicate the absence of the previous month button.
createPreviousMonthButton in class AbstractMonthViewUInull to indicate the absence of the previous month button.protected javax.swing.JButton createNextMonthButton()
null to indicate the absence of the next month button.
createNextMonthButton in class AbstractMonthViewUInull to indicate the absence of the next month button.protected javax.swing.JComponent createTodayComponent()
null to indicate the absence of the today label.
createTodayComponent in class AbstractMonthViewUInull to indicate the absence of the today label.protected javax.swing.JComponent createNoneComponent()
null to indicate the absence of the none label.
createNoneComponent in class AbstractMonthViewUInull to indicate the absence of the none label.protected JMonth createMonth()
JMonthView component is (for now) a one month calendar.
This method creates the component that represents the month.
createMonth in class AbstractMonthViewUIprotected void updateMonthUI()
AbstractMonthViewUIJMonth objects from
the JMonthView.
updateMonthUI in class AbstractMonthViewUIprotected void installListeners()
JMonthView component.
installListeners in class AbstractMonthViewUIprotected DateSelectionListener createDateSelectionListener()
protected MonthModelListener createMonthModelListener()
protected java.awt.event.MouseListener createTodayMouseListener()
protected java.awt.event.MouseListener createNoneMouseListener()
protected void uninstallComponents()
uninstallComponents in class AbstractMonthViewUIprotected void uninstallListeners()
uninstallListeners in class AbstractMonthViewUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
protected void updateFont()
AbstractMonthViewUIJMonthView components.
updateFont in class AbstractMonthViewUIprotected void updateLocale()
AbstractMonthViewUIJMonthView components.
updateLocale in class AbstractMonthViewUIprotected void updateTimeZone()
AbstractMonthViewUI
updateTimeZone in class AbstractMonthViewUIprotected void updateEnabled()
AbstractMonthViewUIJMonthView.
updateEnabled in class AbstractMonthViewUIprotected void updateRenderer()
AbstractMonthViewUIJMonthView components.
updateRenderer in class AbstractMonthViewUIprotected void updateMonthBackground()
AbstractMonthViewUI
updateMonthBackground in class AbstractMonthViewUIprotected void updateForeground()
AbstractMonthViewUI
updateForeground in class AbstractMonthViewUIprotected void updateTitleBackground()
AbstractMonthViewUI
updateTitleBackground in class AbstractMonthViewUIprotected void updateTitleForeground()
AbstractMonthViewUI
updateTitleForeground in class AbstractMonthViewUIprotected void updateTrailingForeground()
AbstractMonthViewUI
updateTrailingForeground in class AbstractMonthViewUIprotected void updateGridColor()
AbstractMonthViewUI
updateGridColor in class AbstractMonthViewUIprotected void updateWeekNumbersVisible()
AbstractMonthViewUI
updateWeekNumbersVisible in class AbstractMonthViewUIprotected void updateWeekNamesVisible()
AbstractMonthViewUI
updateWeekNamesVisible in class AbstractMonthViewUIprotected void updateHorizontalLinesVisible()
AbstractMonthViewUI
updateHorizontalLinesVisible in class AbstractMonthViewUIprotected void updateVerticalLinesVisible()
AbstractMonthViewUI
updateVerticalLinesVisible in class AbstractMonthViewUIprotected void updateDatesOrientation()
AbstractMonthViewUI
updateDatesOrientation in class AbstractMonthViewUIprotected void updateDisplayToday()
AbstractMonthViewUI
updateDisplayToday in class AbstractMonthViewUIprotected void updateNoneButtonVisible()
AbstractMonthViewUI
updateNoneButtonVisible in class AbstractMonthViewUIprotected void updateDateSelectionModel()
AbstractMonthViewUI
updateDateSelectionModel in class AbstractMonthViewUIprotected void updateToggleDateSelectionEnabled()
AbstractMonthViewUI
updateToggleDateSelectionEnabled in class AbstractMonthViewUIprotected void updateTrailingNextEnabled()
AbstractMonthViewUI
updateTrailingNextEnabled in class AbstractMonthViewUIprotected void updateTrailingPreviousEnabled()
AbstractMonthViewUI
updateTrailingPreviousEnabled in class AbstractMonthViewUIprotected void updateWeekLabelsHighlight()
AbstractMonthViewUI
updateWeekLabelsHighlight in class AbstractMonthViewUIprotected void updateMonthModel()
updateMonthModel in class AbstractMonthViewUIprotected void updateWeekModel()
updateWeekModel in class AbstractMonthViewUIprotected void updateRowsColumns()
AbstractMonthViewUI
updateRowsColumns in class AbstractMonthViewUI
|
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.