Ontimize 5.2072EN

com.ontimize.gui
Class DefaultToolBarListener

java.lang.Object
  extended bycom.ontimize.gui.DefaultToolBarListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, ToolBarListener

public class DefaultToolBarListener
extends java.lang.Object
implements ToolBarListener, java.awt.event.ActionListener

This class implements a default toolbar listener.

Author:
Imatia Innovation

Field Summary
protected  Application application
          A reference to application.
protected  javax.swing.JToolBar toolBar
          A reference to a toolbar.
 
Constructor Summary
DefaultToolBarListener()
          The class constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addToolBarToListenFor(javax.swing.JToolBar t)
          Set the JToolBar component to listen for
 void setApplication(Application application)
          Set a reference to the client application component
 void setInitialState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

application

protected Application application
A reference to application. By default, null.


toolBar

protected javax.swing.JToolBar toolBar
A reference to a toolbar. By default, null.

Constructor Detail

DefaultToolBarListener

public DefaultToolBarListener()
The class constructor. In this version, it is empty.

Method Detail

setApplication

public void setApplication(Application application)
Description copied from interface: ToolBarListener
Set a reference to the client application component

Specified by:
setApplication in interface ToolBarListener

addToolBarToListenFor

public void addToolBarToListenFor(javax.swing.JToolBar t)
Description copied from interface: ToolBarListener
Set the JToolBar component to listen for

Specified by:
addToolBarToListenFor in interface ToolBarListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setInitialState

public void setInitialState()
Specified by:
setInitialState in interface ToolBarListener

Ontimize