Interface MoveProvider


public interface MoveProvider
This interface controls move action.
  • Method Summary

    Modifier and Type
    Method
    Description
    Called to acquire a origin location against which the movement will be calculated.
    void
    Called to notify about the end of movement of a specified widget.
    void
    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

      void movementStarted(Widget widget)
      Called to nofity about the start of movement of a specified widget.
      Parameters:
      widget - the moving widget
    • movementFinished

      void movementFinished(Widget widget)
      Called to notify about the end of movement of a specified widget.
      Parameters:
      widget - the moved widget
    • getOriginalLocation

      Point getOriginalLocation(Widget widget)
      Called to acquire a origin location against which the movement will be calculated. Usually it is a value of the Widget.getLocation method.
      Parameters:
      widget - the moving widget
      Returns:
      the origin location
    • setNewLocation

      void setNewLocation(Widget widget, Point location)
      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 widget
      location - the new location