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

  1. package com.sun.java.swing;
  2.  
  3. import com.sun.java.accessibility.Accessible;
  4. import com.sun.java.accessibility.AccessibleComponent;
  5. import com.sun.java.accessibility.AccessibleContext;
  6. import com.sun.java.accessibility.AccessibleRole;
  7. import com.sun.java.accessibility.AccessibleState;
  8. import com.sun.java.accessibility.AccessibleStateSet;
  9. import java.awt.Color;
  10. import java.awt.Container;
  11. import java.awt.Cursor;
  12. import java.awt.Dimension;
  13. import java.awt.Font;
  14. import java.awt.FontMetrics;
  15. import java.awt.Point;
  16. import java.awt.Rectangle;
  17. import java.awt.event.FocusListener;
  18. import java.io.Serializable;
  19. import java.util.Locale;
  20.  
  21. class JApplet$AccessibleJApplet extends AccessibleContext implements Serializable, AccessibleComponent {
  22.    // $FF: synthetic field
  23.    private final JApplet this$0;
  24.  
  25.    public AccessibleRole getAccessibleRole() {
  26.       return AccessibleRole.FRAME;
  27.    }
  28.  
  29.    public AccessibleStateSet getAccessibleStateSet() {
  30.       AccessibleStateSet var1 = SwingUtilities.getAccessibleStateSet(this.this$0);
  31.       var1.add(AccessibleState.ACTIVE);
  32.       return var1;
  33.    }
  34.  
  35.    public Accessible getAccessibleParent() {
  36.       Container var1 = this.this$0.getParent();
  37.       return var1 instanceof Accessible ? (Accessible)var1 : null;
  38.    }
  39.  
  40.    public int getAccessibleIndexInParent() {
  41.       return SwingUtilities.getAccessibleIndexInParent(this.this$0);
  42.    }
  43.  
  44.    public int getAccessibleChildrenCount() {
  45.       return SwingUtilities.getAccessibleChildrenCount(this.this$0);
  46.    }
  47.  
  48.    public Accessible getAccessibleChild(int var1) {
  49.       return SwingUtilities.getAccessibleChild(this.this$0, var1);
  50.    }
  51.  
  52.    public Locale getLocale() {
  53.       return this.this$0.getLocale();
  54.    }
  55.  
  56.    public AccessibleComponent getAccessibleComponent() {
  57.       return this;
  58.    }
  59.  
  60.    public Color getBackground() {
  61.       return this.this$0.getBackground();
  62.    }
  63.  
  64.    public void setBackground(Color var1) {
  65.       this.this$0.setBackground(var1);
  66.    }
  67.  
  68.    public Color getForeground() {
  69.       return this.this$0.getForeground();
  70.    }
  71.  
  72.    public void setForeground(Color var1) {
  73.       this.this$0.setForeground(var1);
  74.    }
  75.  
  76.    public Cursor getCursor() {
  77.       return this.this$0.getCursor();
  78.    }
  79.  
  80.    public void setCursor(Cursor var1) {
  81.       this.this$0.setCursor(var1);
  82.    }
  83.  
  84.    public Font getFont() {
  85.       return this.this$0.getFont();
  86.    }
  87.  
  88.    public void setFont(Font var1) {
  89.       this.this$0.setFont(var1);
  90.    }
  91.  
  92.    public FontMetrics getFontMetrics(Font var1) {
  93.       return this.this$0.getFontMetrics(var1);
  94.    }
  95.  
  96.    public boolean isEnabled() {
  97.       return this.this$0.isEnabled();
  98.    }
  99.  
  100.    public void setEnabled(boolean var1) {
  101.       this.this$0.setEnabled(var1);
  102.    }
  103.  
  104.    public boolean isVisible() {
  105.       return this.this$0.isVisible();
  106.    }
  107.  
  108.    public void setVisible(boolean var1) {
  109.       this.this$0.setVisible(var1);
  110.    }
  111.  
  112.    public boolean isShowing() {
  113.       return this.this$0.isShowing();
  114.    }
  115.  
  116.    public boolean contains(Point var1) {
  117.       return this.this$0.contains(var1);
  118.    }
  119.  
  120.    public Point getLocationOnScreen() {
  121.       return this.this$0.getLocationOnScreen();
  122.    }
  123.  
  124.    public Point getLocation() {
  125.       return this.this$0.getLocation();
  126.    }
  127.  
  128.    public void setLocation(Point var1) {
  129.       this.this$0.setLocation(var1);
  130.    }
  131.  
  132.    public Rectangle getBounds() {
  133.       return this.this$0.getBounds();
  134.    }
  135.  
  136.    public void setBounds(Rectangle var1) {
  137.       this.this$0.setBounds(var1);
  138.    }
  139.  
  140.    public Dimension getSize() {
  141.       return this.this$0.getSize();
  142.    }
  143.  
  144.    public void setSize(Dimension var1) {
  145.       this.this$0.setSize(var1);
  146.    }
  147.  
  148.    public Accessible getAccessibleAt(Point var1) {
  149.       return SwingUtilities.getAccessibleAt(this.this$0, var1);
  150.    }
  151.  
  152.    public boolean isFocusTraversable() {
  153.       return this.this$0.isFocusTraversable();
  154.    }
  155.  
  156.    public void requestFocus() {
  157.       this.this$0.requestFocus();
  158.    }
  159.  
  160.    public void addFocusListener(FocusListener var1) {
  161.       this.this$0.addFocusListener(var1);
  162.    }
  163.  
  164.    public void removeFocusListener(FocusListener var1) {
  165.       this.this$0.removeFocusListener(var1);
  166.    }
  167.  
  168.    JApplet$AccessibleJApplet(JApplet var1) {
  169.       this.this$0 = var1;
  170.       this.this$0 = var1;
  171.    }
  172. }
  173.