|
|||||||||
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.inet.html.InetHtmlDocument
public class InetHtmlDocument
The document is the controller component of the JWebEngine model. It provides access to the element tree and
the text content and provides updates to the view in case the model gets modified.
Another purpose of the document is to store additional information about the current content an how to
process this content. Since the model of the JEditorPane
prevents a direct access to the
current parser, writer and view any property has to be set in the current document instance.
Nested Class Summary | |
---|---|
class |
InetHtmlDocument.ExtendedDocuementEvent
Extends the DefaultDocumentEvent to support the update events by grouping the changes by paragraph element. |
class |
InetHtmlDocument.ImpliedElement
This is the implementation for an implied bloc element. |
class |
InetHtmlDocument.StyleSheetClearEdit
Undoable edit to replace stylesheets. |
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 |
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 | |
---|---|
static java.lang.Object |
BREAK_MODE_OVERFLOW
This mode is standard for HTML, it will never break within a word |
static java.lang.Object |
BREAK_MODE_WORDBREAK
This mode allows words to be broken, if they are wider than their block. |
static java.lang.Object |
BREAK_MODE_WORDBREAKINLINE
This mode allows words to be broken, if they are wider than their block. |
static int |
DOCTYPE_FRAMESET
|
static int |
DOCTYPE_HTML
|
static int |
DOCTYPE_STRICT
|
static int |
DOCTYPE_TRANSIENT
|
static int |
DOCTYPE_UNKNOWN
|
static int |
DOCTYPE_XHTML
|
static java.lang.Object |
FLAG_INIT
An Element-Attribute key. |
static int |
MAJOR_VERSION
|
static java.lang.String |
MEDIA_PRINT
The media target print. |
static java.lang.String |
MEDIA_SCREEN
|
static java.lang.Object |
PROPERTY_BREAK_MODE
This is a hint for the rendering device how to handle words which are wider than their block |
static java.lang.Object |
PROPERTY_CONFIGURATION
A Document property key, expected Type: com.inet.html.InetHtmlConfiguration, the Document configuration |
static java.lang.Object |
PROPERTY_DEFAULT_FONT
A Document property key, expected Type: java.awt.Font, the default font for empty documents |
static java.lang.Object |
PROPERTY_DROP_UNKNOWN_STYLES
A Document property key, expected Type: Boolean, if true unknown styles will not be stored in the document |
static java.lang.Object |
PROPERTY_IGNORE_NAMESPACES
Some applications define their own namespace to add additional informations to an XHTML document. |
static java.lang.Object |
PROPERTY_INDENT_SPACE
A Document property key. |
static java.lang.Object |
PROPERTY_MEDIA
Sets the type of media, this document will render to. |
static java.lang.Object |
PROPERTY_PERSISTENT_STYLES
A Document property key, expected Type: com.inet.html.Styles, these style information will be used as default styles whenever the document is created or cleared. |
static java.lang.Object |
PROPERTY_TAB_WIDTH
If this property is set and has an integer value greater zero, tab stops will be enabled. |
static java.lang.Object |
PROPERTY_TIMEOUT
Defines the timeout for the renderer. |
static java.lang.Object |
PROPERTY_USE_FONT_FALLBACK
If there are characters which cannot be displayed with a certain font, which has been set to and element, JWebEngine can use a fallback and search all known font for one, which can display the character. |
static java.lang.Object |
PROPERTY_WRITE_HIERARCHY
A Document property key. |
Fields inherited from class javax.swing.text.html.HTMLDocument |
---|
AdditionalComments |
Fields inherited from class javax.swing.text.DefaultStyledDocument |
---|
BUFFER_SIZE_DEFAULT |
Fields inherited from class javax.swing.text.AbstractDocument |
---|
BidiElementName, ContentElementName, ElementNameAttribute, ParagraphElementName, SectionElementName |
Fields inherited from interface javax.swing.text.Document |
---|
StreamDescriptionProperty, TitleProperty |
Constructor Summary | |
---|---|
InetHtmlDocument()
Creates an empty document and creates the default empty structure of an HTML Document |
Method Summary | |
---|---|
void |
addAttribute(javax.swing.text.AttributeSet attrs,
java.lang.Object name,
java.lang.Object value)
Adds the value to the attribute set if the value is not null |
void |
changeIndent(int step,
int offset,
int length,
boolean increase)
Modifies the indet of a paragraph or list item. |
void |
changeListStatus(int offset,
int length,
boolean numberedList)
This functions performs, what on may expect when clicking on a list button. |
void |
checkInit(javax.swing.text.Element elem)
Checks whether the attributes for this view already were set and if not, sets them. |
javax.swing.text.AbstractDocument.BranchElement |
createAnnonymousElement(javax.swing.text.Element parent)
Creates a implied paragraph element. |
int |
findNextBlank(int startOffset,
boolean directionForward)
Tries to find the next space or line break in the specified direction |
java.awt.Color |
getBackground(javax.swing.text.Element elem)
Returns the background color of an element |
java.net.URL |
getBase()
|
int |
getBlockStart(int pos)
Returns the position where the content block at this position starts. |
static java.lang.String |
getCachedString(java.lang.String value)
This function guarantees to return always the same object for a string. |
javax.swing.text.Element |
getCharacterElement(int pos)
|
InetHtmlConfiguration |
getConfiguration()
Returns the currently used configuration. |
java.util.Dictionary<java.lang.Object,java.lang.Object> |
getDocumentProperties()
|
com.inet.html.utils.EmbeddedImage[] |
getEmbeddedImages()
Returns a list with the reference to all images used in IMG-Tags in this document. |
static java.awt.Font |
getFont(javax.swing.text.Element elem)
Returns the font of an element NOTE: This function is for model-purpose ONLY! |
static java.awt.Font |
getFont(javax.swing.text.Element elem,
float size)
Returns the font of an element. |
static float |
getFontSize(javax.swing.text.Element elem)
Returns the font size of an element |
java.awt.Color |
getForeground(javax.swing.text.Element elem)
Returns the foreground color of an element |
float |
getHtmlVersion()
Returns the HTML version of this document depending on the defined version and variant |
javax.swing.text.html.HTMLDocument.Iterator |
getIterator(javax.swing.text.html.HTML.Tag t)
|
int |
getLength()
Returns the last possible offset in this document |
int |
getLowerContentBoundary(int pos,
javax.swing.text.Element topLevelParagraph)
Find the next paragraph change in negative direction. |
int |
getModelLength()
This is the length spanned by the model. |
javax.swing.text.Element |
getNextParagraphElement(int pos,
javax.swing.text.Element root)
Gets the paragraph element at the offset pos . |
javax.swing.text.Element |
getParagraphElement(int pos)
|
javax.swing.text.Element |
getParagraphElement(int pos,
javax.swing.text.Element root)
Gets the paragraph element at the offset pos . |
int |
getRevision()
The revision increases with every change, that causes an update event.} |
int |
getSiteCount()
The site counter is increased every time the model is cleared.} |
java.util.Enumeration<?> |
getStyleNames()
Fetches a list of the currently used styles. |
StyleResolver |
getStyleResolver()
Returns the style resolver, which is bound to this document to resolve the CSS styles |
Styles |
getStyleSheet(java.lang.String nm)
Returns the style with the given name. |
int |
getUpperContentBoundary(int pos,
javax.swing.text.Element topLevelParagraph)
Find the next paragraph change in positive direction. |
java.net.URL |
getURLwithReferrer(java.net.URL url)
|
void |
insertAfterEnd(javax.swing.text.Element elem,
java.lang.String htmlText)
|
void |
insertAfterStart(javax.swing.text.Element elem,
java.lang.String htmlText)
|
void |
insertBeforeEnd(javax.swing.text.Element elem,
java.lang.String htmlText)
|
void |
insertBeforeStart(javax.swing.text.Element elem,
java.lang.String htmlText)
|
void |
insertHRule(int pos)
A horizontal rule is a very special object. |
void |
insertHTML(java.lang.String html,
int position)
Insert the content of a HTML formated string at the given position |
void |
insertImage(java.awt.Image image,
int pos,
java.io.File location)
Inserts an image, without requiring an URL. |
void |
insertImage(java.awt.Image image,
int pos,
java.lang.String alt,
java.io.File location)
Inserts an image, without requiring an URL. |
void |
insertString(int offs,
java.lang.String str,
javax.swing.text.AttributeSet a)
|
boolean |
isAllowInternalImages()
Returns whether pasted images will be accepted |
boolean |
isLocked()
Check if there is a write lock. |
static boolean |
isReady()
Checks for external preconditions |
void |
parse(java.io.Reader in,
int pos)
Parses the content read from in and stores the generated model into the the document
doc starting at position pos |
void |
pasteHTML(java.lang.String html,
int start,
int end)
Paste a HTML content into a given selection range. |
void |
pasteHTML(java.lang.String html,
int start,
int end,
java.lang.Object sourceID)
Paste a HTML content into a given selection range. |
void |
performParagraphBreak(int pos)
This function does what is in most cases expected if you press return . |
boolean |
readStylesOfVirtualTags()
This flag modifies the the behavior of the default StyleResolver . |
void |
remove(int offs,
int len)
|
void |
removeElement(javax.swing.text.AttributeSet selector,
int start,
int end,
boolean keepStyles)
Removes the first element found int the tree which matches the selector attributes. |
void |
removeImpl(int offs,
int len,
com.inet.html.InetHtmlDocument.EventList list)
Implentation of remove, holds no WriteLock, fires no events, just doe's it's job |
void |
replace(int offset,
int length,
java.lang.String text,
javax.swing.text.AttributeSet attrs)
|
void |
setAllowInternalImages(boolean allowInternalImages)
Set to false to block pasted images. |
void |
setBase(java.net.URL base)
|
void |
setCharacterAttributes(int offset,
int length,
javax.swing.text.AttributeSet s,
boolean replace)
Sets the attributes for characters. |
void |
setCharacterAttributes(int offset,
int length,
javax.swing.text.AttributeSet s,
boolean replace,
boolean forceStacking)
Sets the attributes for characters. |
void |
setDocType(int docType)
Set the document type |
void |
setDocumentProperties(java.util.Dictionary<java.lang.Object,java.lang.Object> x)
|
void |
setDocumentProperty(java.lang.Object key,
java.lang.Object value)
Adds or sets a document property |
void |
setDocVariant(int docVariant)
Sets the variant of this document |
void |
setDocVersion(float docVersion)
Sets the document version, typically 3.2 or 4.01 |
void |
setParagraphAttributes(int offset,
int length,
javax.swing.text.AttributeSet s,
boolean replace)
Sets attributes for a paragraph. |
Methods inherited from class javax.swing.text.html.HTMLDocument |
---|
getElement, getElement, getParser, getPreservesUnknownTags, getReader, getReader, getStyleSheet, getTokenThreshold, processHTMLFrameHyperlinkEvent, setInnerHTML, setOuterHTML, setParser, setPreservesUnknownTags, setTokenThreshold |
Methods inherited from class javax.swing.text.DefaultStyledDocument |
---|
addDocumentListener, addStyle, getBackground, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getStyle, removeDocumentListener, removeStyle, setLogicalStyle |
Methods inherited from class javax.swing.text.AbstractDocument |
---|
addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getEndPosition, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, removeUndoableEditListener, render, setAsynchronousLoadPriority, setDocumentFilter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.text.Document |
---|
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getProperty, getRootElements, getStartPosition, getText, getText, putProperty, removeDocumentListener, removeUndoableEditListener, render |
Field Detail |
---|
public static final int MAJOR_VERSION
public static final java.lang.Object FLAG_INIT
fillAttributes
on this element before reading it's styles.
public static final int DOCTYPE_UNKNOWN
public static final int DOCTYPE_HTML
public static final int DOCTYPE_XHTML
public static final int DOCTYPE_STRICT
public static final int DOCTYPE_TRANSIENT
public static final int DOCTYPE_FRAMESET
public static final java.lang.Object PROPERTY_INDENT_SPACE
public static final java.lang.Object PROPERTY_WRITE_HIERARCHY
public static final java.lang.Object PROPERTY_CONFIGURATION
public static final java.lang.Object PROPERTY_DEFAULT_FONT
public static final java.lang.Object PROPERTY_DROP_UNKNOWN_STYLES
public static final java.lang.Object PROPERTY_MEDIA
http://www.w3.org/TR/CSS21/media.html
public static final java.lang.String MEDIA_SCREEN
public static final java.lang.String MEDIA_PRINT
public static final java.lang.Object PROPERTY_PERSISTENT_STYLES
public static final java.lang.Object PROPERTY_IGNORE_NAMESPACES
public static final java.lang.Object PROPERTY_TIMEOUT
public static final java.lang.Object PROPERTY_TAB_WIDTH
public static final java.lang.Object PROPERTY_BREAK_MODE
public static final java.lang.Object BREAK_MODE_OVERFLOW
public static final java.lang.Object BREAK_MODE_WORDBREAK
public static final java.lang.Object BREAK_MODE_WORDBREAKINLINE
public static final java.lang.Object PROPERTY_USE_FONT_FALLBACK
Boolean.FALSE
. By default it is active.
Constructor Detail |
---|
public InetHtmlDocument()
Method Detail |
---|
public static final boolean isReady()
public StyleResolver getStyleResolver()
getStyleResolver
in interface CssDocument
public boolean isLocked()
public void parse(java.io.Reader in, int pos) throws java.io.IOException, javax.swing.text.BadLocationException
in
and stores the generated model into the the document
doc
starting at position pos
in
- The HTML inputpos
- The position within the document to start inserting the elements
java.io.IOException
- Thrown the the input reader
javax.swing.text.BadLocationException
- Will be thrown if pos
is not within the content rangepublic java.awt.Color getForeground(javax.swing.text.Element elem)
elem
- the element to check
public java.awt.Color getBackground(javax.swing.text.Element elem)
elem
- the element to check
public static float getFontSize(javax.swing.text.Element elem)
elem
- The element to query
elem
in pixelpublic static java.awt.Font getFont(javax.swing.text.Element elem)
HtmlRootView
instead!
elem
- The element to query
elem
public static java.awt.Font getFont(javax.swing.text.Element elem, float size)
HtmlRootView
instead!
elem
- The element to querysize
- The font size of this element
elem
public javax.swing.text.AbstractDocument.BranchElement createAnnonymousElement(javax.swing.text.Element parent)
createAnnonymousElement
in interface CssDocument
parent
- the parent for the generated element
public void insertAfterEnd(javax.swing.text.Element elem, java.lang.String htmlText) throws javax.swing.text.BadLocationException, java.io.IOException
insertAfterEnd
in class javax.swing.text.html.HTMLDocument
javax.swing.text.BadLocationException
java.io.IOException
public void insertHTML(java.lang.String html, int position)
html
- The content to insertposition
- insert offsetpublic void pasteHTML(java.lang.String html, int start, int end)
html
- the content to insertstart
- the start offsetend
- the end offsetpublic void pasteHTML(java.lang.String html, int start, int end, java.lang.Object sourceID)
html
- the content to insertstart
- the start offsetend
- the end offsetsourceID
- the sourceID can be any object or null. The sourceID will be used to relate the content
with it's global CSS. So, if there are several paste from the same source, it's global CSS can be
reused.public void insertAfterStart(javax.swing.text.Element elem, java.lang.String htmlText) throws javax.swing.text.BadLocationException, java.io.IOException
insertAfterStart
in class javax.swing.text.html.HTMLDocument
javax.swing.text.BadLocationException
java.io.IOException
public void insertBeforeEnd(javax.swing.text.Element elem, java.lang.String htmlText) throws javax.swing.text.BadLocationException, java.io.IOException
insertBeforeEnd
in class javax.swing.text.html.HTMLDocument
javax.swing.text.BadLocationException
java.io.IOException
public void insertBeforeStart(javax.swing.text.Element elem, java.lang.String htmlText) throws javax.swing.text.BadLocationException, java.io.IOException
insertBeforeStart
in class javax.swing.text.html.HTMLDocument
javax.swing.text.BadLocationException
java.io.IOException
public void insertString(int offs, java.lang.String str, javax.swing.text.AttributeSet a) throws javax.swing.text.BadLocationException
insertString
in interface javax.swing.text.Document
insertString
in class javax.swing.text.AbstractDocument
javax.swing.text.BadLocationException
public void performParagraphBreak(int pos)
return
. It starts new paragraphs
or list items or splits these elements if required.
pos
- the position to use for this split actionpublic void insertHRule(int pos)
pos
- the position, to insert the HRpublic int getLowerContentBoundary(int pos, javax.swing.text.Element topLevelParagraph)
pos
- Start offsettopLevelParagraph
- the paragraph at the start position
public int getUpperContentBoundary(int pos, javax.swing.text.Element topLevelParagraph)
pos
- Start offsettopLevelParagraph
- the paragraph at the start position
public void remove(int offs, int len) throws javax.swing.text.BadLocationException
remove
in interface javax.swing.text.Document
remove
in class javax.swing.text.AbstractDocument
javax.swing.text.BadLocationException
public void removeImpl(int offs, int len, com.inet.html.InetHtmlDocument.EventList list) throws javax.swing.text.BadLocationException
offs
- start offset of the removallen
- length of the removallist
- the event list to register the changes
javax.swing.text.BadLocationException
- thrown if the range leaves the content rangepublic javax.swing.text.Element getCharacterElement(int pos)
getCharacterElement
in interface javax.swing.text.StyledDocument
getCharacterElement
in class javax.swing.text.DefaultStyledDocument
public int getLength()
getLength
in interface javax.swing.text.Document
getLength
in class javax.swing.text.AbstractDocument
public int getModelLength()
public void removeElement(javax.swing.text.AttributeSet selector, int start, int end, boolean keepStyles)
selector
- the attributes which have to be matchedstart
- start offset of the remove areaend
- end offset of the remove areakeepStyles
- if set to true, the document will try to keep all font-formating styles, which are attached
directly the remove element. Every special attribute will be dropped like HREF or NAME for instance.public void replace(int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attrs) throws javax.swing.text.BadLocationException
replace
in class javax.swing.text.AbstractDocument
javax.swing.text.BadLocationException
public void setBase(java.net.URL base)
setBase
in class javax.swing.text.html.HTMLDocument
public java.net.URL getBase()
getBase
in class javax.swing.text.html.HTMLDocument
public void checkInit(javax.swing.text.Element elem)
elem
- The element to check.public void addAttribute(javax.swing.text.AttributeSet attrs, java.lang.Object name, java.lang.Object value)
attrs
- The attribute set to modifyname
- The name of the attributevalue
- The value of the attributepublic void setDocType(int docType)
docType
- document typepublic void setDocVersion(float docVersion)
docVersion
- the version and sub versionpublic void setDocVariant(int docVariant)
docVariant
- the variant constantDOCTYPE_HTML
,
DOCTYPE_STRICT
,
DOCTYPE_TRANSIENT
,
DOCTYPE_FRAMESET
,
DOCTYPE_XHTML
,
DOCTYPE_UNKNOWN
public float getHtmlVersion()
public javax.swing.text.Element getParagraphElement(int pos, javax.swing.text.Element root)
pos
. A paragraph consists of at least one child Element,
which is usually a leaf. This method will search for the deepest paragraph element in the model tree!
pos
- the starting offset >= 0root
- The element to start from
public javax.swing.text.Element getNextParagraphElement(int pos, javax.swing.text.Element root)
pos
. A paragraph consists of at least one child Element,
which is usually a leaf. This method will search for the next deeper paragraph in the model tree
pos
- the starting offset >= 0root
- The element to start from
root
public javax.swing.text.Element getParagraphElement(int pos)
getParagraphElement
in interface javax.swing.text.StyledDocument
getParagraphElement
in class javax.swing.text.DefaultStyledDocument
public int getBlockStart(int pos)
pos
- the offset to start seaching
public void setCharacterAttributes(int offset, int length, javax.swing.text.AttributeSet s, boolean replace)
setCharacterAttributes
in interface javax.swing.text.StyledDocument
setCharacterAttributes
in class javax.swing.text.DefaultStyledDocument
offset
- Where to start changing the attributeslength
- Length of the area where to changes
- A set of attributes which should be applied to the contentreplace
- If set to true, any existing attribute of the same type will be replaced but only if it is
COMPLETLY withing the range of the change(to avoid sideeffects)public void setCharacterAttributes(int offset, int length, javax.swing.text.AttributeSet s, boolean replace, boolean forceStacking)
offset
- Where to start changing the attributeslength
- Length of the area where to changes
- A set of attributes which should be applied to the contentreplace
- If set to true, any existing attribute of the same type will be replaced but only if it is
COMPLETLY withing the range of the change(to avoid sideeffects)forceStacking
- if set to true, it overrides the inlineCompatibleMode and forces the medthod
to create new inline elements on top of the exisiting ones instead of re-using elements. This may break inline-Boxes
but is an efficent way to create new, unstyled inline elements.public int findNextBlank(int startOffset, boolean directionForward)
startOffset
- where to startdirectionForward
- true to search foward, false to search backwards
public void setParagraphAttributes(int offset, int length, javax.swing.text.AttributeSet s, boolean replace)
setParagraphAttributes
in interface javax.swing.text.StyledDocument
setParagraphAttributes
in class javax.swing.text.html.HTMLDocument
offset
- the offset into the paragraph (must be at least 0)length
- the number of characters affected (must be at least 0)s
- the attributesreplace
- whether to replace existing attributes, or merge thempublic void changeIndent(int step, int offset, int length, boolean increase)
step
- The stepsize by which the margin-left will be modifiedoffset
- The start position of the modificationlength
- The length of the modificationincrease
- true, if the indent is to be increased, false otherwise (required for lists)public void changeListStatus(int offset, int length, boolean numberedList) throws javax.swing.text.BadLocationException
offset
- Start offsetlength
- Length of the selection, may be 0numberedList
- Set to true, if a numbered list should be generated, false if a unordered list is to be
generated.
javax.swing.text.BadLocationException
- possibly thrown on model errorspublic com.inet.html.utils.EmbeddedImage[] getEmbeddedImages()
null
, if none were used.public void insertImage(java.awt.Image image, int pos, java.io.File location)
image
- The image to insertpos
- the position, to insert the image.location
- the file location of the image (OPTIONAL)public void insertImage(java.awt.Image image, int pos, java.lang.String alt, java.io.File location)
image
- The image to insertpos
- the position, to insert the image.alt
- the ALT-Text, if anylocation
- the file location of the image, if any (OPTIONAL)public void setAllowInternalImages(boolean allowInternalImages)
allowInternalImages
- true to allow pasted images, fals otherwisepublic boolean isAllowInternalImages()
public java.util.Dictionary<java.lang.Object,java.lang.Object> getDocumentProperties()
getDocumentProperties
in class javax.swing.text.AbstractDocument
public void setDocumentProperties(java.util.Dictionary<java.lang.Object,java.lang.Object> x)
setDocumentProperties
in class javax.swing.text.AbstractDocument
public void setDocumentProperty(java.lang.Object key, java.lang.Object value)
key
- the key objectvalue
- the value for this keypublic InetHtmlConfiguration getConfiguration()
public static java.lang.String getCachedString(java.lang.String value)
value
- the string to find
public java.util.Enumeration<?> getStyleNames()
getStyleNames
in class javax.swing.text.DefaultStyledDocument
public Styles getStyleSheet(java.lang.String nm)
nm
- the name to find
public int getSiteCount()
getSiteCount
in interface CssDocument
public int getRevision()
getRevision
in interface CssDocument
public javax.swing.text.html.HTMLDocument.Iterator getIterator(javax.swing.text.html.HTML.Tag t)
getIterator
in class javax.swing.text.html.HTMLDocument
public java.net.URL getURLwithReferrer(java.net.URL url)
public boolean readStylesOfVirtualTags()
StyleResolver
.StyleResolver
will read the styles of the virtual elements CONTENT
and IMPLIED as well. If false is returned, the styles of these elements will be ignored and it's parents
will be searched.StyledDocument
)
readStylesOfVirtualTags
in interface CssDocument
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |