|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eesgmbh.gimv.client.presenter.ImageMoveOrZoomToggleButtonPresenter
public class ImageMoveOrZoomToggleButtonPresenter
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
StateChangeEvent ( if for some reason someone else changes or initializes the respective state, this will be passed on to
the two view methods ImageMoveOrZoomToggleButtonPresenter.View.toggleMove() or ImageMoveOrZoomToggleButtonPresenter.View.toggleZoom() )
Fires the following events
StateChangeEvent ( informs everyone, that the user either selected zoom or move )
| 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 |
|---|
public ImageMoveOrZoomToggleButtonPresenter(HandlerManager handlerManager,
ImageMoveOrZoomToggleButtonPresenter.View view)
handlerManager - A HandlerManagerview - An implementation of ImageMoveOrZoomToggleButtonPresenter.View
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||