149 * <li><a href="#addDocumentListener(javax.swing.event.DocumentListener)">addDocumentListener(DocumentListener)</a>
150 * <li><a href="#removeDocumentListener(javax.swing.event.DocumentListener)">removeDocumentListener(DocumentListener)</a>
151 * <li><a href="#addUndoableEditListener(javax.swing.event.UndoableEditListener)">addUndoableEditListener(UndoableEditListener)</a>
152 * <li><a href="#removeUndoableEditListener(javax.swing.event.UndoableEditListener)">removeUndoableEditListener(UndoableEditListener)</a>
153 * </ul>
154 *
155 * <p><b>Properties</b>
156 * <p>
157 * Document implementations will generally have some set of properties
158 * associated with them at runtime. Two well known properties are the
159 * <a href="#StreamDescriptionProperty">StreamDescriptionProperty</a>,
160 * which can be used to describe where the <code>Document</code> came from,
161 * and the <a href="#TitleProperty">TitleProperty</a>, which can be used to
162 * name the <code>Document</code>. The methods related to the properties are:
163 * <ul>
164 * <li>{@link #getProperty(java.lang.Object)}
165 * <li>{@link #putProperty(java.lang.Object, java.lang.Object)}
166 * </ul>
167 *
168 * <p>For more information on the <code>Document</code> class, see
169 * <a href="http://java.sun.com/products/jfc/tsc">The Swing Connection</a>
170 * and most particularly the article,
171 * <a href="http://java.sun.com/products/jfc/tsc/articles/text/element_interface">
172 * The Element Interface</a>.
173 *
174 * @author Timothy Prinzing
175 *
176 * @see javax.swing.event.DocumentEvent
177 * @see javax.swing.event.DocumentListener
178 * @see javax.swing.event.UndoableEditEvent
179 * @see javax.swing.event.UndoableEditListener
180 * @see Element
181 * @see Position
182 * @see AttributeSet
183 */
184 public interface Document {
185
186 /**
187 * Returns number of characters of content currently
188 * in the document.
189 *
|
149 * <li><a href="#addDocumentListener(javax.swing.event.DocumentListener)">addDocumentListener(DocumentListener)</a>
150 * <li><a href="#removeDocumentListener(javax.swing.event.DocumentListener)">removeDocumentListener(DocumentListener)</a>
151 * <li><a href="#addUndoableEditListener(javax.swing.event.UndoableEditListener)">addUndoableEditListener(UndoableEditListener)</a>
152 * <li><a href="#removeUndoableEditListener(javax.swing.event.UndoableEditListener)">removeUndoableEditListener(UndoableEditListener)</a>
153 * </ul>
154 *
155 * <p><b>Properties</b>
156 * <p>
157 * Document implementations will generally have some set of properties
158 * associated with them at runtime. Two well known properties are the
159 * <a href="#StreamDescriptionProperty">StreamDescriptionProperty</a>,
160 * which can be used to describe where the <code>Document</code> came from,
161 * and the <a href="#TitleProperty">TitleProperty</a>, which can be used to
162 * name the <code>Document</code>. The methods related to the properties are:
163 * <ul>
164 * <li>{@link #getProperty(java.lang.Object)}
165 * <li>{@link #putProperty(java.lang.Object, java.lang.Object)}
166 * </ul>
167 *
168 * <p>For more information on the <code>Document</code> class, see
169 * <a href="http://www.oracle.com/technetwork/java/javase/tech/articles-jsp-139072.html">The Swing Connection</a>
170 * and most particularly the article,
171 * <a href="http://java.sun.com/products/jfc/tsc/articles/text/element_interface">
172 * The Element Interface</a>.
173 *
174 * @author Timothy Prinzing
175 *
176 * @see javax.swing.event.DocumentEvent
177 * @see javax.swing.event.DocumentListener
178 * @see javax.swing.event.UndoableEditEvent
179 * @see javax.swing.event.UndoableEditListener
180 * @see Element
181 * @see Position
182 * @see AttributeSet
183 */
184 public interface Document {
185
186 /**
187 * Returns number of characters of content currently
188 * in the document.
189 *
|