org.eesgmbh.gimv.client.view
Class ImageViewImpl

java.lang.Object
  extended by org.eesgmbh.gimv.client.view.ImageViewImpl
All Implemented Interfaces:
ImagePresenter.View

public class ImageViewImpl
extends Object
implements ImagePresenter.View

An implementation of ImagePresenter.View.


Constructor Summary
ImageViewImpl(Image image)
           
 
Method Summary
 void addErrorHandler(ErrorHandler errorHandler)
          Adds an error handler to the view, which will be invoked, if the image could not be obtained from the server under the given URL.
 void addLoadHandler(LoadHandler loadHandler)
           
 void changeDimensions(int offsetWidth, int offsetHeight)
           
 void changePosition(int offsetX, int offsetY)
           
 void setDimensions(int width, int height)
           
 void setPosition(int x, int y)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageViewImpl

public ImageViewImpl(Image image)
Method Detail

setUrl

public void setUrl(String url)
Specified by:
setUrl in interface ImagePresenter.View

changePosition

public void changePosition(int offsetX,
                           int offsetY)
Specified by:
changePosition in interface ImagePresenter.View

setPosition

public void setPosition(int x,
                        int y)
Specified by:
setPosition in interface ImagePresenter.View

changeDimensions

public void changeDimensions(int offsetWidth,
                             int offsetHeight)
Specified by:
changeDimensions in interface ImagePresenter.View

setDimensions

public void setDimensions(int width,
                          int height)
Specified by:
setDimensions in interface ImagePresenter.View

addLoadHandler

public void addLoadHandler(LoadHandler loadHandler)
Specified by:
addLoadHandler in interface ImagePresenter.View

addErrorHandler

public void addErrorHandler(ErrorHandler errorHandler)
Description copied from interface: ImagePresenter.View
Adds an error handler to the view, which will be invoked, if the image could not be obtained from the server under the given URL.

Specified by:
addErrorHandler in interface ImagePresenter.View
Parameters:
errorHandler - An implementation of ErrorHandler


Copyright © 2010 - EES GmbH