implements Accessible : Accessible « javax.accessibility « Java by API






implements Accessible

  


import java.awt.IllegalComponentStateException;
import java.util.Locale;

import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleStateSet;

public class Main implements Accessible {
  public AccessibleContext getAccessibleContext() {
    return new AccessibleContext() {

      @Override
      public AccessibleRole getAccessibleRole() {
        return null;
      }

      @Override
      public AccessibleStateSet getAccessibleStateSet() {
        return null;
      }

      @Override
      public int getAccessibleIndexInParent() {
        return 0;
      }

      @Override
      public int getAccessibleChildrenCount() {
        return 0;
      }

      @Override
      public Accessible getAccessibleChild(int i) {
        return null;
      }

      @Override
      public Locale getLocale() throws IllegalComponentStateException {
        return null;
      }
    };
  }
}

   
    
  








Related examples in the same category

1.Accessible: getAccessibleContext()