|
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.AbstractDateFieldUI
Defines the general structure that is used by subclasses to implement the
actual UI delegate for JDateField.
Such a delegate uses a simple text field to
edit the date.
This UI delegate can be configured using the JDateEditComponent.clearOnEdit client property. If this property is set to Boolean.TRUE, the date is cleared when the user initiates an edit with the keyboard. But, if the user initiates an edit by clicking in the field with the mouse, the date is NOT cleared and the cursor is placed exactly where the user clicked. By default, this property is not set.
JDateField dateField = new JDateField();
dateField.putClientProperty("JDateEditComponent.clearOnEdit", Boolean.TRUE);
BasicDateFieldUI| Field Summary | |
protected JDateField |
dateField
Component for which this UI is registered. |
protected javax.swing.JTextField |
textField
Text field that is used for editing. |
| Constructor Summary | |
AbstractDateFieldUI()
|
|
| Method Summary | |
protected java.lang.Object[] |
createDefaults()
Creates a list of default values for some of the properties of JDateField. |
protected abstract java.awt.LayoutManager |
createLayout()
Creates a LayoutManager that manages the text field
used to edit the date. |
protected abstract javax.swing.JTextField |
createTextField()
Creates the text field used to edit the date. |
protected void |
initializeDefaults()
Registers the default values created for some of the properties of JDateField with the UIManager. |
protected void |
installComponents()
Installs all the components needed by JDateField to implement its
behavior. |
protected void |
installDefaults()
Installs the default font and colors on the JDateField component. |
protected void |
installKeyboardActions()
Registers all keyboard actions on the JDateField. |
protected void |
installListeners()
Creates and installs the listeners for the date field. |
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 |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
Unregisters all keyboard actions on the JDateField. |
protected void |
uninstallListeners()
Uninstalls the listeners from the date field. |
void |
uninstallUI(javax.swing.JComponent c)
Unregisters all the UI stuff needed to make the specified component work. |
protected abstract void |
updateBackground()
Updates the background color for the date field. |
protected abstract void |
updateEnabled()
Updates the enabled state of the children components based on the enabled state of the JDateField. |
protected abstract void |
updateFont()
Updates the font for the date field. |
protected abstract void |
updateForeground()
Updates the foreground color for the date field. |
protected abstract void |
updateToolTipText()
Updates the tooltip text for the date field. |
| 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 JDateField dateField
protected javax.swing.JTextField textField
createTextField()| Constructor Detail |
public AbstractDateFieldUI()
| Method Detail |
protected java.lang.Object[] createDefaults()
Creates a list of default values for some of the properties of
JDateField. 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:
JDateFieldinitializeDefaults(),
installDefaults()protected void initializeDefaults()
Registers the default values created for some of the properties of
JDateField with the UIManager.
installDefaults()public void installUI(javax.swing.JComponent c)
installDefaults(),
installComponents(),
installListeners(),
installKeyboardActions()protected void installDefaults()
JDateField component.
protected void installComponents()
JDateField to implement its
behavior.
createLayout(),
createTextField()protected abstract java.awt.LayoutManager createLayout()
LayoutManager that manages the text field
used to edit the date.
protected abstract javax.swing.JTextField createTextField()
protected void installListeners()
protected void installKeyboardActions()
JDateField.
public void uninstallUI(javax.swing.JComponent c)
uninstallKeyboardActions(),
uninstallListeners(),
uninstallComponents()protected void uninstallKeyboardActions()
JDateField.
protected void uninstallListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
uninstallUI(JComponent)protected abstract void updateEnabled()
JDateField.
protected abstract void updateFont()
protected abstract void updateForeground()
protected abstract void updateBackground()
protected abstract void updateToolTipText()
|
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.