|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.DefaultStyledDocument
javax.swing.text.html.HTMLDocument
com.lightdev.app.shtm.SHTMLDocument
public class SHTMLDocument
Extends HTMLDocument
by a custom reader which supports
the SPAN tag.
Nested Class Summary | |
---|---|
class |
SHTMLDocument.SHTMLReader
This reader extends HTMLDocument.HTMLReader by the capability to handle SPAN tags |
Nested classes/interfaces inherited from class javax.swing.text.html.HTMLDocument |
---|
javax.swing.text.html.HTMLDocument.BlockElement, javax.swing.text.html.HTMLDocument.HTMLReader, javax.swing.text.html.HTMLDocument.Iterator, javax.swing.text.html.HTMLDocument.RunElement |
Nested classes/interfaces inherited from class javax.swing.text.DefaultStyledDocument |
---|
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit, javax.swing.text.DefaultStyledDocument.ElementBuffer, javax.swing.text.DefaultStyledDocument.ElementSpec, javax.swing.text.DefaultStyledDocument.SectionElement |
Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument |
---|
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement |
Field Summary |
---|
Fields inherited from class javax.swing.text.html.HTMLDocument |
---|
AdditionalComments |
Fields inherited from class javax.swing.text.DefaultStyledDocument |
---|
buffer, BUFFER_SIZE_DEFAULT |
Fields inherited from class javax.swing.text.AbstractDocument |
---|
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName |
Fields inherited from interface javax.swing.text.Document |
---|
StreamDescriptionProperty, TitleProperty |
Constructor Summary | |
---|---|
SHTMLDocument()
Constructs an SHTMLDocument. |
|
SHTMLDocument(javax.swing.text.AbstractDocument.Content c,
javax.swing.text.html.StyleSheet styles)
Constructs an SHTMLDocument with the given content storage implementation and the given style/attribute storage mechanism. |
|
SHTMLDocument(javax.swing.text.html.StyleSheet styles)
Constructs an SHTMLDocument with the default content storage implementation and the given style/attribute storage mechanism. |
Method Summary | |
---|---|
void |
addAttributes(javax.swing.text.Element e,
javax.swing.text.AttributeSet a)
apply a set of attributes to a given document element |
java.lang.String |
getDocumentTitle()
get the title of this SHTMLDocument |
javax.swing.text.html.HTMLEditorKit.ParserCallback |
getReader(int pos)
Fetches the reader for the parser to use to load the document with HTML. |
java.lang.String |
getStyleRef()
get the style sheet reference of the document in this DocumentPane . |
boolean |
hasStyleRef()
check whether or not this SHTMLDocument has an explicit style sheet reference |
void |
insertStyleRef()
insert a style sheet reference into the head of this SHTMLDocument |
void |
removeElements(javax.swing.text.Element e,
int index,
int count)
Remove a consecutive group of child Elements |
void |
setDocumentTitle(java.lang.String title)
set the title of this SHTMLDocument |
Methods inherited from class javax.swing.text.html.HTMLDocument |
---|
create, createBranchElement, createDefaultRoot, createLeafElement, fireChangedUpdate, fireUndoableEditUpdate, getBase, getElement, getElement, getIterator, getParser, getPreservesUnknownTags, getReader, getStyleSheet, getTokenThreshold, insert, insertAfterEnd, insertAfterStart, insertBeforeEnd, insertBeforeStart, insertUpdate, processHTMLFrameHyperlinkEvent, setBase, setInnerHTML, setOuterHTML, setParagraphAttributes, setParser, setPreservesUnknownTags, setTokenThreshold |
Methods inherited from class javax.swing.text.DefaultStyledDocument |
---|
addDocumentListener, addStyle, getBackground, getCharacterElement, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getParagraphElement, getStyle, getStyleNames, removeDocumentListener, removeElement, removeStyle, removeUpdate, setCharacterAttributes, setLogicalStyle, styleChanged |
Methods inherited from class javax.swing.text.AbstractDocument |
---|
addUndoableEditListener, createPosition, dump, fireInsertUpdate, fireRemoveUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, insertString, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.text.Document |
---|
addUndoableEditListener, createPosition, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeUndoableEditListener, render |
Constructor Detail |
---|
public SHTMLDocument()
public SHTMLDocument(javax.swing.text.html.StyleSheet styles)
styles
- the stylespublic SHTMLDocument(javax.swing.text.AbstractDocument.Content c, javax.swing.text.html.StyleSheet styles)
c
- the container for the contentstyles
- the stylesMethod Detail |
---|
public void addAttributes(javax.swing.text.Element e, javax.swing.text.AttributeSet a)
e
- the element to apply attributes toa
- the set of attributes to applypublic void removeElements(javax.swing.text.Element e, int index, int count) throws javax.swing.text.BadLocationException
e
- the parent element to remove child elements fromindex
- the index of the first child element to removecount
- the number of child elements to remove
javax.swing.text.BadLocationException
public void setDocumentTitle(java.lang.String title)
title
- the title this document shall havepublic java.lang.String getDocumentTitle()
public void insertStyleRef()
public boolean hasStyleRef()
public java.lang.String getStyleRef()
DocumentPane
.
public javax.swing.text.html.HTMLEditorKit.ParserCallback getReader(int pos)
getReader
in class javax.swing.text.html.HTMLDocument
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |