|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.vaadin.ui.Component.Event
com.vaadin.ui.Button.ClickEvent
public class Button.ClickEvent
Click event. This event is thrown, when the button is clicked.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
Button.ClickEvent(Component source)
New instance of text change event. |
|
Button.ClickEvent(Component source,
MouseEventDetails details)
Constructor with mouse details |
Method Summary | |
---|---|
Button |
getButton()
Gets the Button where the event occurred. |
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 |
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 java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Button.ClickEvent(Component source)
source
- the Source of the event.public Button.ClickEvent(Component source, MouseEventDetails details)
source
- The source where the click took placedetails
- Details about the mouse clickMethod Detail |
---|
public Button getButton()
public int getClientX()
public int getClientY()
public int getRelativeX()
public int getRelativeY()
public boolean isAltKey()
public boolean isCtrlKey()
public boolean isMetaKey()
public boolean isShiftKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |