|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.text.Section
public class Section
This class represents section definition in text document. It provides methods to manipulate section in text document, such as getting/setting section name, moving section and so on.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static Section |
getInstance(TextSectionElement element)
Get a section instance by an object of TextSectionElement. |
String |
getName()
Return the name of this section |
TextSectionElement |
getOdfElement()
Return an instance of TextSectionElement which represents
this section. |
Document |
getOwnerDocument()
Return the ODF document which this section belongs to. |
void |
remove()
Remove this section from the document. |
void |
setName(String name)
Set the value of this section name |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Section getInstance(TextSectionElement element)
TextSectionElement.
element - - an object of TextSectionElement
Section that can represent
TextSectionElementpublic Document getOwnerDocument()
public String getName()
public void setName(String name)
name - - the value of name to be setpublic void remove()
All the linked resources which are only linked to this section will be removed too.
public TextSectionElement getOdfElement()
TextSectionElement which represents
this section.
TextSectionElement which represents
this sectionpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||