|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.event.dd.TargetDetailsImpl
com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails
com.vaadin.ui.Tree.TreeTargetDetails
public class Tree.TreeTargetDetails
A TargetDetails
implementation with Tree specific api.
Field Summary |
---|
Fields inherited from class com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails |
---|
idOver |
Method Summary | |
---|---|
java.lang.Object |
getItemIdAfter()
If drop is targeted into "folder node" (see getItemIdInto()
), this method returns the item id of the node after the drag was
targeted. |
java.lang.Object |
getItemIdInto()
If the event is on a node that can not have children (see Tree.areChildrenAllowed(Object) ), this method returns the
parent item id of the target item (see AbstractSelect.AbstractSelectTargetDetails.getItemIdOver() ). |
Tree |
getTarget()
|
Methods inherited from class com.vaadin.ui.AbstractSelect.AbstractSelectTargetDetails |
---|
getDropLocation, getItemIdOver |
Methods inherited from class com.vaadin.event.dd.TargetDetailsImpl |
---|
getData, setData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Tree getTarget()
getTarget
in interface TargetDetails
getTarget
in class TargetDetailsImpl
DragAndDropEvent
happened.public java.lang.Object getItemIdInto()
Tree.areChildrenAllowed(Object)
), this method returns the
parent item id of the target item (see AbstractSelect.AbstractSelectTargetDetails.getItemIdOver()
).
The identifier of the parent node is also returned if the cursor is
on the top part of node. Else this method returns the same as
AbstractSelect.AbstractSelectTargetDetails.getItemIdOver()
.
In other words this method returns the identifier of the "folder" into the drag operation is targeted.
If the method returns null, the current target is on a root node or on other undefined area over the tree component.
The default Tree implementation marks the targetted tree node with CSS classnames v-tree-node-dragfolder and v-tree-node-caption-dragfolder (for the caption element).
public java.lang.Object getItemIdAfter()
getItemIdInto()
), this method returns the item id of the node after the drag was
targeted. This method is useful when implementing drop into specific
location (between specific nodes) in tree.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |