fr.esrf.tangoatk.widget.util.jdraw
Class JDCreationMenu

java.lang.Object
  extended by fr.esrf.tangoatk.widget.util.jdraw.JDCreationMenu
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class JDCreationMenu
extends java.lang.Object
implements java.awt.event.ActionListener

A convenience class to handle object creation Menu and Toolbar.

See Also:
JDrawEditorFrame

Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JMenu getMenu()
          Returns the JDObject creation menu.
 javax.swing.JToolBar getToolbar()
          Returns the JDObject creation toolbar.
 void setEditor(JDrawEditor editor)
          Sets the editor where object will be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getToolbar

public javax.swing.JToolBar getToolbar()
Returns the JDObject creation toolbar.


getMenu

public javax.swing.JMenu getMenu()
Returns the JDObject creation menu.


setEditor

public void setEditor(JDrawEditor editor)
Sets the editor where object will be created.

Parameters:
editor - Parent editor.

actionPerformed

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