Package org.odftoolkit.simple.text.list

Examples of org.odftoolkit.simple.text.list.List.addItem()


      Textbox titleBox = slidepre.getTextboxByUsage(PresentationClass.TITLE).get(0);
        titleBox.setTextContent("This is the title");

      Textbox outline = slidepre.getTextboxByUsage(PresentationClass.OUTLINE).get(0);
        List txtList = outline.addList();
        txtList.addItem("List Item1");
        txtList.addItem("List Item2");

      doc.save(ResourceUtilities.newTestOutputFile("slidetitlelayout.odp"));
     
      //load
View Full Code Here


        titleBox.setTextContent("This is the title");

      Textbox outline = slidepre.getTextboxByUsage(PresentationClass.OUTLINE).get(0);
        List txtList = outline.addList();
        txtList.addItem("List Item1");
        txtList.addItem("List Item2");

      doc.save(ResourceUtilities.newTestOutputFile("slidetitlelayout.odp"));
     
      //load
      doc = PresentationDocument.loadDocument(ResourceUtilities.getTestResourceAsStream("slidetitlelayout.odp"));
View Full Code Here

      rect1.height = 8000;
      Chart newChart = slidepre.createChart(title, lables, legends, data, rect);
     
      Textbox outline = slidepre.getTextboxByUsage(PresentationClass.OUTLINE).get(0);
        List txtList = outline.addList();
        txtList.addItem("List Item1");
        txtList.addItem("List Item2");
     
      Chart newChart1 = slidepre.createChart(title1, lables1, legends1, data1, rect1);

      doc.save(ResourceUtilities.newTestOutputFile("slidetitlelayout.odp"));
View Full Code Here

      Chart newChart = slidepre.createChart(title, lables, legends, data, rect);
     
      Textbox outline = slidepre.getTextboxByUsage(PresentationClass.OUTLINE).get(0);
        List txtList = outline.addList();
        txtList.addItem("List Item1");
        txtList.addItem("List Item2");
     
      Chart newChart1 = slidepre.createChart(title1, lables1, legends1, data1, rect1);

      doc.save(ResourceUtilities.newTestOutputFile("slidetitlelayout.odp"));
     
View Full Code Here

     
      Chart newChart = slidepre.createChart(title, lables, legends, data, rect);
      Chart newChart1 = slidepre.createChart(title1, lables1, legends1, data1, rect1);
      Textbox outline = slidepre.getTextboxByUsage(PresentationClass.OUTLINE).get(0);
        List txtList = outline.addList();
        txtList.addItem("List Item1");
        txtList.addItem("List Item2");
        Chart newChart2 = slidepre.createChart(title2, lables2, legends2, data2, rect2);
     
      doc.save(ResourceUtilities.newTestOutputFile("slidetitlelayout.odp"));
     
View Full Code Here

      Chart newChart = slidepre.createChart(title, lables, legends, data, rect);
      Chart newChart1 = slidepre.createChart(title1, lables1, legends1, data1, rect1);
      Textbox outline = slidepre.getTextboxByUsage(PresentationClass.OUTLINE).get(0);
        List txtList = outline.addList();
        txtList.addItem("List Item1");
        txtList.addItem("List Item2");
        Chart newChart2 = slidepre.createChart(title2, lables2, legends2, data2, rect2);
     
      doc.save(ResourceUtilities.newTestOutputFile("slidetitlelayout.odp"));
     
      //load
View Full Code Here

      java.util.List<Textbox> boxList = slide1.getTextboxByUsage(PresentationDocument.PresentationClass.OUTLINE);
      Assert.assertNotNull(boxList);
      Assert.assertEquals(2, boxList.size());
      Textbox leftTextbox = boxList.get(0);
      List list1 = leftTextbox.addList();
      list1.addItem("Test outline1");
      list1.addItem("Test outline2");

      presentDoc.save(ResourceUtilities.newTestOutputFile("abc.odp"));
    } catch (Exception e) {
      Logger.getLogger(TextBoxTest.class.getName()).log(Level.SEVERE, null, e);
View Full Code Here

      Assert.assertNotNull(boxList);
      Assert.assertEquals(2, boxList.size());
      Textbox leftTextbox = boxList.get(0);
      List list1 = leftTextbox.addList();
      list1.addItem("Test outline1");
      list1.addItem("Test outline2");

      presentDoc.save(ResourceUtilities.newTestOutputFile("abc.odp"));
    } catch (Exception e) {
      Logger.getLogger(TextBoxTest.class.getName()).log(Level.SEVERE, null, e);
      Assert.fail();
View Full Code Here

      java.util.List<Textbox> boxList = slide1.getTextboxByUsage(PresentationDocument.PresentationClass.OUTLINE);
      Assert.assertNotNull(boxList);
      Assert.assertEquals(2, boxList.size());
      Textbox leftTextbox = boxList.get(0);
      List list1 = leftTextbox.addList();
      list1.addItem("Test outline1");
      list1.addItem("Test outline2");
     
      //
      Textbox rightTextbox = boxList.get(1);
      Assert.assertNotNull(rightTextbox);
View Full Code Here

      Assert.assertNotNull(boxList);
      Assert.assertEquals(2, boxList.size());
      Textbox leftTextbox = boxList.get(0);
      List list1 = leftTextbox.addList();
      list1.addItem("Test outline1");
      list1.addItem("Test outline2");
     
      //
      Textbox rightTextbox = boxList.get(1);
      Assert.assertNotNull(rightTextbox);
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.