home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / plaf / metal / MetalComboBoxUI$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  924 b   |  28 lines

  1. package javax.swing.plaf.metal;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import javax.swing.AbstractAction;
  5.  
  6. final class MetalComboBoxUI$1 extends AbstractAction {
  7.    // $FF: synthetic field
  8.    private final MetalComboBoxUI this$0;
  9.  
  10.    // $FF: synthetic method
  11.    MetalComboBoxUI$1(MetalComboBoxUI var1) {
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public void actionPerformed(ActionEvent var1) {
  16.       if (this.this$0.isPopupVisible()) {
  17.          this.this$0.selectNextPossibleValue();
  18.       } else {
  19.          this.this$0.setPopupVisible(this.this$0.metalGetComboBox(), true);
  20.       }
  21.  
  22.    }
  23.  
  24.    public boolean isEnabled() {
  25.       return this.this$0.metalGetComboBox().isEnabled();
  26.    }
  27. }
  28.