|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.DropWrapper
public class DropWrapper
This wrapper component allows you to add drop capabilities to any (collection of)
child component(s). It is used in conjuction with DragWrapper
.
When a draggable item is released on this component, a server-side event will be triggered. You may set the eventhandler (as allways) by specifying the actionCommand property. This method is the called, and the argument passed in will be the DropWrapper that was the target of the drag-drop operation. Information about the drag-drop operation can be retrieved via multiple properties on that DropWrapper.
Field Summary |
---|
Constructor Summary | |
---|---|
DropWrapper()
|
Method Summary | |
---|---|
void |
applyContext()
|
void |
fire()
|
java.lang.String |
getActionCommand()
Gets the event handler for the drop operation. |
java.lang.Object |
getBean()
The bean property allows you to associate an arbitrary object with your DropWrapper. |
int |
getHeight()
Retrieves the height of the drop zone, measured in pixels on the client. |
DragWrapper |
getSourceDragWrapper()
Retrieve the DragWrapper |
int |
getWidth()
Retrieves the width of the drop zone, measured in pixels on the client. |
int |
getX()
Retrieves the X location of the mouse (relative to the drop zone), at drop-time. |
int |
getY()
Retrieves the X location of the mouse (relative to the drop zone), at drop-time. |
void |
setActionCommand(java.lang.String actionCommand)
Sets the event handler for the drop operation. |
void |
setBean(java.lang.Object bean)
|
void |
setHeight(int height)
|
void |
setSourceDragWrapper(DragWrapper dragWrapper)
|
void |
setWidth(int width)
|
void |
setX(int x)
|
void |
setY(int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DropWrapper()
Method Detail |
---|
public void fire()
public java.lang.String getActionCommand()
getActionCommand
in interface EventSource
public void setActionCommand(java.lang.String actionCommand)
setActionCommand
in interface EventSource
public DragWrapper getSourceDragWrapper()
Retrieve the DragWrapper
public void setSourceDragWrapper(DragWrapper dragWrapper)
public int getHeight()
Retrieves the height of the drop zone, measured in pixels on the client.
public void setHeight(int height)
public int getWidth()
public void setWidth(int width)
public int getX()
Retrieves the X location of the mouse (relative to the drop zone), at drop-time.
public void setX(int x)
public int getY()
Retrieves the X location of the mouse (relative to the drop zone), at drop-time.
public void setY(int y)
public java.lang.Object getBean()
The bean property allows you to associate an arbitrary object with your DropWrapper. This is handy because it allows you to assocate (for example) a model object with this DropWrapper. Handy to be able to retrieve inside of you event handler.
public void setBean(java.lang.Object bean)
public void applyContext()
applyContext
in interface Precreation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |