Package java.awt

Examples of java.awt.List$AccessibleAWTList$AccessibleAWTListChild


   CheckboxMenuItem b3 = new CheckboxMenuItem();
   harness.check(b5.getName(), "chkmenuitem3");
   harness.check(b4.getName(), "chkmenuitem4");
   harness.check(b3.getName(), "chkmenuitem5");
  
   List c0 = new List();
   List c1 = new List();
   List c2 = new List();
   harness.check(c0.getName(), "list0");
   harness.check(c1.getName(), "list1");
   harness.check(c2.getName(), "list2");
   List c3 = new List();
   List c4 = new List();
   List c5 = new List();
   harness.check(c5.getName(), "list3");
   harness.check(c4.getName(), "list4");
   harness.check(c3.getName(), "list5");
  
   MenuBar d0 = new MenuBar();
   MenuBar d1 = new MenuBar();
View Full Code Here


  public void test8(TestHarness harness)
  {
    // Again, testing that deselect works on more than one
    // item when Multimode is set to true.
    list = new List();
    list.setMultipleMode(true);
    list.add("item1");
    list.add("item2");
    list.add("item3");
    list.select(0);
View Full Code Here

  }

  public void test9(TestHarness harness)
  {
    // Testing clear.
    list = new List();
    list.setMultipleMode(false);
    list.add("item1");
    list.add("item2");
    list.add("item3");
    list.add("item4");
View Full Code Here

  }

  public void test10(TestHarness harness)
  {
    // Again, testing clear.
    list = new List();
    list.setMultipleMode(true);
    list.add("item1");
    list.add("item2");
    list.add("item3");
    list.add("item4");
View Full Code Here

  public void test11(TestHarness harness)
  {
    // Testing delItem on one item and when
    // multipleMode is set to false.
    list = new List();
    list.setMultipleMode(false);
    list.add("item1");
    list.add("item2");
    list.add("item3");
    list.select(2);
View Full Code Here

  public void test12(TestHarness harness)
  {
    // Testing delItem on two items and when
    // multipleMode is set to true.
    list = new List();
    list.setMultipleMode(true);
    list.add("item1");
    list.add("item2");
    list.add("item3");
    list.select(0);
View Full Code Here

  }

  public void test13(TestHarness harness)
  {
    // Testing delItems when multipleMode is set to false.
    list = new List();
    list.setMultipleMode(false);
    list.add("item1");
    list.add("item2");
    list.add("item3");
    list.select(2);
View Full Code Here

  }

  public void test14(TestHarness harness)
  {
    //Testing delItems when mulitpleMode is set to true.
    list = new List();
    list.setMultipleMode(true);
    list.add("item1");
    list.add("item2");
    list.add("item3");
    list.add("item4");
View Full Code Here

  public void test15(TestHarness harness)
  {
    // Testing behaviour when index passed is invalid.

    // Testing deselect.
    list = new List();
    list.add("item1");
    list.select(0);
    list.deselect(1);
    harness.check(list.isSelected(0), true);
View Full Code Here

  public void test16(TestHarness harness)
  {
    // Testing what happens when a selected item
    // is selected again.
    list = new List();
    list.setMultipleMode(false);
    list.add("item1");
    list.select(0);
    list.select(0);
    harness.check(list.isSelected(0), true);
View Full Code Here

TOP

Related Classes of java.awt.List$AccessibleAWTList$AccessibleAWTListChild

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.