|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Element | |
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
javax.swing.event | Provides for events fired by Swing components. |
javax.swing.plaf.basic | Provides user interface objects built according to the Basic look-and-feel. |
javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
javax.swing.text.html | 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 | |
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink(Element e)
|
Uses of Element in javax.swing.event |
Methods in javax.swing.event that return Element | |
Element |
DocumentEvent.ElementChange.getElement()
Returns the element represented. |
Element[] |
DocumentEvent.ElementChange.getChildrenRemoved()
Gets the child elements that were removed from the given parent element. |
Element[] |
DocumentEvent.ElementChange.getChildrenAdded()
Gets the child elements that were added to the given parent element. |
Methods in javax.swing.event with parameters of type Element | |
DocumentEvent.ElementChange |
DocumentEvent.getChange(Element elem)
Gets the change information for the given element. |
Uses of Element in javax.swing.plaf.basic |
Methods in javax.swing.plaf.basic with parameters of type Element | |
View |
BasicTextUI.create(Element elem)
Creates a view for an element. |
View |
BasicTextUI.create(Element elem,
int p0,
int p1)
Creates a view for an element. |
View |
BasicTextFieldUI.create(Element elem)
Creates a view (FieldView) based on an element. |
View |
BasicPasswordFieldUI.create(Element elem)
Creates a view (PasswordView) for an element. |
View |
BasicTextAreaUI.create(Element elem)
Creates the view for an element. |
Uses of Element in javax.swing.text |
Classes in javax.swing.text that implement Element | |
class |
AbstractDocument.AbstractElement
Implements the abstract part of an element. |
class |
AbstractDocument.BranchElement
Implements a composite element that contains other elements. |
class |
AbstractDocument.LeafElement
Implements an element that directly represents content of some kind. |
protected class |
DefaultStyledDocument.SectionElement
Default root element for a document... |
Fields in javax.swing.text declared as Element | |
protected Element |
DefaultStyledDocument.AttributeUndoableEdit.element
|
Methods in javax.swing.text that return Element | |
Element |
ElementIterator.first()
Fetches the first element. |
Element |
ElementIterator.current()
Fetches the current Element. |
Element |
ElementIterator.next()
Fetches the next Element. |
Element |
ElementIterator.previous()
Fetches the previous Element. |
Element |
View.getElement()
Fetches the structural portion of the subject that this view is mapped to. |
Element |
Element.getParentElement()
Fetches the parent element. |
Element |
Element.getElement(int index)
Fetches the child element at the given index. |
Element[] |
Document.getRootElements()
Returns all of the root elements that are defined. |
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. |
Element[] |
AbstractDocument.getRootElements()
Gets all root elements defined. |
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. |
Element |
AbstractDocument.getBidiRootElement()
Returns the root element of the bidirectional structure for this document. |
abstract Element |
AbstractDocument.getParagraphElement(int pos)
Get the paragraph element containing the given position. |
protected Element |
AbstractDocument.createLeafElement(Element parent,
AttributeSet a,
int p0,
int p1)
Creates a document leaf element. |
protected Element |
AbstractDocument.createBranchElement(Element parent,
AttributeSet a)
Creates a document branch element, that can contain other elements. |
Element |
AbstractDocument.AbstractElement.getParentElement()
Gets the parent of the element. |
abstract Element |
AbstractDocument.AbstractElement.getElement(int index)
Gets a child element. |
Element |
AbstractDocument.BranchElement.positionToElement(int pos)
Gets the child element that contains the given model position. |
Element |
AbstractDocument.BranchElement.getElement(int index)
Gets a child element. |
Element |
AbstractDocument.LeafElement.getElement(int index)
Gets a child element. |
Element |
AbstractDocument.ElementEdit.getElement()
Returns the underlying element. |
Element[] |
AbstractDocument.ElementEdit.getChildrenRemoved()
Gets a list of children that were removed. |
Element[] |
AbstractDocument.ElementEdit.getChildrenAdded()
Gets a list of children that were added. |
Element |
StyledEditorKit.getCharacterAttributeRun()
Fetches the element representing the current run of character attributes for the caret. |
Element |
StyledDocument.getParagraphElement(int pos)
Gets the element that represents the paragraph that encloses the given offset within the document. |
Element |
StyledDocument.getCharacterElement(int pos)
Gets the element that represents the character that is at the given offset within the document. |
Element |
PlainDocument.getDefaultRootElement()
Gets the default root element for the document model. |
Element |
PlainDocument.getParagraphElement(int pos)
Get the paragraph element containing the given position. |
static Element |
Utilities.getParagraphElement(JTextComponent c,
int offs)
Determines the element to use for a paragraph/line. |
Element |
DefaultStyledDocument.getDefaultRootElement()
Gets the default root element. |
Element |
DefaultStyledDocument.getParagraphElement(int pos)
Gets the paragraph element at the offset pos . |
Element |
DefaultStyledDocument.getCharacterElement(int pos)
Gets a character element based on a position. |
Element |
DefaultStyledDocument.ElementBuffer.getRootElement()
Gets the root element. |
Element |
DefaultStyledDocument.ElementBuffer.clone(Element parent,
Element clonee)
Creates a copy of this element, with a different parent. |
Methods in javax.swing.text with parameters of type Element | |
View |
ViewFactory.create(Element elem)
Creates a view from the given structural element of a document. |
protected boolean |
AbstractWriter.inRange(Element next)
This method determines whether the current element is in the range specified. |
protected String |
AbstractWriter.getText(Element elem)
Returns the text associated with the element. |
protected void |
AbstractWriter.text(Element elem)
Writes out text. |
protected Element |
AbstractDocument.createLeafElement(Element parent,
AttributeSet a,
int p0,
int p1)
Creates a document leaf element. |
protected Element |
AbstractDocument.createBranchElement(Element parent,
AttributeSet a)
Creates a document branch element, that can contain other elements. |
void |
AbstractDocument.BranchElement.replace(int offset,
int length,
Element[] elems)
Replaces content with a new set of elements. |
DocumentEvent.ElementChange |
AbstractDocument.DefaultDocumentEvent.getChange(Element elem)
Gets the changes for an element. |
protected void |
StyledEditorKit.createInputAttributes(Element element,
MutableAttributeSet set)
Copies the key/values in element s AttributeSet into
set . |
protected TableView.TableRow |
TableView.createTableRow(Element elem)
Creates a new table row. |
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. |
Element |
DefaultStyledDocument.ElementBuffer.clone(Element parent,
Element clonee)
Creates a copy of this element, with a different parent. |
Constructors in javax.swing.text with parameters of type Element | |
ElementIterator(Element root)
Creates a new ElementIterator. |
|
View(Element elem)
Creates a new View object. |
|
CompositeView(Element elem)
Constructs a CompositeView for the given element. |
|
GlyphView(Element elem)
Constructs a new view wrapped on an element. |
|
LabelView(Element elem)
Constructs a new view wrapped on an element. |
|
BoxView(Element elem,
int axis)
Constructs a BoxView. |
|
FlowView(Element elem,
int axis)
Constructs a FlowView for the given element. |
|
ParagraphView(Element elem)
Constructs a ParagraphView for the given element. |
|
AbstractWriter(Writer w,
Element root)
Creates a new AbstractWriter. |
|
AbstractWriter(Writer w,
Element root,
int pos,
int len)
Creates a new AbstractWriter. |
|
PlainView(Element elem)
Constructs a new PlainView wrapped on an element. |
|
FieldView(Element elem)
Constructs a new FieldView wrapped on an element. |
|
AbstractDocument.AbstractElement(Element parent,
AttributeSet a)
Creates a new AbstractElement. |
|
AbstractDocument.BranchElement(Element parent,
AttributeSet a)
Constructs a composite element that initially contains no children. |
|
AbstractDocument.LeafElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
Constructs an element that represents content within the document (has no children). |
|
AbstractDocument.ElementEdit(Element e,
int index,
Element[] removed,
Element[] added)
Constructs an edit record. |
|
PasswordView(Element elem)
Constructs a new view wrapped on an element. |
|
AsyncBoxView(Element elem,
int axis)
Construct a box view that does asynchronous layout. |
|
TableView(Element elem)
Constructs a TableView for the given element. |
|
TableView.TableRow(Element elem)
Constructs a TableView for the given element. |
|
TableView.TableCell(Element elem)
Deprecated. Constructs a TableCell for the given element. |
|
ComponentView(Element elem)
Creates a new ComponentView object. |
|
IconView(Element elem)
Creates a new icon view that represents an element. |
|
WrappedPlainView(Element elem)
Creates a new WrappedPlainView. |
|
WrappedPlainView(Element elem,
boolean wordWrap)
Creates a new WrappedPlainView. |
|
ZoneView(Element elem,
int axis)
Constructs a ZoneView. |
|
DefaultStyledDocument.ElementBuffer(Element root)
Creates a new ElementBuffer. |
|
DefaultStyledDocument.AttributeUndoableEdit(Element element,
AttributeSet newAttributes,
boolean isReplacing)
|
Uses of Element in javax.swing.text.html |
Classes in javax.swing.text.html that implement Element | |
class |
HTMLDocument.BlockElement
An element that represents a structural block of HTML. |
class |
HTMLDocument.RunElement
An 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 Element | |
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 |
HTMLDocument.createBranchElement(Element parent,
AttributeSet a)
Creates a document branch element, that can contain other elements. |
Element |
HTMLDocument.getElement(String id)
Fetches the element that has the given id attribute. |
Element |
HTMLDocument.getElement(Element e,
Object attribute,
Object value)
Returns the child element of e that contains the
attribute, attribute with value value , or
null if one isn't found. |
Element |
HTMLFrameHyperlinkEvent.getSourceElement()
returns the element that corresponds to the source of the event. |
protected Element[] |
HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc,
int offset)
Returns an array of the Elements that contain offset . |
protected Element |
HTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc,
int offset,
HTML.Tag tag)
Returns the deepest element at offset matching
tag . |
Methods in javax.swing.text.html with parameters of type Element | |
Style |
StyleSheet.getRule(HTML.Tag t,
Element e)
Fetches the style to use to render the given type of HTML tag. |
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 |
HTMLDocument.createBranchElement(Element parent,
AttributeSet a)
Creates a document branch element, that can contain other elements. |
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. |
void |
HTMLDocument.insertAfterStart(Element elem,
String htmlText)
Inserts the HTML specified as a string at the start of the element. |
void |
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 string before the start of the given element. |
void |
HTMLDocument.insertAfterEnd(Element elem,
String htmlText)
Inserts the HTML specified as a string after the the end of the given element. |
Element |
HTMLDocument.getElement(Element e,
Object attribute,
Object value)
Returns the child element of e that contains the
attribute, attribute with value value , or
null if one isn't found. |
protected void |
HTMLEditorKit.createInputAttributes(Element element,
MutableAttributeSet set)
Copies the key/values in element s AttributeSet into
set . |
protected void |
HTMLWriter.emptyTag(Element elem)
Writes out all empty elements (all tags that have no corresponding end tag). |
protected void |
HTMLWriter.startTag(Element elem)
Writes out a start tag for the element. |
protected void |
HTMLWriter.text(Element elem)
Writes out text. |
protected void |
HTMLWriter.endTag(Element elem)
Writes out an end tag for the element. |
protected void |
HTMLWriter.comment(Element elem)
Writes out comments. |
protected boolean |
HTMLWriter.synthesizedElement(Element elem)
Returns true if the element is a synthesized element. |
protected void |
MinimalHTMLWriter.text(Element elem)
Writes out text. |
protected void |
MinimalHTMLWriter.writeStartParagraph(Element elem)
Emits the start tag for a paragraph. |
protected void |
MinimalHTMLWriter.writeLeaf(Element elem)
Responsible for writing out other non-text leaf elements. |
protected void |
MinimalHTMLWriter.writeImage(Element elem)
Responsible for handling Icon Elements; deliberately unimplemented. |
protected void |
MinimalHTMLWriter.writeComponent(Element elem)
Responsible for handling Component Elements; deliberately unimplemented. |
protected boolean |
MinimalHTMLWriter.isText(Element elem)
Returns true if the element is a text element. |
protected void |
MinimalHTMLWriter.writeContent(Element elem,
boolean needsIndenting)
Writes out the attribute set in an HTML-compliant manner. |
View |
HTMLEditorKit.HTMLFactory.create(Element elem)
Creates a view from an 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 insertAtBoundary |
Constructors in javax.swing.text.html with parameters of type Element | |
ParagraphView(Element elem)
Constructs a ParagraphView for the given element. |
|
BlockView(Element elem,
int axis)
Creates a new view that represents an html box. |
|
InlineView(Element elem)
Constructs a new view wrapped on an element. |
|
HTMLDocument.RunElement(Element parent,
AttributeSet a,
int offs0,
int offs1)
Constructs an element that represents content within the document (has no children). |
|
HTMLDocument.BlockElement(Element parent,
AttributeSet a)
Constructs a composite element that initially contains no children. |
|
HTMLFrameHyperlinkEvent(Object source,
HyperlinkEvent.EventType type,
URL targetURL,
Element sourceElement,
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. |
|
FormView(Element elem)
Creates a new FormView object. |
|
ObjectView(Element elem)
Creates a new ObjectView object. |
|
ListView(Element elem)
Creates a new view that represents a list element. |
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.