org.kaiwitte.workbench.ui.controller
Class ApplyPrototypeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.kaiwitte.workbench.ui.controller.ApplyPrototypeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public final class ApplyPrototypeAction
extends javax.swing.AbstractAction

An action to apply a template to a RecordReceiver. The templates can be defined by the user in the option dialog.

See Also:
QuickSearchPanel, NewRecordPanel, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ApplyPrototypeAction(MetaScheme scheme, java.lang.String name, RecordReceiver receiver, java.lang.String recordString)
          Creates a new instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Applies the template to the receiver.
 
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
 

Constructor Detail

ApplyPrototypeAction

public ApplyPrototypeAction(MetaScheme scheme,
                            java.lang.String name,
                            RecordReceiver receiver,
                            java.lang.String recordString)
Creates a new instance.

Parameters:
scheme - the scheme to be used
name - the name for this Action
receiver - the receiver of the prototype record
recordString - the string that defines the fields of the template record. Fields are separated by commata.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Applies the template to the receiver.

Parameters:
e - not used