|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.presentation.Slide
public class Slide
Slide represents the presentation slide feature of the ODF
document. Slide provides methods to get the slide index,get the
content of the current slide, etc.
| Nested Class Summary | |
|---|---|
static class |
Slide.SlideBuilder
This is a tool class which supplies all of the slide creation detail. |
static class |
Slide.SlideLayout
A slide layout is a slide with some predefine placeholder. |
| Method Summary | |
|---|---|
List |
addList()
Add a new List to this container. |
List |
addList(ListDecorator decorator)
Add a List with specified ListDecorator to this container. |
void |
clearList()
Remove all Lists from this container. |
static Slide |
getInstance(DrawPageElement pageElement)
Get a presentation slide instance by an instance of DrawPageElement. |
OdfElement |
getListContainerElement()
Get the ODF element which can have |
Iterator<List> |
getListIterator()
Return an Iterator of the Lists in this ListContainer. |
Notes |
getNotesPage()
Get the Notes page of this slide |
DrawPageElement |
getOdfElement()
Return an instance of DrawPageElement which represents
presentation slide feature. |
int |
getSlideIndex()
Get the current slide index in the owner document. |
String |
getSlideName()
Get the current slide name. |
boolean |
removeList(List list)
Remove the existing List from this container. |
void |
setSlideName(String name)
Set the current slide name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Slide getInstance(DrawPageElement pageElement)
DrawPageElement.
pageElement - an instance of DrawPageElement
Slide that can represent
pageElementpublic DrawPageElement getOdfElement()
DrawPageElement which represents
presentation slide feature.
DrawPageElementpublic int getSlideIndex()
-1, if the odf element which can represent this slide is not in the document DOM tree
public String getSlideName()
If the "draw:name" attribute is not present there, create an unique name for this slide
public void setSlideName(String name)
It must be unique slide name in the current presentation. If not, an IllegalArgumentException will be thrown. If the given name is null, an IllegalArgumentException will also be thrown.
name - the new name of the current slide
IllegalArgumentException - if the given name is null or it is not unique in the current
presentation.public Notes getNotesPage()
Notes which represent the notes page
of the current slidepublic OdfElement getListContainerElement()
ListContainer
getListContainerElement in interface ListContainerpublic List addList()
ListContainer
addList in interface ListContainerpublic List addList(ListDecorator decorator)
ListContainer
addList in interface ListContainerdecorator - the specified ListDecorator
public void clearList()
ListContainer
clearList in interface ListContainerpublic Iterator<List> getListIterator()
ListContainer
getListIterator in interface ListContainerIteratorpublic boolean removeList(List list)
ListContainer
removeList in interface ListContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||