|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectasquare.gwt.tk.client.ui.behavior.DragWidgetGesture
public class DragWidgetGesture
A DragGesture which positions a target widget when the source widget is dragged.
| Constructor Summary | |
|---|---|
DragWidgetGesture(Widget target)
|
|
| Method Summary | |
|---|---|
void |
finish(int x,
int y)
Called at the end of the input operation, after the last movement. |
protected Widget |
getDragWidget()
|
protected void |
setTargetPosition(int left,
int top)
A template method which sets the position of the target widget to the specified coordinates. |
void |
start(int x,
int y)
Called at beginning of the input operation. |
void |
step(int x,
int y)
Called for each mouse movement during the input operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DragWidgetGesture(Widget target)
target - the widget to be dragged| Method Detail |
|---|
protected Widget getDragWidget()
protected void setTargetPosition(int left,
int top)
left - the x coordinate in pixelstop - the y coordinate in pixels
public void start(int x,
int y)
DragGesture
start in interface DragGesture
public void step(int x,
int y)
DragGesture
step in interface DragGesture
public void finish(int x,
int y)
DragGesture
finish in interface DragGesture
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||