org.odftoolkit.odfdom.doc.draw
Enum OdfDrawPage.SlideLayout

java.lang.Object
  extended by java.lang.Enum<OdfDrawPage.SlideLayout>
      extended by org.odftoolkit.odfdom.doc.draw.OdfDrawPage.SlideLayout
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OdfDrawPage.SlideLayout>
Enclosing class:
OdfDrawPage

public static enum OdfDrawPage.SlideLayout
extends java.lang.Enum<OdfDrawPage.SlideLayout>

A slide layout is a slide with some predefine placeholder. we define some template layout as below: "blank" template is a slide without any filled element, "title_only" template is a slide with a title, "title_outline" template is a slide with a title and an outline block, "title_text" template is a slide with a title and a text block, "title_two_text_block" template is a slide with a title two text blocks.


Enum Constant Summary
BLANK
          Blank, a blank presentation
TITLE_ONLY
          Title_only, the presentation with title only
TITLE_OUTLINE
          Title_outline, the presentation with outline
TITLE_PLUS_2_TEXT_BLOCK
          title_two_text_block, the presentation with title and two text blocks
TITLE_PLUS_TEXT
          Title_text, the presentation with title and one text block
 
Method Summary
static OdfDrawPage.SlideLayout enumValueOf(java.lang.String aString)
          Return a template slide type.
 java.lang.String toString()
          Return the slide template type value.
static java.lang.String toString(OdfDrawPage.SlideLayout aEnum)
          Return the name of the template slide type.
static OdfDrawPage.SlideLayout valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OdfDrawPage.SlideLayout[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BLANK

public static final OdfDrawPage.SlideLayout BLANK
Blank, a blank presentation


TITLE_ONLY

public static final OdfDrawPage.SlideLayout TITLE_ONLY
Title_only, the presentation with title only


TITLE_OUTLINE

public static final OdfDrawPage.SlideLayout TITLE_OUTLINE
Title_outline, the presentation with outline


TITLE_PLUS_TEXT

public static final OdfDrawPage.SlideLayout TITLE_PLUS_TEXT
Title_text, the presentation with title and one text block


TITLE_PLUS_2_TEXT_BLOCK

public static final OdfDrawPage.SlideLayout TITLE_PLUS_2_TEXT_BLOCK
title_two_text_block, the presentation with title and two text blocks

Method Detail

values

public static OdfDrawPage.SlideLayout[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OdfDrawPage.SlideLayout c : OdfDrawPage.SlideLayout.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OdfDrawPage.SlideLayout valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Return the slide template type value.

Overrides:
toString in class java.lang.Enum<OdfDrawPage.SlideLayout>
Returns:
the template type value

toString

public static java.lang.String toString(OdfDrawPage.SlideLayout aEnum)
Return the name of the template slide type.

Parameters:
aEnum - a SlideLayout
Returns:
the name of slide template type

enumValueOf

public static OdfDrawPage.SlideLayout enumValueOf(java.lang.String aString)
Return a template slide type.

Parameters:
aString - the name of the slide template type
Returns:
a SlideLayout


Copyright © 2008-2010 ODF Toolkit Project. All Rights Reserved.