home *** CD-ROM | disk | FTP | other *** search
/ Australian PC Authority 1999 May / may1999.iso / May / JBUILDER / JSAMPLES.Z / TablePanel$9.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-30  |  1.5 KB  |  41 lines

  1. import com.sun.java.swing.AbstractButton;
  2. import com.sun.java.swing.JRadioButton;
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5. import java.util.EventObject;
  6.  
  7. final class TablePanel$9 implements ActionListener {
  8.    // $FF: synthetic field
  9.    private final JRadioButton val$selectionModeButton3;
  10.    // $FF: synthetic field
  11.    private final JRadioButton val$selectionModeButton2;
  12.    // $FF: synthetic field
  13.    private final TablePanel this$0;
  14.    // $FF: synthetic field
  15.    private final JRadioButton val$selectionModeButton1;
  16.  
  17.    public void actionPerformed(ActionEvent var1) {
  18.       JRadioButton var2 = (JRadioButton)((EventObject)var1).getSource();
  19.       boolean var3 = ((AbstractButton)var2).isSelected();
  20.       if (var3) {
  21.          if (var2 == this.val$selectionModeButton1) {
  22.             this.this$0.tableView.setSelectionMode(0);
  23.          } else if (var2 == this.val$selectionModeButton2) {
  24.             this.this$0.tableView.setSelectionMode(1);
  25.          } else if (var2 == this.val$selectionModeButton3) {
  26.             this.this$0.tableView.setSelectionMode(2);
  27.          }
  28.       }
  29.  
  30.       this.this$0.tableView.repaint();
  31.    }
  32.  
  33.    // $FF: synthetic method
  34.    TablePanel$9(JRadioButton var1, JRadioButton var2, JRadioButton var3, TablePanel var4) {
  35.       this.val$selectionModeButton1 = var1;
  36.       this.val$selectionModeButton2 = var2;
  37.       this.val$selectionModeButton3 = var3;
  38.       this.this$0 = var4;
  39.    }
  40. }
  41.