com.vaadin.shared
Class MouseEventDetails

java.lang.Object
  extended by com.vaadin.shared.MouseEventDetails
All Implemented Interfaces:
java.io.Serializable

public class MouseEventDetails
extends java.lang.Object
implements java.io.Serializable

Helper class to store and transfer mouse event details.

See Also:
Serialized Form

Nested Class Summary
static class MouseEventDetails.MouseButton
          Constants for mouse buttons.
 
Field Summary
static MouseEventDetails.MouseButton BUTTON_LEFT
          Deprecated. use MouseEventDetails.MouseButton.LEFT instead.
static MouseEventDetails.MouseButton BUTTON_MIDDLE
          Deprecated. use MouseEventDetails.MouseButton.MIDDLE instead.
static MouseEventDetails.MouseButton BUTTON_RIGHT
          Deprecated. use MouseEventDetails.MouseButton.RIGHT instead.
 
Constructor Summary
MouseEventDetails()
           
 
Method Summary
static MouseEventDetails deSerialize(java.lang.String serializedString)
           
 MouseEventDetails.MouseButton getButton()
           
 java.lang.String getButtonName()
           
 int getClientX()
           
 int getClientY()
           
 int getRelativeX()
           
 int getRelativeY()
           
 int getType()
           
 boolean isAltKey()
           
 boolean isCtrlKey()
           
 boolean isDoubleClick()
           
 boolean isMetaKey()
           
 boolean isShiftKey()
           
 java.lang.String serialize()
           
 void setAltKey(boolean altKey)
           
 void setButton(MouseEventDetails.MouseButton button)
           
 void setClientX(int clientX)
           
 void setClientY(int clientY)
           
 void setCtrlKey(boolean ctrlKey)
           
 void setMetaKey(boolean metaKey)
           
 void setRelativeX(int relativeX)
           
 void setRelativeY(int relativeY)
           
 void setShiftKey(boolean shiftKey)
           
 void setType(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUTTON_LEFT

@Deprecated
public static final MouseEventDetails.MouseButton BUTTON_LEFT
Deprecated. use MouseEventDetails.MouseButton.LEFT instead.

BUTTON_MIDDLE

@Deprecated
public static final MouseEventDetails.MouseButton BUTTON_MIDDLE
Deprecated. use MouseEventDetails.MouseButton.MIDDLE instead.

BUTTON_RIGHT

@Deprecated
public static final MouseEventDetails.MouseButton BUTTON_RIGHT
Deprecated. use MouseEventDetails.MouseButton.RIGHT instead.
Constructor Detail

MouseEventDetails

public MouseEventDetails()
Method Detail

getButton

public MouseEventDetails.MouseButton getButton()

getClientX

public int getClientX()

getClientY

public int getClientY()

isAltKey

public boolean isAltKey()

isCtrlKey

public boolean isCtrlKey()

isMetaKey

public boolean isMetaKey()

isShiftKey

public boolean isShiftKey()

getRelativeX

public int getRelativeX()

getRelativeY

public int getRelativeY()

setButton

public void setButton(MouseEventDetails.MouseButton button)

setClientX

public void setClientX(int clientX)

setClientY

public void setClientY(int clientY)

setAltKey

public void setAltKey(boolean altKey)

setCtrlKey

public void setCtrlKey(boolean ctrlKey)

setMetaKey

public void setMetaKey(boolean metaKey)

setShiftKey

public void setShiftKey(boolean shiftKey)

setType

public void setType(int type)

setRelativeX

public void setRelativeX(int relativeX)

setRelativeY

public void setRelativeY(int relativeY)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

serialize

public java.lang.String serialize()

deSerialize

public static MouseEventDetails deSerialize(java.lang.String serializedString)

getButtonName

public java.lang.String getButtonName()

getType

public int getType()

isDoubleClick

public boolean isDoubleClick()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.