ter.SDK.controler
Class AbstractControler

java.lang.Object
  |
  +--ter.SDK.controler.AbstractControler
All Implemented Interfaces:
Controler, Plugin
Direct Known Subclasses:
CompositionControler, DetailControler, HeritageControler, SearchControler

public abstract class AbstractControler
extends java.lang.Object
implements Controler

Title: Class AbstractControler

Description: This class can be extanded to implement a controler faor a certain view

Company: UNSA

Version:
1.0
Author:
Jerôme GAHIDE - Lucas CHARBIT - Gabriel ZERBIB - Xavier GALBOIS

Constructor Summary
AbstractControler()
           
AbstractControler(Manager m)
          defaut constructor from a manager
 
Method Summary
static Controler create(java.lang.Class theControler, Manager man, View view)
          Called to instantiate a controler
 Manager getManager()
          gets this controler's manager
 void setManager(Manager m)
          sets this controler's manager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ter.SDK.controler.Controler
getDefaultView, getView, isControlable, listenToView
 
Methods inherited from interface ter.SDK.Plugin
getName, getType
 

Constructor Detail

AbstractControler

public AbstractControler()

AbstractControler

public AbstractControler(Manager m)
defaut constructor from a manager

Parameters:
m - the manager
Method Detail

setManager

public void setManager(Manager m)
sets this controler's manager

Parameters:
m - the new manager

getManager

public Manager getManager()
gets this controler's manager

Returns:
this controler's manager

create

public static Controler create(java.lang.Class theControler,
                               Manager man,
                               View view)
Called to instantiate a controler

Parameters:
theControler - the controler Class to instantiate
man - the first parameter (the manager of the controler)
view - the wiew to be controled by the controler
Returns:
the new controler instantiated