Logo Search packages:      
Sourcecode: wims version File versions

ActionTranslator.java

package rene.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
A translator for Actions.
*/

00010 public class ActionTranslator implements ActionListener
{   String Name;
    DoActionListener C;
    ActionEvent E;
    public ActionTranslator (DoActionListener c, String name)
    {   Name=name; C=c;
    }
    public void actionPerformed (ActionEvent e)
    {   E=e;
      C.doAction(Name);
    }
    public void trigger ()
    { C.doAction(Name);
    }
}

Generated by  Doxygen 1.6.0   Back to index