Uses of Interface javax.swing.text.Element

Uses in package javax.swing.event

Constructors with parameter type javax.swing.text.Element

HyperlinkEvent.HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL url, String description, Element element)
Creates a new HyperlinkEvent with the given arguments.

Methods with parameter type javax.swing.text.Element

DocumentEvent.ElementChange
getChange

Methods with return type javax.swing.text.Element

Element[]
getChildrenAdded
Element[]
getChildrenRemoved
Element
getElement
Element
Returns the element of the document repesenting this anchor.

Uses in package javax.swing

Constructors with parameter type javax.swing.text.Element

Creates a new HTMLLink.

Uses in package javax.swing.text.html

Classes implementing javax.swing.text.Element

class
class
RunElement represents a section of text that has a set of HTML character level attributes assigned to it.

Constructors with parameter type javax.swing.text.Element

Creates a new BranchElement with the specified parent and attributes.
BlockView.BlockView(Element elem, int axis)
Creates a new view that represents an html box.
Creates a new FormView.
Creates a new hypertext link event.
Creates a new hypertext link event.
Creates the image view that represents the given element.
Creates a new InlineView that renders the specified element.
Creates a new ListView for the specified element.
Creates a new ObjectView.
Creates a new ParagraphView for the specified element.
HTMLDocument.RunElement.RunElement(Element parent, AttributeSet a, int start, int end)
Constructs an element that has no children.

Methods with parameter type javax.swing.text.Element

void
Writes out the comment.
View
Creates a View for the specified Element.
Element
This method returns an HTMLDocument.BlockElement object representing the attribute set a and attached to parent.
void
Copies the key/values in elements AttributeSet into set.
Element
HTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
This method returns an HTMLDocument.RunElement object attached to parent representing a run of text from p0 to p1.
void
Writes out an empty tag. i.e. a tag without any child elements.
void
Writes out an end tag.
Element
HTMLDocument.getElement(Element e, Object attribute, Object value)
Gets the child element that contains the attribute with the value or null.
HTMLEditorKit.ParserCallback
HTMLDocument.getInsertingReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag, Element parent)
Gets the reader for the parser to use when inserting the HTML fragment into the document.
Style
Gets the style used to render the given tag.
void
Inserts the string after the end of the given element.
void
Inserts the string at the start of the element.
void
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
Invoked when inserting at a boundary.
void
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
Invoked when inserting at a boundary.
void
Inserts the string at the end of the element.
void
Inserts the string before the start of the given element.
boolean
Returns whether the element contains text or not.
void
Replaces the children of the given element with the contents of the string.
void
Replaces the given element in the parent with the string.
void
Writes out a start tag.
boolean
Determines if element is a synthesized javax.swing.text.Element or not.
void
HTMLWriter.text(Element paramElem)
Writes out text, within the appropriate range if it is specified.
void
Output the text of the indicated Element, properly clipping it to the range of the Document specified when the AbstractWriter was created.
void
Deliberately unimplemented, handles component elements.
void
MinimalHTMLWriter.writeContent(Element elem, boolean needsIndenting)
Writes the content of an element.
void
Deliberately unimplemented.
void
Writes a non-text leaf element.
void
Write a paragraph start tag.

Methods with return type javax.swing.text.Element

Element
This method returns an HTMLDocument.BlockElement object representing the attribute set a and attached to parent.
Element
HTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
This method returns an HTMLDocument.RunElement object attached to parent representing a run of text from p0 to p1.
Element
Gets the deepest element at offset with the matching tag.
Element
Returns the element that has the given id Attribute (for instance, <p id ='my paragraph >').
Element
HTMLDocument.getElement(Element e, Object attribute, Object value)
Gets the child element that contains the attribute with the value or null.
Element[]
Returns an array of Elements that contain the offset.

Uses in package javax.swing.plaf.basic

Methods with parameter type javax.swing.text.Element

View
Creates a View for the specified Element.
View
Create the view.
View
Creates a View for the specified Element.
View
Creates a View for the specified Element.
View
BasicTextUI.create(Element elem, int p0, int p1)
Creates a View for the specified Element.

Uses in package javax.swing.text

Classes implementing javax.swing.text.Element

class
An abstract base implementation of the Element interface.
class
An implementation of Element to represent composite Elements that contain other Elements.
class
An implementation of Element that represents a leaf in the document structure.
class
An element type for sections.

Constructors with parameter type javax.swing.text.Element

Creates a new instance of AbstractElement with a specified parent Element and AttributeSet.
Create a new AbstractWriter with the indicated Writer and Element.
AbstractWriter.AbstractWriter(Writer writer, Element elt, int pos, int len)
Create a new AbstractWriter with the indicated Writer and Element.
Creates a new AsyncBoxView that represents the specified element and layouts its children along the specified axis.
Creates a new AttributeUndoableEdit.
BoxView.BoxView(Element element, int axis)
Creates a new BoxView for the given Element and axis.
Creates a new BranchElement with the specified parent and attributes.
Creates a new instance of ComponentView for the specified Element.
Creates a new CompositeView for the given Element.
Creates a new ElementBuffer for the specified root element.
AbstractDocument.ElementEdit.ElementEdit(Element elem, int index, Element[] removed, Element[] added)
Creates a new ElementEdit.
Create a new ElementIterator to iterate over the given document.
Creates a new View instance.
FlowView.FlowView(Element element, int axis)
Creates a new FlowView for the given Element and axis.
Creates a new GlyphView for the given Element.
Creates a new IconView for the given Element.
Creates a new GlyphView for the given Element.
AbstractDocument.LeafElement.LeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates a new LeafElement.
Creates a new ParagraphView for the given Element.
Creates a new View instance.
Creates a new View instance.
Creates a new instance.
Creates a new instance of TableRow.
Creates a new instance of TableView.
Creates a new View instance.
Creates a new View instance.
WrappedPlainView.WrappedPlainView(Element elem, boolean wordWrap)
ZoneView.ZoneView(Element element, int axis)
Creates a new ZoneView for the specified element and axis.

Fields of type javax.swing.text.Element

Element
The element that has changed.

Methods with parameter type javax.swing.text.Element

Element
Creates and returns a deep clone of the specified clonee with the specified parent as new parent.
View
Creates a view for a given element.
Element
Creates and returns a branch element with the specified parent and attributes.
void
Copies the text attributes from element to set.
Element
AbstractDocument.createLeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates and returns a leaf element with the specified parent and attributes.
TableView.TableCell
Creates a view for a table cell.
TableView.TableRow
Creates a view for a table row.
ElementChange
Returns the changes for an element.
String
Return the text of the Document that is associated with the given Element.
boolean
Return true if the Element's range overlaps our desired output range; false otherwise.
void
AbstractDocument.BranchElement.replace(int offset, int length, Element[] elements)
Replaces a set of child elements with a new set of child elemens.
void
Output the text of the indicated Element, properly clipping it to the range of the Document specified when the AbstractWriter was created.

Methods with return type javax.swing.text.Element

Element
Creates and returns a deep clone of the specified clonee with the specified parent as new parent.
Element
Creates and returns a branch element with the specified parent and attributes.
Element
AbstractDocument.createLeafElement(Element parent, AttributeSet attributes, int start, int end)
Creates and returns a leaf element with the specified parent and attributes.
Element
Returns the current element.
Element
Returns the first element in the tree.
Element
Returns the root element for bidirectional content.
Element
Returns the Element that represents the character run at the current caret position.
Element
Returns the Element that corresponds to the character at the specified position.
Element
getCharacterElement
Element[]
Returns the added elements.
Element[]
Returns the removed elements.
Element
Returns the default root Element of this Document.
Element
Returns the default root element.
Element
Returns the default root element.
Element
Returns the default root Element of this Document.
Element
Returns the changed element.
Element
Element
Returns the child element at the specified index.
Element
Returns the child element at the specified index.
Element
Returns null since LeafElements cannot have children.
Element
Element.getElement(int index)
Element
Returns the paragraph Element that holds the specified position.
Element
Returns the paragraph element for the specified position.
Element
Returns the paragraph Element that holds the specified position.
Element
getParagraphElement
Element
Returns the paragraph element in the text component c at the specified location offset.
Element
Returns the parent element of this element.
Element
Element
Returns the root element of this ElementBuffer.
Element[]
Returns all root elements of this Document.
Element[]
Returns the root elements of the document content.
Element
Advance the iterator and return the next element of the tree, performing an "in-order" traversal.
Element
Returns the Element at the specified Document offset.
Element
Returns the previous item.