Back to index

wims  3.65+svn20090927
ButtonAction.java
Go to the documentation of this file.
00001 package rene.gui;
00002 
00003 import java.awt.*;
00004 import java.awt.event.*;
00005 
00013 public class ButtonAction extends Button
00014 {   DoActionListener C;
00015     String Name;
00016     ActionTranslator AT;
00017     public ButtonAction (DoActionListener c, String s, String name)
00018     {   super(s);
00019         C=c; Name=name;
00020         addActionListener(AT=new ActionTranslator(c,name));
00021         if (Global.NormalFont!=null) setFont(Global.NormalFont);
00022         if (Global.ControlBackground!=null) setBackground(Global.ControlBackground);
00023     }
00024     public ButtonAction (DoActionListener c, String s)
00025     {   this(c,s,s);
00026     }
00027     public ActionEvent getAction ()
00028     {  return AT.E;
00029     }
00030 }