Uses of Interface
javax.swing.text.Element
Packages that use 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
Constructors in javax.swing with parameters of type Element -
Uses of Element in javax.swing.event
Methods in javax.swing.event that return ElementModifier 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 theElementthat corresponds to the source of the event.Methods in javax.swing.event with parameters of type ElementModifier and TypeMethodDescriptionGets the change information for the given element.Constructors in javax.swing.event with parameters of type ElementModifierConstructorDescriptionHyperlinkEvent(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
Methods in javax.swing.plaf.basic with parameters of type ElementModifier and TypeMethodDescriptionCreates a view (PasswordView) for an element.Creates a view for an element.Creates a view for an element.Creates a view for an element.Creates a view for an element. -
Uses of Element in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth with parameters of type Element -
Uses of Element in javax.swing.text
Classes in javax.swing.text that implement ElementModifier and TypeClassDescriptionclassImplements the abstract part of an element.classImplements a composite element that contains other elements.classImplements an element that directly represents content of some kind.protected classDefault root element for a document... maps out the paragraphs/lines contained.Fields in javax.swing.text declared as ElementModifier and TypeFieldDescriptionprotected ElementDefaultStyledDocument.AttributeUndoableEdit.elementAffected Element.Methods in javax.swing.text that return ElementModifier and TypeMethodDescriptionCreates a copy of this element, with a different parent.protected ElementAbstractDocument.createBranchElement(Element parent, AttributeSet a) Creates a document branch element, that can contain other elements.protected ElementAbstractDocument.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 ElementAbstractDocument.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 ElementAbstractDocument.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 ElementAbstractDocument.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 final ElementUtilities.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.Methods in javax.swing.text with parameters of type ElementModifier and TypeMethodDescriptionCreates a copy of this element, with a different parent.Creates a view from the given structural element of a document.protected ElementAbstractDocument.createBranchElement(Element parent, AttributeSet a) Creates a document branch element, that can contain other elements.protected voidStyledEditorKit.createInputAttributes(Element element, MutableAttributeSet set) Copies the key/values inelements AttributeSet intoset.protected ElementAbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) Creates a document leaf element.protected TableView.TableCellTableView.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.TableRowTableView.createTableRow(Element elem) Creates a new table row.Gets the changes for an element.protected StringReturns the text associated with the element.protected booleanThis method determines whether the current element is in the range specified.voidDefaultStyledDocument.removeElement(Element elem) Removes an element from this document.voidReplaces content with a new set of elements.protected voidWrites out text.Constructors in javax.swing.text with parameters of type ElementModifierConstructorDescriptionAbstractElement(Element parent, AttributeSet a) Creates a new AbstractElement.protectedAbstractWriter(Writer w, Element root) Creates a new AbstractWriter.protectedAbstractWriter(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 aCompositeViewfor 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 aParagraphViewfor 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 newViewobject.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
Classes in javax.swing.text.html that implement ElementModifier and TypeClassDescriptionclassAn element that represents a structural block of HTML.classAn element that represents a chunk of text that has a set of HTML character level attributes assigned to it.Methods in javax.swing.text.html that return ElementModifier and TypeMethodDescriptionprotected ElementHTMLDocument.createBranchElement(Element parent, AttributeSet a) Creates a document branch element, that can contain other elements.protected ElementHTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) Creates a document leaf element that directly represents text (doesn't have any children).protected ElementHTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag) Returns the deepest element atoffsetmatchingtag.HTMLDocument.getElement(String id) Returns the element that has the given idAttribute.HTMLDocument.getElement(Element e, Object attribute, Object value) Returns the child element ofethat contains the attribute,attributewith valuevalue, ornullif one isn't found.protected Element[]HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc, int offset) Returns an array of the Elements that containoffset.Methods in javax.swing.text.html with parameters of type ElementModifier and TypeMethodDescriptionprotected voidWrites out comments.Creates a view from an element.protected ElementHTMLDocument.createBranchElement(Element parent, AttributeSet a) Creates a document branch element, that can contain other elements.protected voidHTMLEditorKit.createInputAttributes(Element element, MutableAttributeSet set) Copies the key/values inelements AttributeSet intoset.protected ElementHTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) Creates a document leaf element that directly represents text (doesn't have any children).protected voidWrites out all empty elements (all tags that have no corresponding end tag).protected voidWrites out an end tag for the element.HTMLDocument.getElement(Element e, Object attribute, Object value) Returns the child element ofethat contains the attribute,attributewith valuevalue, ornullif one isn't found.Fetches the style to use to render the given type of HTML tag.voidHTMLDocument.insertAfterEnd(Element elem, String htmlText) Inserts the HTML specified as a string after the end of the given element.voidHTMLDocument.insertAfterStart(Element elem, String htmlText) Inserts the HTML specified as a string at the start of the element.protected voidHTMLEditorKit.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 voidHTMLEditorKit.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 insertAtBoundaryvoidHTMLDocument.insertBeforeEnd(Element elem, String htmlText) Inserts the HTML specified as a string at the end of the element.voidHTMLDocument.insertBeforeStart(Element elem, String htmlText) Inserts the HTML specified as a string before the start of the given element.protected booleanReturns true if the element is a text element.voidHTMLDocument.setInnerHTML(Element elem, String htmlText) Replaces the children of the given element with the contents specified as an HTML string.voidHTMLDocument.setOuterHTML(Element elem, String htmlText) Replaces the given element in the parent with the contents specified as an HTML string.protected voidWrites out a start tag for the element.protected booleanHTMLWriter.synthesizedElement(Element elem) Returnstrueif the element is a synthesized element.protected voidWrites out text.protected voidWrites out text.protected voidMinimalHTMLWriter.writeComponent(Element elem) Responsible for handling Component Elements; deliberately unimplemented.protected voidMinimalHTMLWriter.writeContent(Element elem, boolean needsIndenting) Writes out the attribute set in an HTML-compliant manner.protected voidMinimalHTMLWriter.writeImage(Element elem) Responsible for handling Icon Elements; deliberately unimplemented.protected voidResponsible for writing out other non-text leaf elements.protected voidMinimalHTMLWriter.writeStartParagraph(Element elem) Emits the start tag for a paragraph.Constructors in javax.swing.text.html with parameters of type ElementModifierConstructorDescriptionBlockElement(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).