|
||||||||||
| 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.SerialDateChooserPanel
public class SerialDateChooserPanel
A panel that allows the user to select a date.
This class is incomplete and untested. You should not use it yet...
| 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 | |
|---|---|
static Color |
DEFAULT_DATE_BUTTON_COLOR
The default background color for the selected date. |
static Color |
DEFAULT_MONTH_BUTTON_COLOR
The default background color for the current month. |
| 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 | |
|---|---|
SerialDateChooserPanel()
Constructs a new date chooser panel, using today's date as the initial selection. |
|
SerialDateChooserPanel(SerialDate date,
boolean controlPanel)
Constructs a new date chooser panel. |
|
SerialDateChooserPanel(SerialDate date,
boolean controlPanel,
Color dateButtonColor,
Color monthButtonColor)
Constructs a new date chooser panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Handles action-events from the date panel. |
protected Color |
getButtonColor(SerialDate targetDate)
Returns the button color according to the specified date. |
SerialDate |
getDate()
Returns the date selected in the panel. |
protected SerialDate |
getFirstVisibleDate()
Returns the first date that is visible in the grid. |
protected void |
refreshButtons()
Update the button labels and colors to reflect date selection. |
void |
setDate(SerialDate date)
Sets the date chosen in the panel. |
| 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 |
| Field Detail |
|---|
public static final Color DEFAULT_DATE_BUTTON_COLOR
public static final Color DEFAULT_MONTH_BUTTON_COLOR
| Constructor Detail |
|---|
public SerialDateChooserPanel()
public SerialDateChooserPanel(SerialDate date,
boolean controlPanel)
date - the date.controlPanel - a flag that indicates whether or not the 'today' button should
appear on the panel.
public SerialDateChooserPanel(SerialDate date,
boolean controlPanel,
Color dateButtonColor,
Color monthButtonColor)
date - the date.controlPanel - the control panel.dateButtonColor - the date button color.monthButtonColor - the month button color.| Method Detail |
|---|
public void setDate(SerialDate date)
date - the new date.public SerialDate getDate()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - information about the event that occurred.protected Color getButtonColor(SerialDate targetDate)
targetDate - the target date.
protected SerialDate getFirstVisibleDate()
protected void refreshButtons()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||