Examples of VerticalAlignmentType


Examples of org.odftoolkit.simple.style.StyleTypeDefinitions.VerticalAlignmentType

      System.out.println(fcell.getStringValue());
     
      StyleTypeDefinitions.VerticalAlignmentType align = fcell.getVerticalAlignmentType();
      Assert.assertEquals(StyleTypeDefinitions.VerticalAlignmentType.TOP, align);
     
      VerticalAlignmentType vertType = VerticalAlignmentType.enumValueOf("top");
      Assert.assertEquals(VerticalAlignmentType.TOP, vertType);
      Assert.assertEquals("top", vertType.toString());
     
      VerticalAlignmentType testnull = VerticalAlignmentType.enumValueOf("");
      Assert.assertEquals(null, testnull);
     
      try {
        VerticalAlignmentType testa = VerticalAlignmentType.enumValueOf("aaaa");
        Assert.assertEquals("Unsupported Vertical Alignment Type!", testa);
      } catch (Exception e) {
        Assert.assertTrue(e instanceof RuntimeException);
        Assert.assertEquals("Unsupported Vertical Alignment Type!", e.getMessage());
      }
View Full Code Here

Examples of org.odftoolkit.simple.style.StyleTypeDefinitions.VerticalAlignmentType

   * will be taken into considered.
   *
   * @return the vertical alignment
   */
  public VerticalAlignmentType getVerticalAlignment() {
    VerticalAlignmentType tempAlign = null;
    TableCellProperties properties = getTableCellPropertiesForRead();
    if (properties != null) {
      tempAlign = properties.getVerticalAlignment();
    }
    if (tempAlign != null)
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.