|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.doc.presentation.OdfSlide
public class OdfSlide
OdfSlide represents the presentation slide feature of the ODF document.
OdfSlide provides methods to get the slide index,get the content of the current slide, etc.
| Nested Class Summary | |
|---|---|
static class |
OdfSlide.SlideLayout
A slide layout is a slide with some predefine placeholder. |
| Method Summary | |
|---|---|
static OdfSlide |
getInstance(DrawPageElement pageElement)
Get a presentation slide instance by an instance of DrawPageElement. |
OdfPresentationNotes |
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. |
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 OdfSlide getInstance(DrawPageElement pageElement)
DrawPageElement.
pageElement - an instance of DrawPageElement
OdfSlide 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 OdfPresentationNotes getNotesPage()
OdfPresentationNotes which represent the notes page of the current slide
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||