Interface MoveProvider
public interface MoveProvider
This interface controls move action.
-
Method Summary
Modifier and TypeMethodDescriptiongetOriginalLocation
(Widget widget) Called to acquire a origin location against which the movement will be calculated.void
movementFinished
(Widget widget) Called to notify about the end of movement of a specified widget.void
movementStarted
(Widget widget) Called to nofity about the start of movement of a specified widget.void
setNewLocation
(Widget widget, Point location) Called to set a new location of a moved widget.
-
Method Details
-
movementStarted
Called to nofity about the start of movement of a specified widget.- Parameters:
widget
- the moving widget
-
movementFinished
Called to notify about the end of movement of a specified widget.- Parameters:
widget
- the moved widget
-
getOriginalLocation
-
setNewLocation
Called to set a new location of a moved widget. The new location is based on the location returned by getOriginalLocation method. Usually it is implemented as the Widget.setPreferredLocation method call.- Parameters:
widget
- the moved widgetlocation
- the new location
-