home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / JInternalFrame$AccessibleJInternalFrame.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.6 KB  |  48 lines

  1. package javax.swing;
  2.  
  3. import javax.accessibility.AccessibleRole;
  4. import javax.accessibility.AccessibleValue;
  5.  
  6. public class JInternalFrame$AccessibleJInternalFrame extends JComponent.AccessibleJComponent implements AccessibleValue {
  7.    // $FF: synthetic field
  8.    private final JInternalFrame this$0;
  9.  
  10.    protected JInternalFrame$AccessibleJInternalFrame(JInternalFrame var1) {
  11.       super(var1);
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public String getAccessibleName() {
  16.       return super.accessibleName != null ? super.accessibleName : this.this$0.getTitle();
  17.    }
  18.  
  19.    public AccessibleRole getAccessibleRole() {
  20.       return AccessibleRole.INTERNAL_FRAME;
  21.    }
  22.  
  23.    public AccessibleValue getAccessibleValue() {
  24.       return this;
  25.    }
  26.  
  27.    public Number getCurrentAccessibleValue() {
  28.       return new Integer(this.this$0.getLayer());
  29.    }
  30.  
  31.    public Number getMaximumAccessibleValue() {
  32.       return new Integer(Integer.MAX_VALUE);
  33.    }
  34.  
  35.    public Number getMinimumAccessibleValue() {
  36.       return new Integer(Integer.MIN_VALUE);
  37.    }
  38.  
  39.    public boolean setCurrentAccessibleValue(Number var1) {
  40.       if (var1 instanceof Integer) {
  41.          this.this$0.setLayer((Integer)var1);
  42.          return true;
  43.       } else {
  44.          return false;
  45.       }
  46.    }
  47. }
  48.