org.jdesktop.swingx.plaf
public abstract class DatePickerUI extends javax.swing.plaf.ComponentUI
Responsible for keeping the date property of all participants synchronized at all "stable" points in their life-cycle. That is the following invariant is guaranteed:
Date selected = datePicker.getMonthView().getSelectedDate();
assertEquals(selected, datePicker.getDate());
assertEquals(selected, datePicker.getEditor().getValue());
Constructor and Description |
---|
DatePickerUI() |
Modifier and Type | Method and Description |
---|---|
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.
|
abstract java.util.Date |
getSelectableDate(java.util.Date date)
Checks the given date for validity for selection.
|
public int getBaseline(int width, int height)
width
- Width of the component to determine baseline for.height
- Height of the component to determine baseline for.public abstract java.util.Date getSelectableDate(java.util.Date date) throws java.beans.PropertyVetoException
date
- date to checkjava.beans.PropertyVetoException
- if the given date is not valid for
selection