|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eesgmbh.gimv.client.presenter.ImagePresenter
public class ImagePresenter
The presenter wraps the actual image view contained within
the Viewport.
It is responsible for setting the url within the view, changing
position and dimensions of the image and resetting its position
after a load event.
An implementation of ImagePresenter.View is ImageViewImpl.
The view can be given an ErrorHandler, which will be invoked if
for some reason the image could not be loaded under the given URL.
Registers with the HandlerManager to receive the following events
SetImageUrlEvent (mandatory, won't work otherwise)
ChangeImagePixelBoundsEvent (might be received e.g. while dragging or mouse wheels)
SetViewportPixelBoundsEvent (used to reset the dimensions of a newly rendered image e.g. after width and height
changes caused by mouse wheels)
Fires no events.
| Nested Class Summary | |
|---|---|
static interface |
ImagePresenter.View
The view interface of ImagePresenter. |
| Constructor Summary | |
|---|---|
ImagePresenter(HandlerManager handlerManager,
ImagePresenter.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 ImagePresenter(HandlerManager handlerManager,
ImagePresenter.View view)
handlerManager - A HandlerManagerview - A ImagePresenter.View implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||