|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.AbstractDocument.AbstractElement
javax.swing.text.AbstractDocument.BranchElement
com.inet.html.InetHtmlDocument.ImpliedElement
public class InetHtmlDocument.ImpliedElement
This is the implementation for an implied bloc element. It does not depend directly on the document, which means it doesn't change the documents structure in any case. An implied element has no attributes of it's own but inherits the parents ones by css. This is the only element that doesn't require a write. It can therefore be generated anywhere, especially within views.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet |
---|
javax.swing.text.AttributeSet.CharacterAttribute, javax.swing.text.AttributeSet.ColorAttribute, javax.swing.text.AttributeSet.FontAttribute, javax.swing.text.AttributeSet.ParagraphAttribute |
Field Summary |
---|
Fields inherited from interface javax.swing.text.AttributeSet |
---|
NameAttribute, ResolveAttribute |
Constructor Summary | |
---|---|
InetHtmlDocument.ImpliedElement(javax.swing.text.Element parent)
Creates an implied paragraph element |
Method Summary | |
---|---|
javax.swing.text.Element |
clone(javax.swing.text.Element parent)
Creates a copy of this element, but sets it's type to P! |
boolean |
containsAttribute(java.lang.Object name,
java.lang.Object value)
|
javax.swing.text.AttributeSet |
copyAttributes()
|
java.lang.Object |
getAttribute(java.lang.Object attrName)
|
int |
getAttributeCount()
|
java.util.Enumeration<?> |
getAttributeNames()
|
javax.swing.text.AttributeSet |
getAttributes()
Returns the attribute set of this element |
javax.swing.text.Document |
getDocument()
|
javax.swing.text.Element |
getElement(int index)
|
int |
getElementCount()
|
int |
getElementIndex(int offset)
|
int |
getEndOffset()
|
java.lang.String |
getName()
|
javax.swing.text.Element |
getParentElement()
|
int |
getStartOffset()
|
boolean |
isDefined(java.lang.Object attrName)
|
boolean |
isEqual(javax.swing.text.AttributeSet attr)
|
boolean |
isLeaf()
|
void |
replace(int start,
int len,
javax.swing.text.Element[] newElements)
|
Methods inherited from class javax.swing.text.AbstractDocument.BranchElement |
---|
children, getAllowsChildren, positionToElement, toString |
Methods inherited from class javax.swing.text.AbstractDocument.AbstractElement |
---|
addAttribute, addAttributes, containsAttributes, dump, getChildAt, getChildCount, getIndex, getParent, getResolveParent, removeAttribute, removeAttributes, removeAttributes, setResolveParent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.text.AttributeSet |
---|
containsAttributes, getResolveParent |
Constructor Detail |
---|
public InetHtmlDocument.ImpliedElement(javax.swing.text.Element parent)
parent
- the parent element of the impliedMethod Detail |
---|
public javax.swing.text.AttributeSet getAttributes()
getAttributes
in interface javax.swing.text.Element
getAttributes
in class javax.swing.text.AbstractDocument.AbstractElement
public boolean isDefined(java.lang.Object attrName)
isDefined
in interface javax.swing.text.AttributeSet
isDefined
in class javax.swing.text.AbstractDocument.AbstractElement
public java.lang.Object getAttribute(java.lang.Object attrName)
getAttribute
in interface javax.swing.text.AttributeSet
getAttribute
in class javax.swing.text.AbstractDocument.AbstractElement
public int getAttributeCount()
getAttributeCount
in interface javax.swing.text.AttributeSet
getAttributeCount
in class javax.swing.text.AbstractDocument.AbstractElement
public java.util.Enumeration<?> getAttributeNames()
getAttributeNames
in interface javax.swing.text.AttributeSet
getAttributeNames
in class javax.swing.text.AbstractDocument.AbstractElement
public boolean isEqual(javax.swing.text.AttributeSet attr)
isEqual
in interface javax.swing.text.AttributeSet
isEqual
in class javax.swing.text.AbstractDocument.AbstractElement
public boolean containsAttribute(java.lang.Object name, java.lang.Object value)
containsAttribute
in interface javax.swing.text.AttributeSet
containsAttribute
in class javax.swing.text.AbstractDocument.AbstractElement
public javax.swing.text.AttributeSet copyAttributes()
copyAttributes
in interface javax.swing.text.AttributeSet
copyAttributes
in class javax.swing.text.AbstractDocument.AbstractElement
public javax.swing.text.Document getDocument()
getDocument
in interface javax.swing.text.Element
getDocument
in class javax.swing.text.AbstractDocument.AbstractElement
public javax.swing.text.Element getElement(int index)
getElement
in interface javax.swing.text.Element
getElement
in class javax.swing.text.AbstractDocument.BranchElement
public int getElementCount()
getElementCount
in interface javax.swing.text.Element
getElementCount
in class javax.swing.text.AbstractDocument.BranchElement
public int getElementIndex(int offset)
getElementIndex
in interface javax.swing.text.Element
getElementIndex
in class javax.swing.text.AbstractDocument.BranchElement
public int getEndOffset()
getEndOffset
in interface javax.swing.text.Element
getEndOffset
in class javax.swing.text.AbstractDocument.BranchElement
public java.lang.String getName()
getName
in interface javax.swing.text.Element
getName
in class javax.swing.text.AbstractDocument.BranchElement
public javax.swing.text.Element getParentElement()
getParentElement
in interface javax.swing.text.Element
getParentElement
in class javax.swing.text.AbstractDocument.AbstractElement
public int getStartOffset()
getStartOffset
in interface javax.swing.text.Element
getStartOffset
in class javax.swing.text.AbstractDocument.BranchElement
public boolean isLeaf()
isLeaf
in interface javax.swing.text.Element
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.text.AbstractDocument.BranchElement
public javax.swing.text.Element clone(javax.swing.text.Element parent)
parent
- the parent of the cloned element
public void replace(int start, int len, javax.swing.text.Element[] newElements)
replace
in class javax.swing.text.AbstractDocument.BranchElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |