Package org.zkoss.zk.ui.event
Class MoveEvent
- java.lang.Object
-
- org.zkoss.zk.ui.event.Event
-
- org.zkoss.zk.ui.event.MoveEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class MoveEvent extends Event
Represents an event caused by a component being moved.- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getKeys()
Returns what keys were pressed when the component is moved, or 0 if none of them was pressed.java.lang.String
getLeft()
Returns the left of the component after moved.static MoveEvent
getMoveEvent(AuRequest request)
Converts an AU request to a move event.java.lang.String
getTop()
Returns the top of the component after moved.-
Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
-
-
-
-
Field Detail
-
ALT_KEY
public static final int ALT_KEY
Indicates whether the Alt key is pressed. It might be returned as part ofgetKeys()
.- See Also:
- Constant Field Values
-
CTRL_KEY
public static final int CTRL_KEY
Indicates whether the Ctrl key is pressed. It might be returned as part ofgetKeys()
.- See Also:
- Constant Field Values
-
SHIFT_KEY
public static final int SHIFT_KEY
Indicates whether the Shift key is pressed. It might be returned as part ofgetKeys()
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MoveEvent
public MoveEvent(java.lang.String name, Component target, java.lang.String left, java.lang.String top, int keys)
Constructs a mouse relevant event.
-
-
Method Detail
-
getMoveEvent
public static final MoveEvent getMoveEvent(AuRequest request)
Converts an AU request to a move event.- Since:
- 5.0.0
-
getLeft
public final java.lang.String getLeft()
Returns the left of the component after moved.
-
getTop
public final java.lang.String getTop()
Returns the top of the component after moved.
-
getKeys
public final int getKeys()
-
-