home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / copyjava.exe / com / sun / java / swing / AbstractButton$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-02-26  |  1.4 KB  |  34 lines

  1. package com.sun.java.swing;
  2.  
  3. import com.sun.java.accessibility.AccessibleState;
  4. import java.awt.event.FocusEvent;
  5. import java.awt.event.FocusListener;
  6.  
  7. final class AbstractButton$1 implements FocusListener {
  8.    // $FF: synthetic field
  9.    private final AbstractButton this$0;
  10.  
  11.    public void focusGained(FocusEvent var1) {
  12.       if (this.this$0.accessibleContext != null) {
  13.          this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.FOCUSED);
  14.       }
  15.  
  16.    }
  17.  
  18.    public void focusLost(FocusEvent var1) {
  19.       if (this.this$0.accessibleContext != null) {
  20.          this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.FOCUSED);
  21.       }
  22.  
  23.       if (this.this$0.isFocusPainted()) {
  24.          this.this$0.repaint();
  25.       }
  26.  
  27.    }
  28.  
  29.    // $FF: synthetic method
  30.    AbstractButton$1(AbstractButton var1) {
  31.       this.this$0 = var1;
  32.    }
  33. }
  34.