ter.SDK.controler
Class MyCompositionControler

java.lang.Object
  |
  +--ter.SDK.controler.AbstractControler
        |
        +--ter.SDK.controler.CompositionControler
              |
              +--ter.SDK.controler.MyCompositionControler
All Implemented Interfaces:
java.awt.event.ActionListener, Controler, java.util.EventListener, java.awt.event.MouseListener, Plugin

public class MyCompositionControler
extends CompositionControler
implements java.awt.event.ActionListener, java.awt.event.MouseListener

Title:

Description:

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
MyCompositionControler()
          the default constructor
MyCompositionControler(Manager m, View mcv)
          the constructor with a Manager and the View
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          the actionPerformed function
 void applyEvent(ter.SDK.controler.MyCompositionControler.MyBoolean bool, javax.swing.JPanel jPanel, javax.swing.JButton jb)
           
 java.lang.String getDefaultView()
          get the default view associates with this controler
 java.lang.String getName()
          this function returns the name of the String
 boolean isControlable(View v)
          tests the given view for compatibility with this controler
 void listenToView()
          this function add all the listener to all the graphics elements
 void mouseClicked(java.awt.event.MouseEvent e)
          the mouse clicked Event
 void mouseEntered(java.awt.event.MouseEvent e)
          the enterred mouse event
 void mouseExited(java.awt.event.MouseEvent e)
          the mouse exited event
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
          the mouse released event
 
Methods inherited from class ter.SDK.controler.CompositionControler
getType, getView
 
Methods inherited from class ter.SDK.controler.AbstractControler
create, getManager, setManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyCompositionControler

public MyCompositionControler()
the default constructor


MyCompositionControler

public MyCompositionControler(Manager m,
                              View mcv)
the constructor with a Manager and the View

Parameters:
m - the manager that manage this view
mcv - the view that use this controler
Method Detail

listenToView

public void listenToView()
this function add all the listener to all the graphics elements

Specified by:
listenToView in interface Controler

getName

public java.lang.String getName()
this function returns the name of the String

Specified by:
getName in interface Plugin
Returns:
the name of the class

isControlable

public boolean isControlable(View v)
tests the given view for compatibility with this controler

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

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 default view

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
the mouse clicked Event

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - the MouseEvent

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
the enterred mouse event

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - the MouseEvent

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
the mouse exited event

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - the MouseEvent

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
the mouse released event

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - the MouseEvent

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
the actionPerformed function

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the ActionEvent

applyEvent

public void applyEvent(ter.SDK.controler.MyCompositionControler.MyBoolean bool,
                       javax.swing.JPanel jPanel,
                       javax.swing.JButton jb)