|
Java Date Picker v3.2 | |||||||||
| 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
Defines the general structure that is used by subclasses to implement the
actual UI delegate for JMonthView.
Such a delegate uses a month, a
today button, a
none button and two month scrolling buttons
(next,
previous). Of all these components, only
the month is required, the other are optional.
BasicMonthUI| Nested Class Summary | |
class |
AbstractMonthViewUI.CalendarLayout
This layout manager is used to arrange components of a JMonthView. |
| Field Summary | |
protected JMonth |
month
|
protected JMonthView |
monthView
JMonthView component for which this UI delegate is installed. |
protected javax.swing.JButton |
nextMonthButton
Button that scroll to the next month. |
protected javax.swing.JLabel |
noneLabel
Label that controls the selection of no date. |
protected javax.swing.JButton |
previousMonthButton
Button that scroll to the previous month. |
protected javax.swing.JLabel |
todayLabel
Label that displays the today date. |
| Constructor Summary | |
AbstractMonthViewUI()
|
|
| Method Summary | |
protected java.awt.LayoutManager |
createLayout()
Creates a LayoutManager that manages the month scrolling
buttons, the actual months of the monthView, the
today and none labels. |
protected abstract JMonth |
createMonth()
Creates the component that represents the calendar month. |
protected abstract javax.swing.JButton |
createNextMonthButton()
Creates the button that scrolls the month in view to the next one. |
protected abstract javax.swing.JLabel |
createNoneLabel()
Creates the component that represents the none label. |
protected abstract javax.swing.JButton |
createPreviousMonthButton()
Creates the button that scrolls the month in view to the previous one. |
protected abstract javax.swing.JLabel |
createTodayLabel()
Creates the component that represents the today label. |
protected void |
installComponents()
Installs all the components needed by JMonthView to implement its
behavior. |
protected void |
installDefaults()
Installs the default font and colors on the JMonthView component. |
protected void |
installKeyboardActions()
Installs the keyboard actions available for the JMonthView. |
protected void |
installListeners()
Attaches listeners to the JMonth component. |
void |
installUI(javax.swing.JComponent c)
Registers all the UI stuff needed to make the specified component work. |
protected void |
uninstallComponents()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
Uninstalls all registered listeners. |
void |
uninstallUI(javax.swing.JComponent c)
|
protected abstract void |
updateDateSelectionModel()
Updates the selection model for the components of the monthView |
protected abstract void |
updateDisplayToday()
Specifies whether the monthView displays the today button or not. |
protected abstract void |
updateEmptySelectionAllowed()
Specifies whether the monthView displays the none button or not. |
protected abstract void |
updateEnabled()
Updates the enabled state of the children components based on the enabled state of the JMonthView. |
protected abstract void |
updateFont()
Updates the font for the JMonthView components. |
protected abstract void |
updateForeground()
Updates the foreground color of the monthView |
protected abstract void |
updateGridColor()
|
protected abstract void |
updateHorizontalLinesVisible()
|
protected abstract void |
updateLocale()
Updates the locale for the JMonthView components. |
protected abstract void |
updateMonthBackground()
Updates the background color of the monthView |
protected abstract void |
updateMonthModel()
|
protected abstract void |
updateRenderer()
|
protected abstract void |
updateTitleBackground()
Updates the title background color of the monthView |
protected abstract void |
updateTitleForeground()
Updates the title foreground color of the monthView |
protected abstract void |
updateTrailingForeground()
Updates the trailing foreground color of the monthView |
protected abstract void |
updateVerticalLinesVisible()
|
protected abstract void |
updateWeekNamesVisible()
Specifies whether the monthView displays the week names or not. |
protected abstract void |
updateWeekNumbersVisible()
Specifies whether the monthView displays the week numbers or not. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, createUI, 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 |
| Field Detail |
protected JMonthView monthView
JMonthView component for which this UI delegate is installed.
protected javax.swing.JButton previousMonthButton
createPreviousMonthButton()protected javax.swing.JButton nextMonthButton
createNextMonthButton()protected javax.swing.JLabel todayLabel
createTodayLabel()protected javax.swing.JLabel noneLabel
createNoneLabel()protected JMonth month
| Constructor Detail |
public AbstractMonthViewUI()
| Method Detail |
public void installUI(javax.swing.JComponent c)
installDefaults(),
installComponents(),
installListeners(),
installKeyboardActions()protected void installDefaults()
JMonthView component.
protected void installComponents()
JMonthView to implement its
behavior. This implementation uses a title and an actual month for this.
createLayout(),
createPreviousMonthButton(),
createNextMonthButton(),
createTodayLabel(),
createNoneLabel(),
createMonth()protected java.awt.LayoutManager createLayout()
LayoutManager that manages the month scrolling
buttons, the actual months of the monthView, the
today and none labels. These children must be
added with a constraint that identifies their role: "Previous", "Next",
"Today", "None" and "Month".
The default layout manager can handle the absence of any of these children.
JMonthView components.installComponents()protected abstract javax.swing.JButton createPreviousMonthButton()
Creates the button that scrolls the month in view to the previous one.
You can override it to create a different button. If null
is returned, then this component is ignored and it is not added to JMonthView.
protected abstract javax.swing.JButton createNextMonthButton()
Creates the button that scrolls the month in view to the next one.
You can override it to create a different button. If null
is returned, then this component is ignored and it is not added to JMonthView.
protected abstract javax.swing.JLabel createTodayLabel()
Creates the component that represents the today label.
You can override it to create a different label. If null
is returned, then this component is ignored and it is not added to JMonthView.
protected abstract javax.swing.JLabel createNoneLabel()
Creates the component that represents the none label.
You can override it to create a different label. If null
is returned, then this component is ignored and it is not added to JMonthView.
protected abstract JMonth createMonth()
Creates the component that represents the calendar month.
protected void installListeners()
JMonth component.
protected void installKeyboardActions()
JMonthView.
public void uninstallUI(javax.swing.JComponent c)
protected void uninstallListeners()
protected void uninstallComponents()
protected void uninstallKeyboardActions()
protected abstract void updateFont()
JMonthView components.
protected abstract void updateLocale()
JMonthView components.
protected abstract void updateEnabled()
JMonthView.
protected abstract void updateRenderer()
protected abstract void updateMonthBackground()
protected abstract void updateForeground()
protected abstract void updateTitleBackground()
protected abstract void updateTitleForeground()
protected abstract void updateTrailingForeground()
protected abstract void updateGridColor()
protected abstract void updateWeekNumbersVisible()
protected abstract void updateWeekNamesVisible()
protected abstract void updateHorizontalLinesVisible()
protected abstract void updateVerticalLinesVisible()
protected abstract void updateDisplayToday()
protected abstract void updateEmptySelectionAllowed()
protected abstract void updateDateSelectionModel()
protected abstract void updateMonthModel()
|
Java Date Picker v3.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Visit www.javadatepicker.com for further information or send us your suggestions.
Copyright © 2003-2004 Stand By Soft Ltd. All Rights Reserved.