JDatePicker v4.3

com.standbysoft.component.date.swing.plaf.basic
Class BasicDateFieldUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended bycom.standbysoft.component.date.swing.plaf.DateUI
          extended bycom.standbysoft.component.date.swing.plaf.basic.AbstractDateFieldUI
              extended bycom.standbysoft.component.date.swing.plaf.basic.BasicDateFieldUI

public class BasicDateFieldUI
extends AbstractDateFieldUI

Implements only what is strictly necessary for a JDateField UI delegate. This means that a simple text field will be used to edit the date.

If you want to create a custom UI delegate for JDateField, then the best solution is to extend this class.


Field Summary
 
Fields inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractDateFieldUI
dateField, textField
 
Constructor Summary
BasicDateFieldUI()
           
 
Method Summary
protected  java.awt.LayoutManager createLayout()
          Creates a LayoutManager that manages the text field used to edit the date.
protected  javax.swing.JTextField createTextField()
          Creates the text field used to edit the date.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installComponents()
          Installs all the components needed by JDateField to implement its behavior.
protected  void installListeners()
          Creates and installs the listeners for the date field.
protected  void uninstallComponents()
          Uninstalls all registered components.
protected  void uninstallListeners()
          Uninstalls the listeners from the date field.
protected  void updateBackground()
          Updates the background color for the date field.
protected  void updateEnabled()
          Updates the enabled state of the children components based on the enabled state of the JDateField.
protected  void updateFont()
          Updates the font for the date field.
protected  void updateForeground()
          Updates the foreground color for the date field.
protected  void updateToolTipText()
          Updates the tooltip text for the date field.
 
Methods inherited from class com.standbysoft.component.date.swing.plaf.basic.AbstractDateFieldUI
createDefaults, initializeDefaults, installDefaults, installKeyboardActions, installUI, uninstallDefaults, 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

BasicDateFieldUI

public BasicDateFieldUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

createLayout

protected java.awt.LayoutManager createLayout()
Description copied from class: AbstractDateFieldUI
Creates a LayoutManager that manages the text field used to edit the date.

Specified by:
createLayout in class AbstractDateFieldUI
Returns:
a LayoutManager for the date field.

createTextField

protected javax.swing.JTextField createTextField()
Description copied from class: AbstractDateFieldUI
Creates the text field used to edit the date.

Specified by:
createTextField in class AbstractDateFieldUI
Returns:
text field used to edit the date.

installComponents

protected void installComponents()
Description copied from class: AbstractDateFieldUI
Installs all the components needed by JDateField to implement its behavior.

Overrides:
installComponents in class AbstractDateFieldUI
See Also:
AbstractDateFieldUI.createLayout(), AbstractDateFieldUI.createTextField()

uninstallComponents

protected void uninstallComponents()
Description copied from class: AbstractDateFieldUI
Uninstalls all registered components. You should override this method if you extend this class and provide your own components.

Overrides:
uninstallComponents in class AbstractDateFieldUI
See Also:
AbstractDateFieldUI.uninstallUI(JComponent)

installListeners

protected void installListeners()
Description copied from class: AbstractDateFieldUI
Creates and installs the listeners for the date field. This method is called when the UI is installed.

Overrides:
installListeners in class AbstractDateFieldUI

uninstallListeners

protected void uninstallListeners()
Description copied from class: AbstractDateFieldUI
Uninstalls the listeners from the date field. This method is called when the UI is uninstalled.

Overrides:
uninstallListeners in class AbstractDateFieldUI

updateEnabled

protected void updateEnabled()
Description copied from class: AbstractDateFieldUI
Updates the enabled state of the children components based on the enabled state of the JDateField.

Specified by:
updateEnabled in class AbstractDateFieldUI

updateFont

protected void updateFont()
Description copied from class: AbstractDateFieldUI
Updates the font for the date field.

Specified by:
updateFont in class AbstractDateFieldUI

updateForeground

protected void updateForeground()
Description copied from class: AbstractDateFieldUI
Updates the foreground color for the date field.

Specified by:
updateForeground in class AbstractDateFieldUI

updateBackground

protected void updateBackground()
Description copied from class: AbstractDateFieldUI
Updates the background color for the date field.

Specified by:
updateBackground in class AbstractDateFieldUI

updateToolTipText

protected void updateToolTipText()
Description copied from class: AbstractDateFieldUI
Updates the tooltip text for the date field.

Specified by:
updateToolTipText in class AbstractDateFieldUI

JDatePicker v4.3

Visit www.jdatepicker.com for further information or send us your suggestions.

Copyright © 2003-2007 Stand By Soft Ltd. All Rights Reserved.