Examples of OdfTextListLevelStyleBullet


Examples of org.odftoolkit.odfdom.incubator.doc.text.OdfTextListLevelStyleBullet

  }

  private void checkNodes(Node node, int position)
  {
    OdfTextListStyle theStyle;
    OdfTextListLevelStyleBullet bullet;
    OdfTextListLevelStyleNumber number;
    TextListLevelStyleElementBase base;

    int i = 0;
    theStyle = (OdfTextListStyle) node;
    Assert.assertTrue("Style name " +
      theStyle.getStyleNameAttribute() + " incorrect",
      theStyle.getStyleNameAttribute().equals("list" + position));
    node = node.getFirstChild();

    while (node != null)
    {
      Assert.assertTrue("More nodes than specifiers",
        i < levelType[position].length);
      String[] surround;
      if (prefixSuffix[position][i].equals("/"))
      {
        surround = new String[2];
        surround[0] = "";
        surround[1] = "";
      }
      else
      {
        surround = prefixSuffix[position][i].split("/");
      }
      if (levelType[position][i].equals("B"))
      {
        Assert.assertTrue("Class is not bullet",
          node instanceof OdfTextListLevelStyleBullet);
        bullet = (OdfTextListLevelStyleBullet) node;
        base = bullet;
        Assert.assertEquals("Prefix incorrect",
          surround[0], bullet.getStyleNumPrefixAttribute());
        Assert.assertEquals("Suffix incorrect", surround[1],
          bullet.getStyleNumSuffixAttribute());
      }
      else
      {
        Assert.assertTrue("Class is not number",
          node instanceof OdfTextListLevelStyleNumber);
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.