|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmseries.Calendar.MMonth
public class MMonth
The business end of the DateSelector component. This class maintains the state of the the component
| Field Summary | |
|---|---|
protected Vector<MMonthListener> |
listeners
|
| Constructor Summary | |
|---|---|
MMonth()
|
|
MMonth(Date min,
Date max)
|
|
| Method Summary | |
|---|---|
void |
addMMonthListener(MMonthListener listener)
Registers the listeners of the table changes |
void |
addToMin(int increment)
Adds a number of months to the minimum date |
protected static int |
compDates(Date d1,
Calendar c2)
|
void |
exitEvent()
|
protected Date |
getAsDate(int r,
int c)
|
int |
getColumnCount()
|
Date |
getCurrentDate()
Returns the current date in the calendar. |
Point |
getCurrentPoint()
|
int |
getFirstDay()
|
Date |
getMaximum()
Returns the latest possible date the model can be set to |
Date |
getMinimum()
Returns the earliest possible date the model can be set to |
int |
getMonth()
returns the month index of the current calendar |
int |
getRowCount()
|
Object |
getValueAt(int r,
int c)
calculates the date in a particular cell based on the date at 0,0 (the start of the displayed calendar) and the cell being returned |
boolean |
isCellEditable(int r,
int c)
|
boolean |
isCurrentDate(int d,
int w)
|
boolean |
isInRange(Calendar date)
|
boolean |
isInRange(Date date)
|
void |
lostFocus()
|
void |
removeMMonthListener(MMonthListener listener)
Removes the listener from the registered list of listeners |
void |
setCurrentDate(int row,
int col)
Sets the current date in the model |
void |
setDate(Date inDate)
|
protected void |
setDMY(Date inDate)
Sets the date and preserves the time that the model previously has |
void |
setFirstDay(int first)
The first column on the calendar grid shows the dates for the day passed here. |
void |
setMaximum(Date max)
Sets the latest possible date for the calendar |
void |
setMinimum(Date min)
Sets the earliest possible date for the calendar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Vector<MMonthListener> listeners
| Constructor Detail |
|---|
public MMonth(Date min,
Date max)
public MMonth()
| Method Detail |
|---|
public void setFirstDay(int first)
first - a day constant from java.util.Calendar such as Calendar.SUNDAYpublic int getFirstDay()
protected void setDMY(Date inDate)
throws MDateOutOfRangeException
inDate - the new value whose Hour, Minute and Second elements are
ignored
MDateOutOfRangeException
public void setDate(Date inDate)
throws MDateOutOfRangeException
MDateOutOfRangeExceptionpublic void setMinimum(Date min)
min - the earliest possible datepublic Date getMinimum()
public void setMaximum(Date max)
max - the latest possible datepublic Date getMaximum()
public void addToMin(int increment)
throws MDateOutOfRangeException
increment - the number of months to add
MDateOutOfRangeExceptionpublic Date getCurrentDate()
public Point getCurrentPoint()
public void setCurrentDate(int row,
int col)
throws MDateOutOfRangeException
MDateOutOfRangeExceptionpublic int getMonth()
public int getColumnCount()
public int getRowCount()
public Object getValueAt(int r,
int c)
protected Date getAsDate(int r,
int c)
public void addMMonthListener(MMonthListener listener)
listener - - MMonthListenerpublic void removeMMonthListener(MMonthListener listener)
listener - - MMonthListenerpublic boolean isInRange(Date date)
public boolean isInRange(Calendar date)
public void exitEvent()
public void lostFocus()
public boolean isCellEditable(int r,
int c)
protected static int compDates(Date d1,
Calendar c2)
public boolean isCurrentDate(int d,
int w)
|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||