javax.swing.text
Class DefaultStyledDocument.SectionElement

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.text.AbstractDocument.AbstractElement sample code for javax.swing.text.AbstractDocument.AbstractElement definition code for javax.swing.text.AbstractDocument.AbstractElement 
      extended by javax.swing.text.AbstractDocument.BranchElement sample code for javax.swing.text.AbstractDocument.BranchElement definition code for javax.swing.text.AbstractDocument.BranchElement 
          extended by javax.swing.text.DefaultStyledDocument.SectionElement
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet , Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element , MutableAttributeSet sample code for javax.swing.text.MutableAttributeSet definition code for javax.swing.text.MutableAttributeSet , TreeNode sample code for javax.swing.tree.TreeNode definition code for javax.swing.tree.TreeNode
Enclosing class:
DefaultStyledDocument sample code for javax.swing.text.DefaultStyledDocument definition code for javax.swing.text.DefaultStyledDocument

protected class DefaultStyledDocument.SectionElement
extends AbstractDocument.BranchElement sample code for javax.swing.text.AbstractDocument.BranchElement definition code for javax.swing.text.AbstractDocument.BranchElement

Default root element for a document... maps out the paragraphs/lines contained.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute sample code for javax.swing.text.AttributeSet.CharacterAttribute definition code for javax.swing.text.AttributeSet.CharacterAttribute , AttributeSet.ColorAttribute sample code for javax.swing.text.AttributeSet.ColorAttribute definition code for javax.swing.text.AttributeSet.ColorAttribute , AttributeSet.FontAttribute sample code for javax.swing.text.AttributeSet.FontAttribute definition code for javax.swing.text.AttributeSet.FontAttribute , AttributeSet.ParagraphAttribute sample code for javax.swing.text.AttributeSet.ParagraphAttribute definition code for javax.swing.text.AttributeSet.ParagraphAttribute
 
Field Summary
 
Fields inherited from interface javax.swing.text.AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet
NameAttribute sample code for javax.swing.text.AttributeSet.NameAttribute definition code for javax.swing.text.AttributeSet.NameAttribute , ResolveAttribute sample code for javax.swing.text.AttributeSet.ResolveAttribute definition code for javax.swing.text.AttributeSet.ResolveAttribute
 
Constructor Summary
DefaultStyledDocument.SectionElement sample code for javax.swing.text.DefaultStyledDocument.SectionElement.DefaultStyledDocument.SectionElement() definition code for javax.swing.text.DefaultStyledDocument.SectionElement.DefaultStyledDocument.SectionElement() ()
          Creates a new SectionElement.
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.swing.text.DefaultStyledDocument.SectionElement.getName() definition code for javax.swing.text.DefaultStyledDocument.SectionElement.getName() ()
          Gets the name of the element.
 
Methods inherited from class javax.swing.text.AbstractDocument.BranchElement sample code for javax.swing.text.AbstractDocument.BranchElement definition code for javax.swing.text.AbstractDocument.BranchElement
children sample code for javax.swing.text.AbstractDocument.BranchElement.children() definition code for javax.swing.text.AbstractDocument.BranchElement.children() , getAllowsChildren sample code for javax.swing.text.AbstractDocument.BranchElement.getAllowsChildren() definition code for javax.swing.text.AbstractDocument.BranchElement.getAllowsChildren() , getElement sample code for javax.swing.text.AbstractDocument.BranchElement.getElement(int) definition code for javax.swing.text.AbstractDocument.BranchElement.getElement(int) , getElementCount sample code for javax.swing.text.AbstractDocument.BranchElement.getElementCount() definition code for javax.swing.text.AbstractDocument.BranchElement.getElementCount() , getElementIndex sample code for javax.swing.text.AbstractDocument.BranchElement.getElementIndex(int) definition code for javax.swing.text.AbstractDocument.BranchElement.getElementIndex(int) , getEndOffset sample code for javax.swing.text.AbstractDocument.BranchElement.getEndOffset() definition code for javax.swing.text.AbstractDocument.BranchElement.getEndOffset() , getStartOffset sample code for javax.swing.text.AbstractDocument.BranchElement.getStartOffset() definition code for javax.swing.text.AbstractDocument.BranchElement.getStartOffset() , isLeaf sample code for javax.swing.text.AbstractDocument.BranchElement.isLeaf() definition code for javax.swing.text.AbstractDocument.BranchElement.isLeaf() , positionToElement sample code for javax.swing.text.AbstractDocument.BranchElement.positionToElement(int) definition code for javax.swing.text.AbstractDocument.BranchElement.positionToElement(int) , replace sample code for javax.swing.text.AbstractDocument.BranchElement.replace(int, int, javax.swing.text.Element[]) definition code for javax.swing.text.AbstractDocument.BranchElement.replace(int, int, javax.swing.text.Element[]) , toString sample code for javax.swing.text.AbstractDocument.BranchElement.toString() definition code for javax.swing.text.AbstractDocument.BranchElement.toString()
 
