Package com.inet.html
Class InetHtmlDocument.ImpliedElement
java.lang.Object
javax.swing.text.AbstractDocument.AbstractElement
javax.swing.text.AbstractDocument.BranchElement
com.inet.html.InetHtmlDocument.ImpliedElement
- All Implemented Interfaces:
Serializable,AttributeSet,Element,MutableAttributeSet,TreeNode
- Enclosing class:
- InetHtmlDocument
public class InetHtmlDocument.ImpliedElement
extends AbstractDocument.BranchElement
implements AttributeSet
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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute -
Field Summary
Fields inherited from interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of this element, but sets it's type to P!
NOTE: This may create unexprected results if P is not a normal block element anymore by CSS.booleancontainsAttribute(Object name, Object value) getAttribute(Object attrName) intEnumeration<?>Returns the attribute set of this elementgetElement(int index) intintgetElementIndex(int offset) intgetName()intbooleanbooleanisEqual(AttributeSet attr) booleanisLeaf()voidMethods inherited from class javax.swing.text.AbstractDocument.BranchElement
children, getAllowsChildren, positionToElement, toStringMethods inherited from class javax.swing.text.AbstractDocument.AbstractElement
addAttribute, addAttributes, containsAttributes, dump, getChildAt, getChildCount, getIndex, getParent, getResolveParent, removeAttribute, removeAttributes, removeAttributes, setResolveParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.swing.text.AttributeSet
containsAttributes, getResolveParent
-
Constructor Details
-
ImpliedElement
Creates an implied paragraph element- Parameters:
parent- the parent element of the implied
-
-
Method Details
-
getAttributes
Returns the attribute set of this element- Specified by:
getAttributesin interfaceElement- Overrides:
getAttributesin classAbstractDocument.AbstractElement- Returns:
- the attribute set of this element
-
isDefined
- Specified by:
isDefinedin interfaceAttributeSet- Overrides:
isDefinedin classAbstractDocument.AbstractElement
-
getAttribute
- Specified by:
getAttributein interfaceAttributeSet- Overrides:
getAttributein classAbstractDocument.AbstractElement
-
getAttributeCount
public int getAttributeCount()- Specified by:
getAttributeCountin interfaceAttributeSet- Overrides:
getAttributeCountin classAbstractDocument.AbstractElement
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceAttributeSet- Overrides:
getAttributeNamesin classAbstractDocument.AbstractElement
-
isEqual
- Specified by:
isEqualin interfaceAttributeSet- Overrides:
isEqualin classAbstractDocument.AbstractElement
-
containsAttribute
- Specified by:
containsAttributein interfaceAttributeSet- Overrides:
containsAttributein classAbstractDocument.AbstractElement
-
copyAttributes
- Specified by:
copyAttributesin interfaceAttributeSet- Overrides:
copyAttributesin classAbstractDocument.AbstractElement
-
getDocument
- Specified by:
getDocumentin interfaceElement- Overrides:
getDocumentin classAbstractDocument.AbstractElement
-
getElement
- Specified by:
getElementin interfaceElement- Overrides:
getElementin classAbstractDocument.BranchElement
-
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceElement- Overrides:
getElementCountin classAbstractDocument.BranchElement
-
getElementIndex
public int getElementIndex(int offset) - Specified by:
getElementIndexin interfaceElement- Overrides:
getElementIndexin classAbstractDocument.BranchElement
-
getEndOffset
public int getEndOffset()- Specified by:
getEndOffsetin interfaceElement- Overrides:
getEndOffsetin classAbstractDocument.BranchElement
-
getName
- Specified by:
getNamein interfaceElement- Overrides:
getNamein classAbstractDocument.BranchElement
-
getParentElement
- Specified by:
getParentElementin interfaceElement- Overrides:
getParentElementin classAbstractDocument.AbstractElement
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffsetin interfaceElement- Overrides:
getStartOffsetin classAbstractDocument.BranchElement
-
isLeaf
public boolean isLeaf() -
clone
Creates a copy of this element, but sets it's type to P!
NOTE: This may create unexprected results if P is not a normal block element anymore by CSS.- Parameters:
parent- the parent of the cloned element- Returns:
- the cloned element
-
replace
- Overrides:
replacein classAbstractDocument.BranchElement
-