ter.SDK.manager
Class AbstractTopManager

java.lang.Object
  |
  +--ter.SDK.manager.AbstractManager
        |
        +--ter.SDK.manager.AbstractTopManager
All Implemented Interfaces:
Controler, Manager, Plugin, View
Direct Known Subclasses:
SplitPaneTopManager

public abstract class AbstractTopManager
extends AbstractManager

Title: JavInspector

Description:

Copyright: Copyright (c) 2003

Company:

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

Constructor Summary
AbstractTopManager(Inspector inspector, PluginSettings pSets)
          default constructor : build a top manager with an inspector and the plugin settings
 
Method Summary
abstract  void addCompositionView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
abstract  void addDetailView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
abstract  void addHeritageView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
abstract  void addSearchView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
 Inspector getInspector()
          return the inspector
 java.lang.Class getPlugin(int type)
          gets the plugin for the given type
 AbstractTopManager getTopManager()
          get the top manager (this)
 int getType()
          default implementation : returns PluginTypes.TOP_MANAGER
 void setPlugin(int type, java.lang.Class clazz)
          sets the plugin for the given type
 void setPlugin(java.lang.Integer type, java.lang.Class clazz)
          sets the plugin for the given type
 
Methods inherited from class ter.SDK.manager.AbstractManager
getClassifierAnalyser, getDefaultView, getView, isControlable, listenToView, setClassifierAnalyser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ter.SDK.view.View
getViewContainer
 
Methods inherited from interface ter.SDK.Plugin
getName
 

Constructor Detail

AbstractTopManager

public AbstractTopManager(Inspector inspector,
                          PluginSettings pSets)
default constructor : build a top manager with an inspector and the plugin settings

Parameters:
inspector - the inspector
pSets - the plugin settings
Method Detail

getType

public int getType()
default implementation : returns PluginTypes.TOP_MANAGER

Specified by:
getType in interface Plugin
Overrides:
getType in class AbstractManager
Returns:
PluginTypes.TOP_MANAGER
See Also:
PluginTypes

getInspector

public Inspector getInspector()
return the inspector

Specified by:
getInspector in interface Manager
Overrides:
getInspector in class AbstractManager
Returns:
the inspector

setPlugin

public void setPlugin(int type,
                      java.lang.Class clazz)
sets the plugin for the given type

Parameters:
type - the type
clazz - the Class of the plugin

setPlugin

public void setPlugin(java.lang.Integer type,
                      java.lang.Class clazz)
sets the plugin for the given type

Parameters:
type - the type
clazz - the Class of the plugin

getPlugin

public java.lang.Class getPlugin(int type)
gets the plugin for the given type

Specified by:
getPlugin in interface Manager
Overrides:
getPlugin in class AbstractManager
Parameters:
type - the type
Returns:
the class plugin

addHeritageView

public abstract void addHeritageView(ClassifierAnalyser ca)
Description copied from class: AbstractManager
default implementation : forwards the event to its parent manager

Specified by:
addHeritageView in interface Manager
Overrides:
addHeritageView in class AbstractManager
Parameters:
ca - the data model to represent

addDetailView

public abstract void addDetailView(ClassifierAnalyser ca)
Description copied from class: AbstractManager
default implementation : forwards the event to its parent manager

Specified by:
addDetailView in interface Manager
Overrides:
addDetailView in class AbstractManager
Parameters:
ca - the data model to represent

addCompositionView

public abstract void addCompositionView(ClassifierAnalyser ca)
Description copied from class: AbstractManager
default implementation : forwards the event to its parent manager

Specified by:
addCompositionView in interface Manager
Overrides:
addCompositionView in class AbstractManager
Parameters:
ca - the data model to represent

addSearchView

public abstract void addSearchView(ClassifierAnalyser ca)
Description copied from class: AbstractManager
default implementation : forwards the event to its parent manager

Specified by:
addSearchView in interface Manager
Overrides:
addSearchView in class AbstractManager
Parameters:
ca - the data model to represent

getTopManager

public AbstractTopManager getTopManager()
get the top manager (this)

Specified by:
getTopManager in interface Manager
Overrides:
getTopManager in class AbstractManager
Returns:
this