org.eesgmbh.gimv.client.presenter
Class ImageMoveOrZoomToggleButtonPresenter

java.lang.Object
  extended by org.eesgmbh.gimv.client.presenter.ImageMoveOrZoomToggleButtonPresenter

public class ImageMoveOrZoomToggleButtonPresenter
extends Object

Allows the user to switch between moving the image or zooming it with a mouse drag.

A view is required that presents the respective state to the user, e.g. with clickable buttons. When the user changes from zoom to move or vice versa, the presenters is informed via ClickHandler that must be added to whatever widget in the view implementation.
An implementation of the view is ImageMoveOrZoomToggleButtonViewImpl.

Whenever a change between zoom or move is initiated by the user, both the DragImageControl and ZoomBoxPresenter will be activated or deactivated respectively.

The presenter should be initialized with a StateChangeEvent fired during application initialization.

Registers with the HandlerManager to receive the following events

Fires the following events


Nested Class Summary
static interface ImageMoveOrZoomToggleButtonPresenter.View
          The view interface belonging to the ImageMoveOrZoomToggleButtonPresenter.
 
Constructor Summary
ImageMoveOrZoomToggleButtonPresenter(HandlerManager handlerManager, ImageMoveOrZoomToggleButtonPresenter.View view)
          Instantiates the presenter.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMoveOrZoomToggleButtonPresenter

public ImageMoveOrZoomToggleButtonPresenter(HandlerManager handlerManager,
                                            ImageMoveOrZoomToggleButtonPresenter.View view)
Instantiates the presenter.

Parameters:
handlerManager - A HandlerManager
view - An implementation of ImageMoveOrZoomToggleButtonPresenter.View


Copyright © 2010 - EES GmbH