public class DateEvent
extends java.util.EventObject
| Constructor and Description |
|---|
DateEvent(java.lang.Object source,
com.mindfusion.common.DateTime date,
int button,
int clicks,
java.awt.Rectangle bounds)
Initializes a new instance of the
DateEvent class. |
DateEvent(java.lang.Object source,
com.mindfusion.common.DateTime date,
int button,
int clicks,
java.awt.Rectangle bounds,
int index)
Initializes a new instance of the
DateEvent class. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getBounds()
Gets the bounding rectangle of the clicked date cell.
|
int |
getButton()
Gets the pressed mouse button.
|
int |
getClicks()
Gets the number of clicks.
|
com.mindfusion.common.DateTime |
getDate()
Gets the date and time associated with the event.
|
int |
getIndex()
Gets the index (if any) of the calendar cell related to the event or -1 otherwise.
|
public DateEvent(java.lang.Object source,
com.mindfusion.common.DateTime date,
int button,
int clicks,
java.awt.Rectangle bounds)
DateEvent class.source - The Calendar that raises this event.date - The date and time associated with this event.button - The pressed mouse button.clicks - The number of clicks.bounds - Bounding rectangle of the clicked date cell.public DateEvent(java.lang.Object source,
com.mindfusion.common.DateTime date,
int button,
int clicks,
java.awt.Rectangle bounds,
int index)
DateEvent class.source - The Calendar that raises this event.date - The date and time associated with this event.button - The pressed mouse button.clicks - The number of clicks.bounds - Bounding rectangle of the clicked date cell.index - Index of the calendar cell related to this event.public com.mindfusion.common.DateTime getDate()
DateTime object specifying the date related to the raised event.public int getButton()
public int getClicks()
public java.awt.Rectangle getBounds()
public int getIndex()