Package gnu.testlet.javax.swing.JList.AccessibleJList

Examples of gnu.testlet.javax.swing.JList.AccessibleJList.TestList


public class getAccessibleRole implements Testlet
{

  public void test(TestHarness harness)
  {
    TestList l = new TestList(new String[]{"item"});
    TestList.AccessibleTestList al =
      (TestList.AccessibleTestList) l.getAccessibleContext();
    AccessibleContext child = (AccessibleContext) al.getAccessibleChild(0);
    harness.check(child.getAccessibleRole(), AccessibleRole.LABEL);
  }
View Full Code Here


public class getBackground implements Testlet
{

  public void test(TestHarness harness)
  {
    TestList l = new TestList(new String[]{"item"});
    TestList.AccessibleTestList al =
      (TestList.AccessibleTestList) l.getAccessibleContext();
    l.setBackground(Color.RED);
    AccessibleComponent child = (AccessibleComponent) al.getAccessibleChild(0);
    harness.check(child.getBackground(), Color.RED);
    l.setBackground(Color.GREEN);
    harness.check(child.getBackground(), Color.GREEN);
  }
View Full Code Here

public class getForeground implements Testlet
{

  public void test(TestHarness harness)
  {
    TestList l = new TestList(new String[]{"item"});
    TestList.AccessibleTestList al =
      (TestList.AccessibleTestList) l.getAccessibleContext();
    l.setForeground(Color.RED);
    AccessibleComponent child = (AccessibleComponent) al.getAccessibleChild(0);
    harness.check(child.getForeground(), Color.RED);
    l.setForeground(Color.GREEN);
    harness.check(child.getForeground(), Color.GREEN);
  }
View Full Code Here

TOP

Related Classes of gnu.testlet.javax.swing.JList.AccessibleJList.TestList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.