gui.highlighting
Interface StructuredDocument

All Superinterfaces:
javax.swing.text.Document, javax.swing.text.Element

public interface StructuredDocument
extends javax.swing.text.Document, javax.swing.text.Element

62 * An extension of Document which allows the content of a document to be 63 * specified by a hierarchy of elements. This allows the content of many 64 * document types to be mainpulated in an abstract way without regard to the 65 * phyiscal representation of the documents. 66 * 67 *

StructuredDocuments are one of the elementary components that is 68 * manipulated by the JXTA core. StructuredDocuments are used to represent most 69 * core objects such as peer, peergroup or pipe advertisements. 70 * 71 * @see net.jxta.document.Document 72 * @see net.jxta.document.StructuredTextDocument 73 * @see net.jxta.document.StructuredDocumentFactory 74


Field Summary
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Method Summary
 javax.swing.text.Element createElement(java.lang.Object key)
          78 * Create a new element without value 79 * 80 * @param key The key of the element to be created.
 javax.swing.text.Element createElement(java.lang.Object key, java.lang.Object value)
          86 * Create a new element with value 87 * 88 * @param key The name of the element to be created.
 
Methods inherited from interface javax.swing.text.Document
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
 
Methods inherited from interface javax.swing.text.Element
getAttributes, getDocument, getElement, getElementCount, getElementIndex, getEndOffset, getName, getParentElement, getStartOffset, isLeaf
 

Method Detail

createElement

javax.swing.text.Element createElement(java.lang.Object key)
78 * Create a new element without value 79 * 80 * @param key The key of the element to be created. 81 * @return The new element. 82


createElement

javax.swing.text.Element createElement(java.lang.Object key,
                                       java.lang.Object value)
86 * Create a new element with value 87 * 88 * @param key The name of the element to be created. 89 * @param value The value of the element to be created or 90 * null if no value is desired. 91 * @return The new element. 92 * 93