home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / JSplitPane$AccessibleJSplitPane.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.8 KB  |  57 lines

  1. package javax.swing;
  2.  
  3. import javax.accessibility.AccessibleRole;
  4. import javax.accessibility.AccessibleState;
  5. import javax.accessibility.AccessibleStateSet;
  6. import javax.accessibility.AccessibleValue;
  7.  
  8. public class JSplitPane$AccessibleJSplitPane extends JComponent.AccessibleJComponent implements AccessibleValue {
  9.    // $FF: synthetic field
  10.    private final JSplitPane this$0;
  11.  
  12.    protected JSplitPane$AccessibleJSplitPane(JSplitPane var1) {
  13.       super(var1);
  14.       this.this$0 = var1;
  15.    }
  16.  
  17.    public AccessibleStateSet getAccessibleStateSet() {
  18.       AccessibleStateSet var1 = super.getAccessibleStateSet();
  19.       if (this.this$0.getOrientation() == 0) {
  20.          var1.add(AccessibleState.VERTICAL);
  21.       } else {
  22.          var1.add(AccessibleState.HORIZONTAL);
  23.       }
  24.  
  25.       return var1;
  26.    }
  27.  
  28.    public AccessibleValue getAccessibleValue() {
  29.       return this;
  30.    }
  31.  
  32.    public Number getCurrentAccessibleValue() {
  33.       return new Integer(this.this$0.getDividerLocation());
  34.    }
  35.  
  36.    public boolean setCurrentAccessibleValue(Number var1) {
  37.       if (var1 instanceof Integer) {
  38.          this.this$0.setDividerLocation(var1.intValue());
  39.          return true;
  40.       } else {
  41.          return false;
  42.       }
  43.    }
  44.  
  45.    public Number getMinimumAccessibleValue() {
  46.       return new Integer(this.this$0.getUI().getMinimumDividerLocation(this.this$0));
  47.    }
  48.  
  49.    public Number getMaximumAccessibleValue() {
  50.       return new Integer(this.this$0.getUI().getMaximumDividerLocation(this.this$0));
  51.    }
  52.  
  53.    public AccessibleRole getAccessibleRole() {
  54.       return AccessibleRole.SPLIT_PANE;
  55.    }
  56. }
  57.