|
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
Defines the general structure that is used by subclasses to implement the
actual UI delegate for JMonth.
Such a delegate has a body section where the current
month is displayed and an optional title to display
month related information.>
A delegate like this can be configured to display or not selected weeks or week days as selected using the JMonth.isWeekLabelsHighlighted client property. By default, this property is not set.
JMonth month = new JMonth();
month.putClientProperty("JMonth.isWeekLabelsHighlighted", Boolean.TRUE);
BasicMonthUI| Field Summary | |
protected javax.swing.JComponent |
body
Component that represents the actual monthView month. |
protected JMonth |
month
JMonth component for which this UI delegate is installed. |
protected javax.swing.JComponent |
title
Component that groups the title month and title year components. |
| Constructor Summary | |
AbstractMonthUI()
|
|
| Method Summary | |
protected abstract javax.swing.JComponent |
createBody()
Creates the component that represents the actual calendar month. |
protected java.lang.Object[] |
createDefaults()
Creates a list of default values for some of the properties of JMonth. |
protected java.awt.LayoutManager |
createLayout()
Creates a LayoutManager that manages the title,
and month children of JMonth. |
protected abstract javax.swing.JComponent |
createTitle()
Creates the title component that displays information about the current month specified in JMonth. |
protected void |
initializeDefaults()
Registers the default values created for some of the properties of JMonth with the UIManager. |
protected void |
installComponents()
Installs all the components needed by JMonth to implement its
behavior. |
protected void |
installDefaults()
Installs the default font and colors on the JMonth component. |
protected void |
installKeyboardActions()
Register all keyboard actions on the JMonth. |
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()
Uninstalls all registered components. |
protected void |
uninstallKeyboardActions()
Uninstalls the keyboard actions associated with the JMonth
component. |
protected void |
uninstallListeners()
Detaches listeners from the JMonth component. |
void |
uninstallUI(javax.swing.JComponent c)
Unregisters all the UI stuff needed to make the specified component work. |
protected abstract void |
updateDatesOrientation()
Updates the settings when the orientation of the dates changes. |
protected abstract void |
updateEnabled()
Updates the enabled state of the children components based on the enabled state of the JMonth. |
protected abstract void |
updateFont()
Updates the font for the JMonth components. |
protected abstract void |
updateForeground()
Updates the foreground color for the dates. |
protected abstract void |
updateGridColor()
Updates the month grid. |
protected abstract void |
updateHorizontalLinesVisible()
Updates the visibility of the horizontal lines. |
protected abstract void |
updateLocale()
Updates the locale for the JMonth components. |
protected abstract void |
updateMonthBackground()
Updates the background color for the month. |
protected abstract void |
updateMonthModel()
Updates the settings when the month model changes. |
protected abstract void |
updateTimeZone()
Updates the settings when the time zone changes. |
protected abstract void |
updateTitle()
Updates the title information that identifies the current month. |
protected abstract void |
updateTitleBackground()
Updates the color for the title background. |
protected abstract void |
updateTitleForeground()
Updates the color for the title foreground. |
protected abstract void |
updateTrailingForeground()
Updates the foreground color for the trailing dates. |
protected abstract void |
updateVerticalLinesVisible()
Updates the visibility of the vertical lines. |
protected abstract void |
updateWeekModel()
Updates the settings when the week model changes. |
protected abstract void |
updateWeekNamesVisible()
Updates the visibility of the week days names. |
protected abstract void |
updateWeekNumbersVisible()
Updates the visibility of the week numbers. |
| 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 JMonth month
JMonth component for which this UI delegate is installed.
protected javax.swing.JComponent title
createTitle()protected javax.swing.JComponent body
createBody()| Constructor Detail |
public AbstractMonthUI()
| Method Detail |
protected java.lang.Object[] createDefaults()
Creates a list of default values for some of the properties of
JMonth. These values are instances of objects that
implement the UIResource interface. For instance, default
fonts are created using the FontUIResource class while
colors using the ColorUIResource class.
The list is structured as follows: [key1, value1, key2, value2, ...] where the keys identify the properties and the values indicate the default values for these properties.
The keys returned in the list by this method are:
JMonthinitializeDefaults(),
installDefaults()protected void initializeDefaults()
Registers the default values created for some of the properties of
JMonth with the UIManager.
installDefaults()public void installUI(javax.swing.JComponent c)
installDefaults(),
installComponents(),
installListeners(),
installKeyboardActions()protected void installDefaults()
JMonth component.
protected void installComponents()
JMonth to implement its
behavior. This implementation uses a title and an actual month for this.
createLayout(),
createTitle(),
createBody()protected java.awt.LayoutManager createLayout()
LayoutManager that manages the title,
and month children of JMonth. These two children must be
added with a constraint that identifies their role: "Title" and "Month".
The default layout manager can handle the absence of any of these children.
createBody(),
createTitle()protected abstract javax.swing.JComponent createTitle()
Creates the title component that displays information about the current
month specified in JMonth. This information should refer to
the current month and year.
You can override it to create whatever title you find fit. If
null is returned, then this component is ignored and it is
not added to JMonth.
JMonth status information or
null to indicate a missing title.installComponents()protected abstract javax.swing.JComponent createBody()
Creates the component that represents the actual calendar month.
protected void installListeners()
JMonth component.
protected void installKeyboardActions()
JMonth.
public void uninstallUI(javax.swing.JComponent c)
uninstallKeyboardActions(),
uninstallListeners(),
uninstallComponents()protected void uninstallComponents()
uninstallUI(JComponent)protected void uninstallListeners()
protected void uninstallKeyboardActions()
JMonth
component.
protected abstract void updateFont()
JMonth components.
protected abstract void updateLocale()
JMonth components.
protected abstract void updateEnabled()
JMonth.
protected abstract void updateGridColor()
protected abstract void updateHorizontalLinesVisible()
protected abstract void updateVerticalLinesVisible()
protected abstract void updateWeekNumbersVisible()
protected abstract void updateWeekNamesVisible()
protected abstract void updateTitle()
protected abstract void updateTitleForeground()
protected abstract void updateTitleBackground()
protected abstract void updateForeground()
protected abstract void updateMonthBackground()
protected abstract void updateTrailingForeground()
protected abstract void updateMonthModel()
protected abstract void updateWeekModel()
protected abstract void updateDatesOrientation()
protected abstract void updateTimeZone()
|
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.