|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jfree.ui.DateChooserPanel
public class DateChooserPanel
A panel that allows the user to select a date.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| 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. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateChooserPanel()
public DateChooserPanel(Calendar calendar,
boolean controlPanel)
calendar - the calendar controlling the date.controlPanel - a flag that indicates whether or not the 'today'
button should appear on the panel.| Method Detail |
|---|
public void setDate(Date theDate)
theDate - the new date.public Date getDate()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - information about the event that occurred.public Color getChosenDateButtonColor()
public void setChosenDateButtonColor(Color chosenDateButtonColor)
chosenDateButtonColor - the new colorpublic Color getChosenMonthButtonColor()
public void setChosenMonthButtonColor(Color chosenMonthButtonColor)
chosenMonthButtonColor - the color for the current month.public Color getChosenOtherButtonColor()
public void setChosenOtherButtonColor(Color chosenOtherButtonColor)
chosenOtherButtonColor - a color.public int getYearSelectionRange()
public void setYearSelectionRange(int yearSelectionRange)
yearSelectionRange - the range.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||