public class TooltipEvent
extends java.util.EventObject
tooltipDisplaying event.| Constructor and Description |
|---|
TooltipEvent(java.lang.Object source,
CalendarElement element,
java.lang.String tooltip,
Resource resource,
DateTime time)
Initializes a new instance of the
TooltipEvent class. |
| Modifier and Type | Method and Description |
|---|---|
CalendarElement |
getElement()
Gets the element whose tooltip is being displayed.
|
Resource |
getResource()
Gets the resource associated with the calendar element or null if none.
|
DateTime |
getTime()
Gets the time associated with the calendar element or
DateTime.MinValue if none. |
java.lang.String |
getTooltip()
Gets the tooltip of the element.
|
void |
setTooltip(java.lang.String value)
Sets the tooltip of the element.
|
public TooltipEvent(java.lang.Object source,
CalendarElement element,
java.lang.String tooltip,
Resource resource,
DateTime time)
TooltipEvent class.public CalendarElement getElement()
CalendarElement constants identifying the calendar element
whose tooltip is about to be displayed.public java.lang.String getTooltip()
public void setTooltip(java.lang.String value)
value - The text of the tooltip.public Resource getResource()
public DateTime getTime()
DateTime.MinValue if none.DateTime object representing the date and time associated with the element
whose tooltip is being displayed or DateTime.MinValue if no time is related with the element.