public interface

IControllerFactory

com.c2call.sdk.pub.gui.core.controller.IControllerFactory<T extends com.c2call.sdk.pub.gui.core.controller.IController>
Known Indirect Subclasses

Class Overview

This factory creates new controllers of given type T

Summary

Public Methods
abstract IControllerRequestListener getRequestListener()
abstract SCActivityResultDispatcher getResultDispatcher()
abstract T onCreateController(View v, SCViewDescription vd)
Create a new controller.
abstract void setRequestListener(IControllerRequestListener listener)
Sets a IControllerRequestListener that will be set in created controllers
abstract void setResultDispatcher(SCActivityResultDispatcher resultDispatcher)
Sets a SCActivityResultDispatcher that will be set in created controllers

Public Methods

public abstract IControllerRequestListener getRequestListener ()

Returns

public abstract SCActivityResultDispatcher getResultDispatcher ()

Returns

public abstract T onCreateController (View v, SCViewDescription vd)

Create a new controller.

Parameters
v the view that is needed to create the controller
vd the view description that is needed to create the controller
Returns
  • a newly created contrller

public abstract void setRequestListener (IControllerRequestListener listener)

Sets a IControllerRequestListener that will be set in created controllers

Parameters
listener the listener to be set

public abstract void setResultDispatcher (SCActivityResultDispatcher resultDispatcher)

Sets a SCActivityResultDispatcher that will be set in created controllers