public class ItemMouseEvent extends ItemEvent
itemClick event.| Constructor and Description |
|---|
ItemMouseEvent(java.lang.Object source,
Item item,
int button,
int x,
int y,
int clicks,
boolean resizeStart,
boolean resizeEnd)
Initializes a new instance of the
ItemMouseEvent class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getButton()
Gets the pressed mouse button.
|
int |
getClicks()
Gets the number of clicks.
|
boolean |
getResizeEnd()
Gets a value indicating whether the item's end is about to be resized.
|
boolean |
getResizeStart()
Gets a value indicating whether the item's start is about to be resized.
|
int |
getX()
Gets the x-position of the mouse relative to the item.
|
int |
getY()
Gets the y-position of the mouse relative to the item.
|
public ItemMouseEvent(java.lang.Object source,
Item item,
int button,
int x,
int y,
int clicks,
boolean resizeStart,
boolean resizeEnd)
ItemMouseEvent class.source - The Calendar that raises this event.item - The Item instance for which the event is raised.button - The pressed mouse button.x - Horizontal position of the mouse pointer relative to the item.y - Vertical position of the mouse pointer relative to the item.clicks - The number of clicks.resizeStart - Indicates whether the item's start is about to be resized.resizeEnd - Indicates whether the item's end is about to be resized.public int getButton()
public int getX()
public int getY()
public int getClicks()
public boolean getResizeStart()
public boolean getResizeEnd()