swingx
Version 2005-08-19

org.jdesktop.swingx.plaf.basic
Class BasicDatePickerUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.jdesktop.swingx.plaf.DatePickerUI
          extended by org.jdesktop.swingx.plaf.basic.BasicDatePickerUI

public class BasicDatePickerUI
extends DatePickerUI


Nested Class Summary
protected  class BasicDatePickerUI.BasicDatePickerPopup
          Popup component that shows a JXMonthView component along with controlling buttons to allow traversal of the months.
 
Field Summary
protected  JXDatePicker datePicker
           
protected  MouseListener mouseListener
           
protected  MouseMotionListener mouseMotionListener
           
protected  PropertyChangeListener propertyChangeListener
           
 
Constructor Summary
BasicDatePickerUI()
           
 
Method Summary
protected  JFormattedTextField createEditor()
          Creates the editor used to edit the date selection.
protected  LayoutManager createLayoutManager()
           
protected  MouseListener createMouseListener()
           
protected  MouseMotionListener createMouseMotionListener()
           
protected  JButton createPopupButton()
           
protected  PropertyChangeListener createPropertyChangeListener()
           
static ComponentUI createUI(JComponent c)
           
 int getBaseline(int width, int height)
          Get the baseline for the specified component, or a value less than 0 if the baseline can not be determined.
 Dimension getMinimumSize(JComponent c)
          
 Dimension getPreferredSize(JComponent c)
          
protected  void installComponents()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
 void installUI(JComponent c)
           
protected  void uninstallComponents()
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datePicker

protected JXDatePicker datePicker

propertyChangeListener

protected PropertyChangeListener propertyChangeListener

mouseListener

protected MouseListener mouseListener

mouseMotionListener

protected MouseMotionListener mouseMotionListener
Constructor Detail

BasicDatePickerUI

public BasicDatePickerUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

installComponents

protected void installComponents()

uninstallComponents

protected void uninstallComponents()

installDefaults

protected void installDefaults()

uninstallDefaults

protected void uninstallDefaults()

installKeyboardActions

protected void installKeyboardActions()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()

createLayoutManager

protected LayoutManager createLayoutManager()

createMouseListener

protected MouseListener createMouseListener()

createMouseMotionListener

protected MouseMotionListener createMouseMotionListener()

createEditor

protected JFormattedTextField createEditor()
Creates the editor used to edit the date selection. Subclasses should override this method if they want to substitute in their own editor.

Returns:
an instance of a JFormattedTextField

createPopupButton

protected JButton createPopupButton()

getMinimumSize

public Dimension getMinimumSize(JComponent c)

Overrides:
getMinimumSize in class ComponentUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)

Overrides:
getPreferredSize in class ComponentUI

getBaseline

public int getBaseline(int width,
                       int height)
Description copied from class: DatePickerUI
Get the baseline for the specified component, or a value less than 0 if the baseline can not be determined. The baseline is measured from the top of the component.

Overrides:
getBaseline in class DatePickerUI
Parameters:
width - Width of the component to determine baseline for.
height - Height of the component to determine baseline for.
Returns:
baseline for the specified component

swingx
Version 2005-08-19