org.eesgmbh.gimv.client.presenter
Class ImagePresenter

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

public class ImagePresenter
extends Object

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

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

ImagePresenter

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

Parameters:
handlerManager - A HandlerManager
view - A ImagePresenter.View implementation.


Copyright © 2010 - EES GmbH