home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / IBM VisualAge for Java Enterprise v4.0 Retail / ivj40 / setup / IDE.Cab / F77574_BasicSmartGuideButtonsUIActionHandler.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-04-25  |  1.5 KB  |  38 lines

  1. package com.ibm.ivb.sguides.basic;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5. import java.util.EventObject;
  6.  
  7. class BasicSmartGuideButtonsUI$ActionHandler implements ActionListener {
  8.    // $FF: synthetic field
  9.    private final BasicSmartGuideButtonsUI this$0;
  10.  
  11.    public void actionPerformed(ActionEvent var1) {
  12.       Object var2 = ((EventObject)var1).getSource();
  13.       String var3 = null;
  14.       if (var2 == this.this$0.sgbuttons.backButton) {
  15.          var3 = "BackCommand";
  16.       } else if (var2 == this.this$0.sgbuttons.nextButton) {
  17.          var3 = "NextCommand";
  18.       } else if (var2 == this.this$0.sgbuttons.finishButton) {
  19.          var3 = "FinishCommand";
  20.       } else if (var2 == this.this$0.sgbuttons.cancelButton) {
  21.          var3 = "CancelCommand";
  22.       } else if (var2 == this.this$0.sgbuttons.helpButton) {
  23.          var3 = "HelpCommand";
  24.       }
  25.  
  26.       if (var3 != null) {
  27.          ActionEvent var4 = new ActionEvent(this.this$0.sgbuttons, 1001, var3);
  28.          this.this$0.sgbuttons.fireActionPerformed(var4);
  29.       }
  30.  
  31.    }
  32.  
  33.    BasicSmartGuideButtonsUI$ActionHandler(BasicSmartGuideButtonsUI var1) {
  34.       this.this$0 = var1;
  35.       this.this$0 = var1;
  36.    }
  37. }
  38.