gui
Class BSFAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gui.BSFAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class BSFAction
extends javax.swing.AbstractAction

Class to execute ooRexx code when a button or a menu item is clicked

See Also:
Serialized Form

Field Summary
 java.lang.Object element
          The gui element object
 java.util.Vector guiElements
          A Vector that contains the gui elements
 java.lang.String ooRexxCode
          The actual ooRexx code, that will be executed when the action is performed
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
BSFAction()
          Default constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Executes the ooRexx code
 void addElement(java.lang.Object o)
          Method to add an additional gui element to the vector, that can be accessed within the ooRexx code
 java.lang.Object getElement()
          Method that returns the gui element
 java.lang.String getOoRexxCode()
          Method that returns the ooRexx code
 void setElement(java.lang.Object o)
          Method to set the gui element and add it to the vector, so that it can be accessed within the ooRexx code
 void setOoRexxCode(java.lang.String code)
          Method to set the ooRexx code
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ooRexxCode

public java.lang.String ooRexxCode
The actual ooRexx code, that will be executed when the action is performed


element

public java.lang.Object element
The gui element object


guiElements

public java.util.Vector guiElements
A Vector that contains the gui elements

Constructor Detail

BSFAction

public BSFAction()
Default constructor

Method Detail

getOoRexxCode

public java.lang.String getOoRexxCode()
Method that returns the ooRexx code


setOoRexxCode

public void setOoRexxCode(java.lang.String code)
Method to set the ooRexx code


getElement

public java.lang.Object getElement()
Method that returns the gui element


setElement

public void setElement(java.lang.Object o)
Method to set the gui element and add it to the vector, so that it can be accessed within the ooRexx code


addElement

public void addElement(java.lang.Object o)
Method to add an additional gui element to the vector, that can be accessed within the ooRexx code


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Executes the ooRexx code