com.alkacon.geranium.client.dnd
public interface I_DropTarget
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPosition(int x,
int y,
DNDHandler.Orientation orientation)
Returns true if the given cursor position is over the drop target.
|
com.google.gwt.dom.client.Element |
getElement()
Returns the drop target element.
|
int |
getPlaceholderIndex()
Returns the index of the placeholder or -1 if no placeholder is attached.
|
void |
insertPlaceholder(com.google.gwt.dom.client.Element placeholder,
int x,
int y,
DNDHandler.Orientation orientation)
Inserts a new placeholder.
|
void |
onDrop(I_Draggable draggable)
Executed on drop.
|
void |
removePlaceholder()
Removes the placeholder.
|
void |
repositionPlaceholder(int x,
int y,
DNDHandler.Orientation orientation)
Repositions the placeholder.
|
boolean checkPosition(int x,
int y,
DNDHandler.Orientation orientation)
x - the cursor client x positiony - the cursor client y positionorientation - the drag and drop orientationtrue if the given cursor position is over the drop targetcom.google.gwt.dom.client.Element getElement()
This must be the element, where all children will be attached.
int getPlaceholderIndex()
void insertPlaceholder(com.google.gwt.dom.client.Element placeholder,
int x,
int y,
DNDHandler.Orientation orientation)
placeholder - the placeholder elementx - the cursor client x positiony - the cursor client y positionorientation - the drag and drop orientationvoid onDrop(I_Draggable draggable)
draggable - the draggable being droppedvoid removePlaceholder()
void repositionPlaceholder(int x,
int y,
DNDHandler.Orientation orientation)
x - the cursor client x positiony - the cursor client y positionorientation - the drag and drop orientation