ter.SDK.manager
Class AbstractManager

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

public abstract class AbstractManager
extends java.lang.Object
implements Manager

Title: JavInspector

Description:

Copyright: Copyright (c) 2003

Company:

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

Constructor Summary
AbstractManager(Manager parent)
          default constructor builds an abstract manager
 
Method Summary
 void addCompositionView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
 void addDetailView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
 void addHeritageView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
 void addSearchView(ClassifierAnalyser ca)
          default implementation : forwards the event to its parent manager
 ClassifierAnalyser getClassifierAnalyser()
          Return the classifierAnalyser related to this view
 java.lang.String getDefaultView()
          get the default view associates with this controler
 Inspector getInspector()
          default implementation : forwards the event to its parent manager
 java.lang.Class getPlugin(int type)
          default implementation : forwards the event to its parent manager
 AbstractTopManager getTopManager()
          default implementation : forwards the event to its parent manager
 int getType()
          return the type of the Plugin
 View getView()
          gets the view associates to this component
 boolean isControlable(View v)
          tells whether the given view is controlable by this controler
 void listenToView()
          tels this controler to its associated view
 void setClassifierAnalyser(ClassifierAnalyser ca)
          Set the current classifierAnalyser for this view
 
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

AbstractManager

public AbstractManager(Manager parent)
default constructor builds an abstract manager

Parameters:
parent - the parent manager
Method Detail

listenToView

public void listenToView()
Description copied from interface: Controler
tels this controler to its associated view

Specified by:
listenToView in interface Controler

getView

public View getView()
Description copied from interface: Controler
gets the view associates to this component

Specified by:
getView in interface Controler
Returns:
the view associated to this component

getClassifierAnalyser

public ClassifierAnalyser getClassifierAnalyser()
Description copied from interface: View
Return the classifierAnalyser related to this view

Specified by:
getClassifierAnalyser in interface View
Returns:
: a classifierAnalyser

setClassifierAnalyser

public void setClassifierAnalyser(ClassifierAnalyser ca)
Description copied from interface: View
Set the current classifierAnalyser for this view

Specified by:
setClassifierAnalyser in interface View
Parameters:
ca - : the new classifierAnalyser

getDefaultView

public java.lang.String getDefaultView()
Description copied from interface: Controler
get the default view associates with this controler

Specified by:
getDefaultView in interface Controler
Returns:
the name of the view;

getType

public int getType()
Description copied from interface: Plugin
return the type of the Plugin

Specified by:
getType in interface Plugin
Returns:
the type of the Plugin
See Also:
PluginTypes

isControlable

public boolean isControlable(View v)
Description copied from interface: Controler
tells whether the given view is controlable by this controler

Specified by:
isControlable in interface Controler
Parameters:
v - the view to test
Returns:
true if it is compatible, false otherwise

getInspector

public Inspector getInspector()
default implementation : forwards the event to its parent manager

Specified by:
getInspector in interface Manager
Returns:
the inspector

getPlugin

public java.lang.Class getPlugin(int type)
default implementation : forwards the event to its parent manager

Specified by:
getPlugin in interface Manager
Parameters:
type - type of the plugin
Returns:
the Class object of the plugin

addHeritageView

public void addHeritageView(ClassifierAnalyser ca)
default implementation : forwards the event to its parent manager

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

addDetailView

public void addDetailView(ClassifierAnalyser ca)
default implementation : forwards the event to its parent manager

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

addCompositionView

public void addCompositionView(ClassifierAnalyser ca)
default implementation : forwards the event to its parent manager

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

addSearchView

public void addSearchView(ClassifierAnalyser ca)
default implementation : forwards the event to its parent manager

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

getTopManager

public AbstractTopManager getTopManager()
default implementation : forwards the event to its parent manager

Specified by:
getTopManager in interface Manager
Returns:
the topmanager