Package org.pdfclown.documents.interaction.forms

Examples of org.pdfclown.documents.interaction.forms.ChoiceItems


    }

    // 4.e. Choice fields.
    {
      // Preparing the item list that we'll use for choice fields (a list box and a combo box (see below))...
      ChoiceItems items = new ChoiceItems(document);
      items.add(new ChoiceItem("Joan Baez")); // NOTE: Explicitly-created item.
      items.add("Tracy Chapman"); // NOTE: Implicitly-created item (syntactic sugar for lazy guys...).
      items.add("Carmen Consoli");
      items.add("Cristina Dona'");
      items.add("PJ Harvey");
      items.add("Billie Holiday");
      items.add("Janis Joplin");
      items.add("Angelique Kidjo");
      items.add("Joni Mitchell");
      items.add("Alanis Morissette");
      items.add("Yael Naim");
      items.add("Sinead O'Connor");
      items.add("Brisa Roche'");
      items.add("Nina Simone");
      items.add("Skin");
      items.add("Fatima Spar");
      items.add("Paola Turci");
      items.add("Sarah Vaughan");

      // 4.e1. List box.
      {
        composer.showText(
          "ListBox:",
View Full Code Here

TOP

Related Classes of org.pdfclown.documents.interaction.forms.ChoiceItems

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.