public interface I_CmsDropTarget
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkPosition(int x,
int y,
CmsDNDHandler.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,
CmsDNDHandler.Orientation orientation)
Inserts a new placeholder.
|
void |
onDrop(I_CmsDraggable draggable)
Executed on drop.
|
void |
removePlaceholder()
Removes the placeholder.
|
void |
repositionPlaceholder(int x,
int y,
CmsDNDHandler.Orientation orientation)
Repositions the placeholder.
|
boolean checkPosition(int x, int y, CmsDNDHandler.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, CmsDNDHandler.Orientation orientation)
placeholder
- the placeholder elementx
- the cursor client x positiony
- the cursor client y positionorientation
- the drag and drop orientationvoid onDrop(I_CmsDraggable draggable)
draggable
- the draggable being droppedvoid removePlaceholder()
void repositionPlaceholder(int x, int y, CmsDNDHandler.Orientation orientation)
x
- the cursor client x positiony
- the cursor client y positionorientation
- the drag and drop orientation