org.sourceforge.espro.gui
Class MethodSwitcher

java.lang.Object
  extended by org.sourceforge.espro.gui.MethodSwitcher

public class MethodSwitcher
extends java.lang.Object

The MethodSwitcher supports a menu that allows the method to be switched for a given item. This is primary used in the MethodSettingsEditor. Normally you will not need this.

Version:
2.0
Author:
(c) 2007 Martin Kaffanke

Nested Class Summary
protected  class MethodSwitcher.ChangeMethodAction
          The ChangeMethodAction is an action which can be used to change the elicitation method for the current item.
 
Method Summary
static MethodSwitcher getInstance()
          The MethodSwitcher runs as a singleton class, so this is how you get the instance.
 javax.swing.JMenu getMenu()
          Returns a JMenu which holds all the methods to choose.
 javax.swing.JMenuBar getMenuBar()
          Returns a MenuBar with only one menu, the method menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MethodSwitcher getInstance()
The MethodSwitcher runs as a singleton class, so this is how you get the instance.

Returns:
An instance of the MethodSwitcher.

getMenu

public javax.swing.JMenu getMenu()
Returns a JMenu which holds all the methods to choose.

Returns:
The menu.

getMenuBar

public javax.swing.JMenuBar getMenuBar()
Returns a MenuBar with only one menu, the method menu.

Returns:
The MenuBar