|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.vaadin.event.ConnectorEvent
com.vaadin.ui.Component.Event
com.vaadin.event.MouseEvents.ClickEvent
public static class MouseEvents.ClickEvent
Class for holding information about a mouse click event. A
MouseEvents.ClickEvent
is fired when the user clicks on a
Component
.
The information available for click events are terminal dependent.
Correct values for all event details cannot be guaranteed.
MouseEvents.ClickListener
,
Serialized FormField Summary | |
---|---|
static com.vaadin.shared.MouseEventDetails.MouseButton |
BUTTON_LEFT
Deprecated. As of 7.0, use Button#LEFT instead. |
static com.vaadin.shared.MouseEventDetails.MouseButton |
BUTTON_MIDDLE
Deprecated. As of 7.0, use Button#MIDDLE instead. |
static com.vaadin.shared.MouseEventDetails.MouseButton |
BUTTON_RIGHT
Deprecated. As of 7.0, use Button#RIGHT instead. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
MouseEvents.ClickEvent(Component source,
com.vaadin.shared.MouseEventDetails mouseEventDetails)
|
Method Summary | |
---|---|
com.vaadin.shared.MouseEventDetails.MouseButton |
getButton()
Returns an identifier describing which mouse button the user pushed. |
java.lang.String |
getButtonName()
Returns a human readable string representing which button has been pushed. |
int |
getClientX()
Returns the mouse position (x coordinate) when the click took place. |
int |
getClientY()
Returns the mouse position (y coordinate) when the click took place. |
int |
getRelativeX()
Returns the relative mouse position (x coordinate) when the click took place. |
int |
getRelativeY()
Returns the relative mouse position (y coordinate) when the click took place. |
boolean |
isAltKey()
Checks if the Alt key was down when the mouse event took place. |
boolean |
isCtrlKey()
Checks if the Ctrl key was down when the mouse event took place. |
boolean |
isDoubleClick()
Checks if the event is a double click event. |
boolean |
isMetaKey()
Checks if the Meta key was down when the mouse event took place. |
boolean |
isShiftKey()
Checks if the Shift key was down when the mouse event took place. |
Methods inherited from class com.vaadin.ui.Component.Event |
---|
getComponent |
Methods inherited from class com.vaadin.event.ConnectorEvent |
---|
getConnector |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final com.vaadin.shared.MouseEventDetails.MouseButton BUTTON_LEFT
Button#LEFT
instead.@Deprecated public static final com.vaadin.shared.MouseEventDetails.MouseButton BUTTON_MIDDLE
Button#MIDDLE
instead.@Deprecated public static final com.vaadin.shared.MouseEventDetails.MouseButton BUTTON_RIGHT
Button#RIGHT
instead.Constructor Detail |
---|
public MouseEvents.ClickEvent(Component source, com.vaadin.shared.MouseEventDetails mouseEventDetails)
Method Detail |
---|
public com.vaadin.shared.MouseEventDetails.MouseButton getButton()
MouseEventDetails.MouseButton.LEFT
,MouseEventDetails.MouseButton.MIDDLE
,
Button#RIGHT
to find out which button it is.
MouseEventDetails.MouseButton.LEFT
, MouseEventDetails.MouseButton.MIDDLE
,
MouseEventDetails.MouseButton.RIGHT
.public int getClientX()
public int getClientY()
public int getRelativeX()
public int getRelativeY()
public boolean isDoubleClick()
public boolean isAltKey()
public boolean isCtrlKey()
public boolean isMetaKey()
public boolean isShiftKey()
public java.lang.String getButtonName()
getButton()
to check which button was
pressed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |