jadex.swing
Class ClassViewController

java.lang.Object
  |
  +--jadex.swing.ClassViewController
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener

public class ClassViewController
extends java.lang.Object
implements java.awt.event.MouseListener

This class is used to control the activities in ClassDisplayer and ClassListDisplayer.


Inner Class Summary
protected  class ClassViewController.CancellAction
           
 
Field Summary
protected  java.beans.PropertyChangeSupport propertyChange
           
 
Constructor Summary
ClassViewController()
          Default constructor.
ClassViewController(java.lang.String classe, AceModel model)
          TA overloaded constructor.
 
Method Summary
 void addCancelActionListener(java.awt.event.ActionListener l)
          Add a actionListener for Cancel button.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          The addPropertyChangeListener method was generated to support the propertyChange field.
 void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
          The firePropertyChange method was generated to support the propertyChange field.
 AceModel getAceModel()
           
 java.lang.String getClassName()
          Gets the className property (java.lang.String) value.
 javax.swing.JPanel getCurrentPanel()
          Gets the currentPanel property (javax.swing.JPanel) value.
protected  java.beans.PropertyChangeSupport getPropertyChange()
          Accessor for the propertyChange field.
 void mouseClicked(java.awt.event.MouseEvent e)
          Invoked when the mouse has been clicked on a component.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse enters a component.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse exits a component.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          The removePropertyChangeListener method was generated to support the propertyChange field.
 void setAceModel(AceModel newValue)
          Set AceModel for displaying.
 void setClassName(java.lang.String className)
          Sets the className property (java.lang.String) value.
 void setCurrentPanel(javax.swing.JPanel currentPanel)
          Sets the currentPanel property (javax.swing.JPanel) value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChange

protected transient java.beans.PropertyChangeSupport propertyChange
Constructor Detail

ClassViewController

public ClassViewController()
Default constructor.

ClassViewController

public ClassViewController(java.lang.String classe,
                           AceModel model)
TA overloaded constructor.
Parameters:
classe - the name of the displaying class.
model - the AceModel for this classdisplay.
Method Detail

addCancelActionListener

public void addCancelActionListener(java.awt.event.ActionListener l)
Add a actionListener for Cancel button.
Parameters:
l - java.awt.event.ActionListener

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field.

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field.

getAceModel

public AceModel getAceModel()
Returns:
jadex.swing.AceModel

getClassName

public java.lang.String getClassName()
Gets the className property (java.lang.String) value.
Returns:
The className property value.
See Also:
setClassName(java.lang.String)

getCurrentPanel

public javax.swing.JPanel getCurrentPanel()
Gets the currentPanel property (javax.swing.JPanel) value.
Returns:
The currentPanel property value.
See Also:
setCurrentPanel(javax.swing.JPanel)

getPropertyChange

protected java.beans.PropertyChangeSupport getPropertyChange()
Accessor for the propertyChange field.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseListener
Invoked when the mouse has been clicked on a component.
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseListener
Invoked when the mouse enters a component.
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseListener
Invoked when the mouse exits a component.
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseListener
Invoked when a mouse button has been pressed on a component.
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Description copied from interface: java.awt.event.MouseListener
Invoked when a mouse button has been released on a component.
Specified by:
mouseReleased in interface java.awt.event.MouseListener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field.

setAceModel

public void setAceModel(AceModel newValue)
Set AceModel for displaying.
Parameters:
newValue - jadex.swing.AceModel.

setClassName

public void setClassName(java.lang.String className)
Sets the className property (java.lang.String) value.
Parameters:
className - The new value for the property.
See Also:
getClassName()

setCurrentPanel

public void setCurrentPanel(javax.swing.JPanel currentPanel)
Sets the currentPanel property (javax.swing.JPanel) value.
Parameters:
currentPanel - The new value for the property.
See Also:
getCurrentPanel()