|
||||||||||
| 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.pentaho.reporting.engine.classic.core.modules.gui.base.date.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.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
static String |
PROPERTY_DATE
Deprecated. |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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()
Deprecated. Constructs a new date chooser panel, using today's date as the initial selection. |
|
DateChooserPanel(Calendar calendar,
boolean controlPanel)
Deprecated. Constructs a new date chooser panel. |
|
| Method Summary | |
|---|---|
Color |
getChosenDateButtonColor()
Deprecated. Returns the color for the currently selected date. |
Color |
getChosenMonthButtonColor()
Deprecated. Returns the color for the buttons representing the current month. |
Color |
getChosenOtherButtonColor()
Deprecated. Returns the color for the buttons representing the other months. |
Date |
getDate()
Deprecated. Returns the date selected in the panel. |
int |
getYearSelectionRange()
Deprecated. Returns the range of years available for selection (defaults to 20). |
void |
setChosenDateButtonColor(Color chosenDateButtonColor)
Deprecated. Redefines the color for the currently selected date. |
void |
setChosenMonthButtonColor(Color chosenMonthButtonColor)
Deprecated. Defines the color for the buttons representing the current month. |
void |
setChosenOtherButtonColor(Color chosenOtherButtonColor)
Deprecated. Redefines the color for the buttons representing the other months. |
void |
setDate(Date theDate)
Deprecated. Sets the date chosen in the panel. |
void |
setYearSelectionRange(int yearSelectionRange)
Deprecated. Sets the range of years available for selection. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_DATE
| 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 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 | |||||||||