Package org.zkoss.stateless.action.data
Class DropData
java.lang.Object
org.zkoss.stateless.action.data.MouseData
org.zkoss.stateless.action.data.DropData
- All Implemented Interfaces:
Serializable,ActionData
Represents an action cause by user's dragging and dropping a component.
The component being dragged can be retrieved by getDragged().
The component that received the dragged component is Self.
- Author:
- jumperchen
- See Also:
-
Field Summary
Fields inherited from class org.zkoss.stateless.action.data.MouseData
ALT_KEY, CTRL_KEY, LEFT_CLICK, META_KEY, MIDDLE_CLICK, RIGHT_CLICK, SHIFT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArea()Returns the component locator being dragged and drop toSelf.intReturns itsgetIndex()(if any) or the child index of the dragged component from its parent.intReturns itsgetIndex()(if any) or the child index of the dropped component from its parent.
-
Constructor Details
-
DropData
public DropData()
-
-
Method Details
-
getDragged
Returns the component locator being dragged and drop toSelf. If the library property of"org.zkoss.zul.drop.allowNullDragged"is specified with"true", then the returned value may be null if thedraggedlocator is null, otherwise, theNullPointerExceptionis raised. -
getDraggedIndex
public int getDraggedIndex()Returns itsgetIndex()(if any) or the child index of the dragged component from its parent. If the library property of"org.zkoss.zul.drop.allowNullDragged"is specified with"true", then the returned value may be-1if thegetDragged()locator is null. -
getDroppedIndex
public int getDroppedIndex()Returns itsgetIndex()(if any) or the child index of the dropped component from its parent. -
getArea
-