org.jfree.ui
public class DateChooserPanel extends JPanel implements ActionListener
| Constructor Summary | |
|---|---|
| DateChooserPanel()
Constructs a new date chooser panel, using today's date as the initial
selection. | |
| DateChooserPanel(Calendar calendar, boolean controlPanel)
Constructs a new date chooser panel.
| |
| Method Summary | |
|---|---|
| void | actionPerformed(ActionEvent e)
Handles action-events from the date panel.
|
| Color | getChosenDateButtonColor()
Returns the color for the currently selected date.
|
| Color | getChosenMonthButtonColor()
Returns the color for the buttons representing the current month.
|
| Color | getChosenOtherButtonColor()
Returns the color for the buttons representing the other months.
|
| Date | getDate()
Returns the date selected in the panel.
|
| int | getYearSelectionRange()
Returns the range of years available for selection (defaults to 20).
|
| void | setChosenDateButtonColor(Color chosenDateButtonColor)
Redefines the color for the currently selected date.
|
| void | setChosenMonthButtonColor(Color chosenMonthButtonColor)
Defines the color for the buttons representing the current month.
|
| void | setChosenOtherButtonColor(Color chosenOtherButtonColor)
Redefines the color for the buttons representing the other months.
|
| void | setDate(Date theDate)
Sets the date chosen in the panel.
|
| void | setYearSelectionRange(int yearSelectionRange)
Sets the range of years available for selection.
|
Parameters: calendar the calendar controlling the date. controlPanel a flag that indicates whether or not the 'today' button should appear on the panel.
Parameters: e information about the event that occurred.
Returns: a color.
Returns: the color for the current month.
Returns: a color.
Returns: the selected date.
Returns: The range.
Parameters: chosenDateButtonColor the new color
Parameters: chosenMonthButtonColor the color for the current month.
Parameters: chosenOtherButtonColor a color.
Parameters: theDate the new date.
Parameters: yearSelectionRange the range.