org.eesgmbh.gimv.client.presenter
Class CalendarPresenter

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

public class CalendarPresenter
extends Object

This presenter changes the bounds according to some sort of calendar.

After instantiating the presenter, the domain bound (left, right, bottom, top) must be assigned with configureBound(Bound). The corresponding axis (horizontal or vertical) must represent a date range in milliseconds.

Registers with the HandlerManager to receive the following events

Fires the following events


Nested Class Summary
static interface CalendarPresenter.View
          The View interface of this presenter.
 
Constructor Summary
CalendarPresenter(HandlerManager handlerManager, CalendarPresenter.View view)
          Instantiates the presenter.
 
Method Summary
 void configureBound(Bound bound)
          This method will assign the domain bound (left, right, bottom, top) to the presenter.
 void setFireLoadImageDataEvent(boolean fireLoadImageDataEvent)
          Defines, whether a LoadImageDataEvent is fired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarPresenter

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

Parameters:
handlerManager - A HandlerManager
view - A CalendarPresenter.View implementation
Method Detail

configureBound

public void configureBound(Bound bound)
This method will assign the domain bound (left, right, bottom, top) to the presenter.

If for example Bound.LEFT is specified, the left bound of the domain bounds will be changed by the presenter.

Note that the corresponding axis (vertical or horizontal) must represent date ranges in milliseconds. If e.g. bound is Bound.LEFT the horizonal axis must in milliseconds.

Parameters:
bound - An enum value of Bound

setFireLoadImageDataEvent

public void setFireLoadImageDataEvent(boolean fireLoadImageDataEvent)

Defines, whether a LoadImageDataEvent is fired.

Default is true.

Parameters:
fireLoadImageDataEvent - fire it, or not


Copyright © 2010 - EES GmbH