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
The basic implementation of aDatePickerUI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classBasicDatePickerUI.EditorCancelActionThe wrapper for the editor cancel action.classBasicDatePickerUI.PopupRemover
-
Constructor Summary
Constructors Constructor and Description BasicDatePickerUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)intgetBaseline(int width, int height)Get the baseline for the specified component, or a value less than 0 if the baseline can not be determined.java.awt.DimensiongetMinimumSize(javax.swing.JComponent c)java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)java.util.DategetSelectableDate(java.util.Date date)Checks the given date for validity for selection.voidhidePopup()PENDING: widened access for debugging - need api to control popup visibility?voidinstallUI(javax.swing.JComponent c)booleanisPopupVisible()voidtoggleShowPopup()Toggles the popups visibility after preparing internal state.voiduninstallUI(javax.swing.JComponent c)
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.ComponentUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSizein classjavax.swing.plaf.ComponentUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSizein classjavax.swing.plaf.ComponentUI
-
getBaseline
public int getBaseline(int width, int height)Description copied from class:DatePickerUIGet 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:
getBaselinein classDatePickerUI- 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
-
getSelectableDate
public java.util.Date getSelectableDate(java.util.Date date) throws java.beans.PropertyVetoExceptionChecks the given date for validity for selection. If valid, returns the date as appropriate in the picker's context, otherwise throws a propertyVetoException. Note that the returned date might be different from the input date, f.i. the time fields might be cleared. The input date is guaranteed to be unchanged.- Specified by:
getSelectableDatein classDatePickerUI- Parameters:
date- date to check- Returns:
- the date as allowed in the context of the picker.
- Throws:
java.beans.PropertyVetoException- if the given date is not valid for selection
-
hidePopup
public void hidePopup()
PENDING: widened access for debugging - need api to control popup visibility?
-
isPopupVisible
public boolean isPopupVisible()
-
toggleShowPopup
public void toggleShowPopup()
Toggles the popups visibility after preparing internal state.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG