Package com.independentsoft.office.odf
Class IndexTitle
java.lang.Object
com.independentsoft.office.odf.IndexTitle
- All Implemented Interfaces:
IContentElement,IIndexContent
Represents the title of an index.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Contains a collection of IIndexContent objects.Returns all content elements.getName()Gets the name for an index title.Returns the parent content element.Specifies that an authorization is required for removing the protection of a section.getStyle()Gets the style.booleanSpecifies whether a section is protected.voidSets the name for an index title.voidsetParent(IContentElement parent)Sets the parent content element.voidsetProtected(boolean isProtected)Specifies whether a section is protected.voidsetProtectionKey(String protectionKey)Specifies that an authorization is required for removing the protection of a section.voidSets the style.toString()Converts the value of the current IndexTitle object to its equivalent string representation.
-
Constructor Details
-
IndexTitle
public IndexTitle()Initializes a new instance of the IndexTitle class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIIndexContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current IndexTitle object to its equivalent string representation. -
getContent
Contains a collection of IIndexContent objects.- Returns:
- the content
-
getName
Gets the name for an index title. The name serves as a unique identifier for an index title.- Returns:
- the name
-
setName
Sets the name for an index title. The name serves as a unique identifier for an index title.- Parameters:
name- the new name
-
getStyle
Gets the style.- Returns:
- the style
-
setStyle
Sets the style.- Parameters:
style- the new style
-
isProtected
public boolean isProtected()Specifies whether a section is protected.- Returns:
- true, if is protected
-
setProtected
public void setProtected(boolean isProtected)Specifies whether a section is protected.- Parameters:
isProtected- the new protected
-
getProtectionKey
Specifies that an authorization is required for removing the protection of a section.- Returns:
- the protection key
-
setProtectionKey
Specifies that an authorization is required for removing the protection of a section.- Parameters:
protectionKey- the new protection key
-