Methods inherited from class javax.swing.text.AbstractDocument.AbstractElement sample code for javax.swing.text.AbstractDocument.AbstractElement definition code for javax.swing.text.AbstractDocument.AbstractElement
addAttribute sample code for javax.swing.text.AbstractDocument.AbstractElement.addAttribute(java.lang.Object, java.lang.Object) definition code for javax.swing.text.AbstractDocument.AbstractElement.addAttribute(java.lang.Object, java.lang.Object) , addAttributes sample code for javax.swing.text.AbstractDocument.AbstractElement.addAttributes(javax.swing.text.AttributeSet) definition code for javax.swing.text.AbstractDocument.AbstractElement.addAttributes(javax.swing.text.AttributeSet) , containsAttribute sample code for javax.swing.text.AbstractDocument.AbstractElement.containsAttribute(java.lang.Object, java.lang.Object) definition code for javax.swing.text.AbstractDocument.AbstractElement.containsAttribute(java.lang.Object, java.lang.Object) , containsAttributes sample code for javax.swing.text.AbstractDocument.AbstractElement.containsAttributes(javax.swing.text.AttributeSet) definition code for javax.swing.text.AbstractDocument.AbstractElement.containsAttributes(javax.swing.text.AttributeSet) , copyAttributes sample code for javax.swing.text.AbstractDocument.AbstractElement.copyAttributes() definition code for javax.swing.text.AbstractDocument.AbstractElement.copyAttributes() , dump sample code for javax.swing.text.AbstractDocument.AbstractElement.dump(java.io.PrintStream, int) definition code for javax.swing.text.AbstractDocument.AbstractElement.dump(java.io.PrintStream, int) , getAttribute sample code for javax.swing.text.AbstractDocument.AbstractElement.getAttribute(java.lang.Object) definition code for javax.swing.text.AbstractDocument.AbstractElement.getAttribute(java.lang.Object) , getAttributeCount sample code for javax.swing.text.AbstractDocument.AbstractElement.getAttributeCount() definition code for javax.swing.text.AbstractDocument.AbstractElement.getAttributeCount() , getAttributeNames sample code for javax.swing.text.AbstractDocument.AbstractElement.getAttributeNames() definition code for javax.swing.text.AbstractDocument.AbstractElement.getAttributeNames() , getAttributes sample code for javax.swing.text.AbstractDocument.AbstractElement.getAttributes() definition code for javax.swing.text.AbstractDocument.AbstractElement.getAttributes() , getChildAt sample code for javax.swing.text.AbstractDocument.AbstractElement.getChildAt(int) definition code for javax.swing.text.AbstractDocument.AbstractElement.getChildAt(int) , getChildCount sample code for javax.swing.text.AbstractDocument.AbstractElement.getChildCount() definition code for javax.swing.text.AbstractDocument.AbstractElement.getChildCount() , getDocument sample code for javax.swing.text.AbstractDocument.AbstractElement.getDocument() definition code for javax.swing.text.AbstractDocument.AbstractElement.getDocument() , getIndex sample code for javax.swing.text.AbstractDocument.AbstractElement.getIndex(javax.swing.tree.TreeNode) definition code for javax.swing.text.AbstractDocument.AbstractElement.getIndex(javax.swing.tree.TreeNode) , getParent sample code for javax.swing.text.AbstractDocument.AbstractElement.getParent() definition code for javax.swing.text.AbstractDocument.AbstractElement.getParent() , getParentElement sample code for javax.swing.text.AbstractDocument.AbstractElement.getParentElement() definition code for javax.swing.text.AbstractDocument.AbstractElement.getParentElement() , getResolveParent sample code for javax.swing.text.AbstractDocument.AbstractElement.getResolveParent() definition code for javax.swing.text.AbstractDocument.AbstractElement.getResolveParent() , isDefined sample code for javax.swing.text.AbstractDocument.AbstractElement.isDefined(java.lang.Object) definition code for javax.swing.text.AbstractDocument.AbstractElement.isDefined(java.lang.Object) , isEqual sample code for javax.swing.text.AbstractDocument.AbstractElement.isEqual(javax.swing.text.AttributeSet) definition code for javax.swing.text.AbstractDocument.AbstractElement.isEqual(javax.swing.text.AttributeSet) , removeAttribute sample code for javax.swing.text.AbstractDocument.AbstractElement.removeAttribute(java.lang.Object) definition code for javax.swing.text.AbstractDocument.AbstractElement.removeAttribute(java.lang.Object) , removeAttributes sample code for javax.swing.text.AbstractDocument.AbstractElement.removeAttributes(javax.swing.text.AttributeSet) definition code for javax.swing.text.AbstractDocument.AbstractElement.removeAttributes(javax.swing.text.AttributeSet) , removeAttributes sample code for javax.swing.text.AbstractDocument.AbstractElement.removeAttributes(java.util.Enumeration) definition code for javax.swing.text.AbstractDocument.AbstractElement.removeAttributes(java.util.Enumeration) , setResolveParent sample code for javax.swing.text.AbstractDocument.AbstractElement.setResolveParent(javax.swing.text.AttributeSet) definition code for javax.swing.text.AbstractDocument.AbstractElement.setResolveParent(javax.swing.text.AttributeSet)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

DefaultStyledDocument.SectionElement sample code for javax.swing.text.DefaultStyledDocument.SectionElement() definition code for javax.swing.text.DefaultStyledDocument.SectionElement()

public DefaultStyledDocument.SectionElement()
Creates a new SectionElement.

Method Detail

getName sample code for javax.swing.text.DefaultStyledDocument.SectionElement.getName() definition code for javax.swing.text.DefaultStyledDocument.SectionElement.getName()

public String sample code for java.lang.String definition code for java.lang.String  getName()
Gets the name of the element.

Specified by:
getName sample code for javax.swing.text.Element.getName() definition code for javax.swing.text.Element.getName() in interface Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element
Overrides:
getName sample code for javax.swing.text.AbstractDocument.BranchElement.getName() definition code for javax.swing.text.AbstractDocument.BranchElement.getName() in class AbstractDocument.BranchElement sample code for javax.swing.text.AbstractDocument.BranchElement definition code for javax.swing.text.AbstractDocument.BranchElement
Returns:
the name