Subversion Repositories wimsdev

Rev

Blame | Last modification | View Log | RSS feed

  1. package rene.gui;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5.  
  6. /**
  7. A translator for Actions.
  8. */
  9.  
  10. public class ActionTranslator implements ActionListener
  11. {   String Name;
  12.     DoActionListener C;
  13.     ActionEvent E;
  14.     public ActionTranslator (DoActionListener c, String name)
  15.     {   Name=name; C=c;
  16.     }
  17.     public void actionPerformed (ActionEvent e)
  18.     {   E=e;
  19.         C.doAction(Name);
  20.     }
  21.     public void trigger ()
  22.     {   C.doAction(Name);
  23.     }
  24. }
  25.