|
|||||||||
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.DragWrapper
public class DragWrapper
A wrapper component that enabled drag behaviour for it's children. This component is
used in conjunction with the DropWrapper
.
By default all child components will become immutable (that is to say the user will not be able to interact with them on the screen, only to drag them).
If you want to limit the drag area to one of the child components (and thus allow interaction by the user with the other child components) you can set the handle property.
Field Summary |
---|
Constructor Summary | |
---|---|
DragWrapper()
|
Method Summary | |
---|---|
void |
applyContext()
|
Component |
getBean()
The bean property allows you to associate an arbitrary object with your DragWrapper. |
Component |
getHandle()
Retrieve the child component that is used as handle. |
void |
setBean(Component bean)
|
void |
setHandle(Component handle)
Sets the child component that is used as handle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DragWrapper()
Method Detail |
---|
public Component getHandle()
Retrieve the child component that is used as handle. null indicates all children will be drag handles.
public void setHandle(Component handle)
Sets the child component that is used as handle. null indicates all children will be drag handles.
public Component getBean()
The bean property allows you to associate an arbitrary object with your DragWrapper. This is handy because the DropWrapper will tell you which component was dropped on it, and that allows you to, for example, find the model object associated with it by using getBean().
public void setBean(Component bean)
public void applyContext()
applyContext
in interface Precreation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |