Uses of Interface
javax.swing.text.Element
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides for events fired by Swing components.
Provides user interface objects built according to the Basic look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.-
Uses of Element in javax.swing
-
Uses of Element in javax.swing.event
Modifier and TypeMethodDescriptionElement[]
DocumentEvent.ElementChange.getChildrenAdded()
Gets the child elements that were added to the given parent element.Element[]
DocumentEvent.ElementChange.getChildrenRemoved()
Gets the child elements that were removed from the given parent element.DocumentEvent.ElementChange.getElement()
Returns the element represented.HyperlinkEvent.getSourceElement()
Returns theElement
that corresponds to the source of the event.Modifier and TypeMethodDescriptionGets the change information for the given element.ModifierConstructorDescriptionHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement)
Creates a new object representing a hypertext link event.HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement, InputEvent inputEvent)
Creates a new object representing a hypertext link event. -
Uses of Element in javax.swing.plaf.basic
Modifier and TypeMethodDescriptionCreates a view (PasswordView) for an element.Creates the view for an element.Creates a view (FieldView) based on an element.Creates a view for an element.Creates a view for an element. -
Uses of Element in javax.swing.plaf.synth
-
Uses of Element in javax.swing.text
Modifier and TypeClassDescriptionclass
Implements the abstract part of an element.class
Implements a composite element that contains other elements.class
Implements an element that directly represents content of some kind.protected class
Default root element for a document... maps out the paragraphs/lines contained.Modifier and TypeFieldDescriptionprotected Element
DefaultStyledDocument.AttributeUndoableEdit.element
Affected Element.Modifier and TypeMethodDescriptionCreates a copy of this element, with a different parent.protected Element
AbstractDocument.createBranchElement(Element parent, AttributeSet a)
Creates a document branch element, that can contain other elements.protected Element
AbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
Creates a document leaf element.ElementIterator.current()
Fetches the currentElement
.ElementIterator.first()
Fetches the first element.AbstractDocument.getBidiRootElement()
Returns the root element of the bidirectional structure for this document.StyledEditorKit.getCharacterAttributeRun()
Fetches the element representing the current run of character attributes for the caret.DefaultStyledDocument.getCharacterElement(int pos)
Gets a character element based on a position.StyledDocument.getCharacterElement(int pos)
Gets the element that represents the character that is at the given offset within the document.Element[]
AbstractDocument.ElementEdit.getChildrenAdded()
Gets a list of children that were added.Element[]
AbstractDocument.ElementEdit.getChildrenRemoved()
Gets a list of children that were removed.abstract Element
AbstractDocument.getDefaultRootElement()
Returns the root element that views should be based upon unless some other mechanism for assigning views to element structures is provided.DefaultStyledDocument.getDefaultRootElement()
Gets the default root element.Document.getDefaultRootElement()
Returns the root element that views should be based upon, unless some other mechanism for assigning views to element structures is provided.PlainDocument.getDefaultRootElement()
Gets the default root element for the document model.abstract Element
AbstractDocument.AbstractElement.getElement(int index)
Gets a child element.AbstractDocument.BranchElement.getElement(int index)
Gets a child element.AbstractDocument.ElementEdit.getElement()
Returns the underlying element.AbstractDocument.LeafElement.getElement(int index)
Gets a child element.Element.getElement(int index)
Fetches the child element at the given index.View.getElement()
Fetches the structural portion of the subject that this view is mapped to.abstract Element
AbstractDocument.getParagraphElement(int pos)
Get the paragraph element containing the given position.DefaultStyledDocument.getParagraphElement(int pos)
Gets the paragraph element at the offsetpos
.PlainDocument.getParagraphElement(int pos)
Get the paragraph element containing the given position.StyledDocument.getParagraphElement(int pos)
Gets the element that represents the paragraph that encloses the given offset within the document.static Element
Utilities.getParagraphElement(JTextComponent c, int offs)
Determines the element to use for a paragraph/line.AbstractDocument.AbstractElement.getParentElement()
Gets the parent of the element.Element.getParentElement()
Fetches the parent element.DefaultStyledDocument.ElementBuffer.getRootElement()
Gets the root element.Element[]
AbstractDocument.getRootElements()
Gets all root elements defined.Element[]
Document.getRootElements()
Returns all of the root elements that are defined.ElementIterator.next()
Fetches the nextElement
.AbstractDocument.BranchElement.positionToElement(int pos)
Gets the child element that contains the given model position.ElementIterator.previous()
Fetches the previousElement
.Modifier and TypeMethodDescriptionCreates a copy of this element, with a different parent.Creates a view from the given structural element of a document.protected Element
AbstractDocument.createBranchElement(Element parent, AttributeSet a)
Creates a document branch element, that can contain other elements.protected void
StyledEditorKit.createInputAttributes(Element element, MutableAttributeSet set)
Copies the key/values inelement
s AttributeSet intoset
.protected Element
AbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
Creates a document leaf element.protected TableView.TableCell
TableView.createTableCell(Element elem)
Deprecated.Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.protected TableView.TableRow
TableView.createTableRow(Element elem)
Creates a new table row.Gets the changes for an element.protected String
Returns the text associated with the element.protected boolean
This method determines whether the current element is in the range specified.void
DefaultStyledDocument.removeElement(Element elem)
Removes an element from this document.void
Replaces content with a new set of elements.protected void
Writes out text.ModifierConstructorDescriptionAbstractElement(Element parent, AttributeSet a)
Creates a new AbstractElement.protected
AbstractWriter(Writer w, Element root)
Creates a new AbstractWriter.protected
AbstractWriter(Writer w, Element root, int pos, int len)
Creates a new AbstractWriter.AsyncBoxView(Element elem, int axis)
Construct a box view that does asynchronous layout.AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
Constructs anAttributeUndoableEdit
.Constructs aBoxView
.BranchElement(Element parent, AttributeSet a)
Constructs a composite element that initially contains no children.ComponentView(Element elem)
Creates a new ComponentView object.CompositeView(Element elem)
Constructs aCompositeView
for the given element.ElementBuffer(Element root)
Creates a new ElementBuffer.ElementEdit(Element e, int index, Element[] removed, Element[] added)
Constructs an edit record.ElementIterator(Element root)
Creates a newElementIterator
.Constructs a new FieldView wrapped on an element.Constructs a FlowView for the given element.Constructs a new view wrapped on an element.Creates a new icon view that represents an element.Constructs a new view wrapped on an element.LeafElement(Element parent, AttributeSet a, int offs0, int offs1)
Constructs an element that represents content within the document (has no children).ParagraphView(Element elem)
Constructs aParagraphView
for the given element.PasswordView(Element elem)
Constructs a new view wrapped on an element.Constructs a new PlainView wrapped on an element.Deprecated.Constructs a TableCell for the given element.Constructs a TableView for the given element.Constructs a TableView for the given element.Creates a newView
object.WrappedPlainView(Element elem)
Creates a new WrappedPlainView.WrappedPlainView(Element elem, boolean wordWrap)
Creates a new WrappedPlainView.Constructs a ZoneView. -
Uses of Element in javax.swing.text.html
Modifier and TypeClassDescriptionclass
An element that represents a structural block of HTML.class
An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.Modifier and TypeMethodDescriptionprotected Element
HTMLDocument.createBranchElement(Element parent, AttributeSet a)
Creates a document branch element, that can contain other elements.protected Element
HTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
Creates a document leaf element that directly represents text (doesn't have any children).protected Element
HTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag)
Returns the deepest element atoffset
matchingtag
.HTMLDocument.getElement(String id)
Returns the element that has the given idAttribute
.HTMLDocument.getElement(Element e, Object attribute, Object value)
Returns the child element ofe
that contains the attribute,attribute
with valuevalue
, ornull
if one isn't found.protected Element[]
HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc, int offset)
Returns an array of the Elements that containoffset
.Modifier and TypeMethodDescriptionprotected void
Writes out comments.Creates a view from an element.protected Element
HTMLDocument.createBranchElement(Element parent, AttributeSet a)
Creates a document branch element, that can contain other elements.protected void
HTMLEditorKit.createInputAttributes(Element element, MutableAttributeSet set)
Copies the key/values inelement
s AttributeSet intoset
.protected Element
HTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1)
Creates a document leaf element that directly represents text (doesn't have any children).protected void
Writes out all empty elements (all tags that have no corresponding end tag).protected void
Writes out an end tag for the element.HTMLDocument.getElement(Element e, Object attribute, Object value)
Returns the child element ofe
that contains the attribute,attribute
with valuevalue
, ornull
if one isn't found.Fetches the style to use to render the given type of HTML tag.void
HTMLDocument.insertAfterEnd(Element elem, String htmlText)
Inserts the HTML specified as a string after the end of the given element.void
HTMLDocument.insertAfterStart(Element elem, String htmlText)
Inserts the HTML specified as a string at the start of the element.protected void
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
This is invoked when inserting at a boundary.protected void
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
Deprecated.As of Java 2 platform v1.3, use insertAtBoundaryvoid
HTMLDocument.insertBeforeEnd(Element elem, String htmlText)
Inserts the HTML specified as a string at the end of the element.void
HTMLDocument.insertBeforeStart(Element elem, String htmlText)
Inserts the HTML specified as a string before the start of the given element.protected boolean
Returns true if the element is a text element.void
HTMLDocument.setInnerHTML(Element elem, String htmlText)
Replaces the children of the given element with the contents specified as an HTML string.void
HTMLDocument.setOuterHTML(Element elem, String htmlText)
Replaces the given element in the parent with the contents specified as an HTML string.protected void
Writes out a start tag for the element.protected boolean
HTMLWriter.synthesizedElement(Element elem)
Returnstrue
if the element is a synthesized element.protected void
Writes out text.protected void
Writes out text.protected void
MinimalHTMLWriter.writeComponent(Element elem)
Responsible for handling Component Elements; deliberately unimplemented.protected void
MinimalHTMLWriter.writeContent(Element elem, boolean needsIndenting)
Writes out the attribute set in an HTML-compliant manner.protected void
MinimalHTMLWriter.writeImage(Element elem)
Responsible for handling Icon Elements; deliberately unimplemented.protected void
Responsible for writing out other non-text leaf elements.protected void
MinimalHTMLWriter.writeStartParagraph(Element elem)
Emits the start tag for a paragraph.ModifierConstructorDescriptionBlockElement(Element parent, AttributeSet a)
Constructs a composite element that initially contains no children.Creates a new view that represents an html box.Creates a new FormView object.HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, InputEvent inputEvent, String targetFrame)
Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, String targetFrame)
Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, Element sourceElement, String targetFrame)
Creates a new object representing a hypertext link event.Creates a new view that represents an IMG element.InlineView(Element elem)
Constructs a new view wrapped on an element.Creates a new view that represents a list element.ObjectView(Element elem)
Creates a new ObjectView object.ParagraphView(Element elem)
Constructs a ParagraphView for the given element.RunElement(Element parent, AttributeSet a, int offs0, int offs1)
Constructs an element that represents content within the document (has no children).