|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmseries.Calendar.MDateSelector
public class MDateSelector
The controller for the DateSelector. This class is the programming interface and should be the only class in the package of which knowledge is needed in order to use the MDateSelector.
| Field Summary | |
|---|---|
protected Color[] |
background
|
protected Color[] |
foreground
|
| Constructor Summary | |
|---|---|
MDateSelector(Date min,
Date max)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
void |
dataChanged(MMonthEvent e)
Reacts to all changes in the data model (MMonth) which is given by the event type. |
int |
getChangerStyle()
Deprecated. use setConstraints and a constraints object instead |
MDateSelectorConstraints |
getConstraints()
Gets the constraints object that contains the parameters used to configure the pop up calendar |
MDateSelectorPanel |
getDisplay()
Gets a panel which is a self contained component to represent the calendar grid and scrollbar, defaults to current date |
MDateSelectorPanel |
getDisplay(Date date)
Gets a panel which is a self contained component to represent the calendar grid and scrollbar |
Date |
getValue()
Returns the currently selected date value |
void |
setBackground(int day,
Color color)
Deprecated. use setConstraints and a constraints object instead |
void |
setChangerStyle(int style)
Deprecated. use setConstraints and a constraints object instead |
void |
setConstraints(MDateSelectorConstraints c)
Sets the constraints object that contains the parameters used to configure the pop up calendar |
void |
setDateFormatter(DateFormat userDf)
The passed date format object is used to format the date displayed at the top of the calendar popup |
void |
setFirstDay(int firstDay)
Deprecated. use setConstraints and a constraints object instead |
void |
setForeground(int day,
Color color)
Deprecated. use setConstraints and a constraints object instead |
void |
setImageFile(String imageFile)
Deprecated. use setConstraints and a constraints object instead |
void |
setMaximum(Date max)
Sets the maximum date value allowed |
void |
setMinimum(Date min)
Sets the minimum date value allowed |
void |
setTextLocalizer(ResourceBundle rb)
Deprecated. use setConstraints and a constraints object instead |
void |
show(Component parent,
Point pnt,
Date date)
Makes the calendar visible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Color[] background
protected Color[] foreground
| Constructor Detail |
|---|
public MDateSelector(Date min,
Date max)
| Method Detail |
|---|
public MDateSelectorPanel getDisplay()
public void setImageFile(String imageFile)
public void setForeground(int day,
Color color)
public void setBackground(int day,
Color color)
public void setConstraints(MDateSelectorConstraints c)
c - the constraints objectgetConstraints()public MDateSelectorConstraints getConstraints()
setConstraints(mseries.Calendar.MDateSelectorConstraints)public MDateSelectorPanel getDisplay(Date date)
date - the date to display in the calendar
public void setChangerStyle(int style)
public int getChangerStyle()
public void show(Component parent,
Point pnt,
Date date)
parent - the parent or containerpnt - the position of the popup in the containerdate - the initial date to displaypublic void setMinimum(Date min)
min - the earliest possible datepublic void setMaximum(Date max)
max - the earliest possible datepublic void setFirstDay(int firstDay)
firstDay - a day constant from java.util.Calendar such as Calendar.SUNDAYpublic void setTextLocalizer(ResourceBundle rb)
rb - a ResourceBundle to do the localizationpublic void setDateFormatter(DateFormat userDf)
userDf - a DateFormat object configured to format as requiredpublic void dataChanged(MMonthEvent e)
dataChanged in interface MMonthListenerpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic Date getValue()
|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||