org.jdesktop.swingx.plaf.basic
Class BasicDatePickerUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.jdesktop.swingx.plaf.DatePickerUI
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
datePicker
protected JXDatePicker datePicker
propertyChangeListener
protected PropertyChangeListener propertyChangeListener
mouseListener
protected MouseListener mouseListener
mouseMotionListener
protected MouseMotionListener mouseMotionListener
BasicDatePickerUI
public BasicDatePickerUI()
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