ter.SDK.manager
Class SplitPaneTopManager

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

public class SplitPaneTopManager
extends AbstractTopManager

Title: Class JSplitPaneManager

Description: This class implements a TopManager with two sub-managers. The two sub-managers are in split pane.

Company: UNSA

Version:
1.0
Author:
Charbit Lucas - Gahide Jérome - Galbois Xavier - Zerbib Gabriel

Constructor Summary
SplitPaneTopManager(Inspector inspector, PluginSettings pSets)
          the constructor
 
Method Summary
 void addCompositionView(ClassifierAnalyser ca)
          This function use the delegation and allow to manager to add a new composition view
 void addDetailView(ClassifierAnalyser ca)
          This function use the delegation and allow to manager to add a new detail view
 void addHeritageView(ClassifierAnalyser ca)
          This function use the delegation and allow to manager to add a new heritage view
 void addSearchView(ClassifierAnalyser ca)
          This function use the delegation and allow to manager to add a new search view This has no been implemented yet, the search results are not views
 javax.swing.JSplitPane getJSplitPane1()
          This function returns the split pane
 java.lang.String getName()
          This function return the name of this class
 int getType()
          default implementation : returns PluginTypes.TOP_MANAGER
 java.awt.Container getViewContainer()
          Retuns the main container of this manager
 boolean isControlable(View v)
          tells whether the given view is controlable by this controler
 
Methods inherited from class ter.SDK.manager.AbstractTopManager
getInspector, getPlugin, getTopManager, setPlugin, setPlugin
 
Methods inherited from class ter.SDK.manager.AbstractManager
getClassifierAnalyser, getDefaultView, getView, listenToView, setClassifierAnalyser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitPaneTopManager

public SplitPaneTopManager(Inspector inspector,
                           PluginSettings pSets)
the constructor

Parameters:
inspector - : the inspector of this manager
pSets - : the plugins settings for the class the Manager will have to instanciate
Method Detail

getType

public int getType()
Description copied from class: AbstractTopManager
default implementation : returns PluginTypes.TOP_MANAGER

Specified by:
getType in interface Plugin
Overrides:
getType in class AbstractTopManager
Returns:
PluginTypes.TOP_MANAGER

getName

public java.lang.String getName()
This function return the name of this class

Returns:
: the name of this class

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
Overrides:
isControlable in class AbstractManager
Parameters:
v - the view to test
Returns:
true if it is compatible, false otherwise

getViewContainer

public java.awt.Container getViewContainer()
Retuns the main container of this manager

Returns:
: a container

addHeritageView

public void addHeritageView(ClassifierAnalyser ca)
This function use the delegation and allow to manager to add a new heritage view

Specified by:
addHeritageView in interface Manager
Specified by:
addHeritageView in class AbstractTopManager
Parameters:
ca - : the classiferAnalyser for the new view

addDetailView

public void addDetailView(ClassifierAnalyser ca)
This function use the delegation and allow to manager to add a new detail view

Specified by:
addDetailView in interface Manager
Specified by:
addDetailView in class AbstractTopManager
Parameters:
ca - : the classiferAnalyser for the new view

addCompositionView

public void addCompositionView(ClassifierAnalyser ca)
This function use the delegation and allow to manager to add a new composition view

Specified by:
addCompositionView in interface Manager
Specified by:
addCompositionView in class AbstractTopManager
Parameters:
ca - : the classiferAnalyser for the new view

addSearchView

public void addSearchView(ClassifierAnalyser ca)
This function use the delegation and allow to manager to add a new search view This has no been implemented yet, the search results are not views

Specified by:
addSearchView in interface Manager
Specified by:
addSearchView in class AbstractTopManager
Parameters:
ca - : the classiferAnalyser for the new view

getJSplitPane1

public javax.swing.JSplitPane getJSplitPane1()
This function returns the split pane

Returns:
the main splitpane