com.toedter.calendar.demo
Class DateChooserPanel
JPanel
com.toedter.calendar.demo.DateChooserPanel
- PropertyChangeListener
public class DateChooserPanel
extends JPanel
implements PropertyChangeListener
A demonstration panel including several JDateChoosers.
$LastChangedRevision: 96 $, $LastChangedDate: 2006-05-12 18:19:35 +0200 (Fr, 12 Mai 2006) $
DateChooserPanel
public DateChooserPanel()
getDate
public Date getDate()
Returns the date. If the JDateChooser is started with an empty date and
no date is set by the user, null is returned.
getDateFormatString
public String getDateFormatString()
Gets the date format string.
- Returns the dateFormatString.
getLocale
public Locale getLocale()
Returns the locale of the first JDateChooser.
getMaxSelectableDate
public Date getMaxSelectableDate()
getMinSelectableDate
public Date getMinSelectableDate()
isEnabled
public boolean isEnabled()
propertyChange
public void propertyChange(PropertyChangeEvent evt)
setDate
public void setDate(Date date)
Sets the date. Fires the property change "date" if date != null.
setDateFormatString
public void setDateFormatString(String dfString)
Sets the date format string. E.g "MMMMM d, yyyy" will result in "July 21,
2004" if this is the selected date and locale is English.
dfString
- The dateFormatString to set.
setEnabled
public void setEnabled(boolean enabled)
setLocale
public void setLocale(Locale locale)
Sets the locale of the first 4 JDateChoosers.
setMaxSelectableDate
public void setMaxSelectableDate(Date date)
setMinSelectableDate
public void setMinSelectableDate(Date date)
Copyright B) 1999 - 2006 Kai Toedter.