BioLegato 0.7.0 GDE Menu support plugin

org.biolegato.ezmenu
Class EZMenuItem

java.lang.Object
  extended by org.biolegato.ezmenu.EZMenuItem
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

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

The window used for setting options to run a menu command.

Author:
Graham Alvare, Brian Fristensky

Field Summary
protected  java.util.LinkedList<java.util.Map<java.lang.String,java.lang.Object>> variables
          The list of variabes currently used by the window.
 
Constructor Summary
EZMenuItem(java.lang.String name)
          Creates a new instance of a run window.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Makes the window visible so all of the variables may be set.
 void addButton(javax.swing.Action run)
          Adds a button to the window.
 void addVariable(java.util.Map<java.lang.String,java.lang.Object> variable)
          This function is used to add variables to the window.
 void setCommand(java.lang.String command)
          Changes the command string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variables

protected java.util.LinkedList<java.util.Map<java.lang.String,java.lang.Object>> variables
The list of variabes currently used by the window. This is used for creating the runtime command string.

Constructor Detail

EZMenuItem

public EZMenuItem(java.lang.String name)
Creates a new instance of a run window.

Parameters:
name - the name of the run window.
Method Detail

addButton

public void addButton(javax.swing.Action run)
Adds a button to the window.

Parameters:
run - the AbstractAction used to create the button

addVariable

public void addVariable(java.util.Map<java.lang.String,java.lang.Object> variable)
This function is used to add variables to the window.

Parameters:
variable - the variable to add to the window

setCommand

public void setCommand(java.lang.String command)
Changes the command string.

Parameters:
command - the command string to change to.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Makes the window visible so all of the variables may be set.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
event - this is currently ignored

BioLegato 0.7.0 GDE Menu support plugin

Copyright © 2008-2010 University of Manitoba.