| Package | Description |
|---|---|
| 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.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| 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.
|
| Constructor and Description | |
|---|---|
HTMLLink(Element
|
| Modifier and Type | Method and Description |
|---|---|
Element |
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.
|
Element |
DocumentEvent.ElementChange.getElement()
Returns the element represented.
|
Element |
HyperlinkEvent.getSourceElement()
Returns the
Element that corresponds to the source of the event.
|
| Modifier and Type | Method and Description |
|---|---|
DocumentEvent |
DocumentEvent.getChange(Element
Gets the change information for the given element.
|
| Constructor and Description | |
|---|---|
HyperlinkEvent(Object
Creates a new object representing a hypertext link event.
|
|
HyperlinkEvent(Object
Creates a new object representing a hypertext link event.
|
| Modifier and Type | Method and Description |
|---|---|
View |
BasicPasswordFieldUI.create(Element
Creates a view (PasswordView) for an element.
|
View |
BasicTextAreaUI.create(Element
Creates the view for an element.
|
View |
BasicTextFieldUI.create(Element
Creates a view (FieldView) based on an element.
|
View |
BasicTextUI.create(Element
Creates a view for an element.
|
View |
BasicTextUI.create(Element
Creates a view for an element.
|
| Modifier and Type | Method and Description |
|---|---|
View |
SynthPasswordFieldUI.create(Element
Creates a view (PasswordView) for an element.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDocument
Implements the abstract part of an element.
|
class |
AbstractDocument
Implements a composite element that contains other elements.
|
class |
AbstractDocument
Implements an element that directly represents content of some kind.
|
protected class |
DefaultStyledDocument
Default root element for a document...
|
| Modifier and Type | Field and Description |
|---|---|
protected Element |
DefaultStyledDocument.AttributeUndoableEdit.element
|
| Modifier and Type | Method and Description |
|---|---|
Element |
DefaultStyledDocument.ElementBuffer.clone(Element
Creates a copy of this element, with a different parent.
|
protected Element |
AbstractDocument.createBranchElement(Element
Creates a document branch element, that can contain other elements.
|
protected Element |
AbstractDocument.createLeafElement(Element
Creates a document leaf element.
|
Element |
ElementIterator.current()
Fetches the current Element.
|
Element |
ElementIterator.first()
Fetches the first element.
|
Element |
AbstractDocument.getBidiRootElement()
Returns the root element of the bidirectional structure for this document.
|
Element |
StyledEditorKit.getCharacterAttributeRun()
Fetches the element representing the current run of character attributes for the caret.
|
Element |
DefaultStyledDocument.getCharacterElement(int pos)
Gets a character element based on a position.
|
Element |
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.
|
Element |
DefaultStyledDocument.getDefaultRootElement()
Gets the default root element.
|
Element |
PlainDocument.getDefaultRootElement()
Gets the default root element for the document model.
|
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.ElementEdit.getElement()
Returns the underlying element.
|
Element |
View.getElement()
Fetches the structural portion of the subject that this view is mapped to.
|
abstract Element |
AbstractDocument.AbstractElement.getElement(int index)
Gets a child element.
|
Element |
AbstractDocument.BranchElement.getElement(int index)
Gets a child element.
|
Element |
AbstractDocument.LeafElement.getElement(int index)
Gets a child element.
|
Element |
Element.getElement(int index)
Fetches the child element at the given index.
|
abstract Element |
AbstractDocument.getParagraphElement(int pos)
Get the paragraph element containing the given position.
|
Element |
DefaultStyledDocument.getParagraphElement(int pos)
Gets the paragraph element at the offset
pos.
|
Element |
PlainDocument.getParagraphElement(int pos)
Get the paragraph element containing the given position.
|
Element |
StyledDocument.getParagraphElement(int pos)
Gets the element that represents the paragraph that encloses the given offset within the document.
|
static Element |
Utilities.getParagraphElement(JTextComponent
Determines the element to use for a paragraph/line.
|
Element |
AbstractDocument.AbstractElement.getParentElement()
Gets the parent of the element.
|
Element |
Element.getParentElement()
Fetches the parent element.
|
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.
|
Element |
ElementIterator.next()
Fetches the next Element.
|
Element |
AbstractDocument.BranchElement.positionToElement(int pos)
Gets the child element that contains the given model position.
|
Element |
ElementIterator.previous()
Fetches the previous Element.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
DefaultStyledDocument.ElementBuffer.clone(Element
Creates a copy of this element, with a different parent.
|
View |
ViewFactory.create(Element
Creates a view from the given structural element of a document.
|
protected Element |
AbstractDocument.createBranchElement(Element
Creates a document branch element, that can contain other elements.
|
protected void |
StyledEditorKit.createInputAttributes(Element
Copies the key/values in
elements AttributeSet into
set.
|
protected Element |
AbstractDocument.createLeafElement(Element
Creates a document leaf element.
|
protected TableView |
TableView.createTableCell(Element
Deprecated.
Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.
|
protected TableView |
TableView.createTableRow(Element
Creates a new table row.
|
DocumentEvent |
AbstractDocument.DefaultDocumentEvent.getChange(Element
Gets the changes for an element.
|
protected String |
AbstractWriter.getText(Element
Returns the text associated with the element.
|
protected boolean |
AbstractWriter.inRange(Element
This method determines whether the current element is in the range specified.
|
void |
DefaultStyledDocument.removeElement(Element
Removes an element from this document.
|
void |
AbstractDocument.BranchElement.replace(int offset, int length, Element
Replaces content with a new set of elements.
|
protected void |
AbstractWriter.text(Element
Writes out text.
|
| Constructor and Description | |
|---|---|
AbstractElement(Element
Creates a new AbstractElement.
|
|
AbstractWriter(Writer
Creates a new AbstractWriter.
|
|
AbstractWriter(Writer
Creates a new AbstractWriter.
|
|
AsyncBoxView(Element
Construct a box view that does asynchronous layout.
|
|
AttributeUndoableEdit(Element
|
|
BoxView(Element
Constructs a
BoxView.
|
|
BranchElement(Element
Constructs a composite element that initially contains no children.
|
|
ComponentView(Element
Creates a new ComponentView object.
|
|
CompositeView(Element
Constructs a
CompositeView for the given element.
|
|
ElementBuffer(Element
Creates a new ElementBuffer.
|
|
ElementEdit(Element
Constructs an edit record.
|
|
ElementEdit(Element
Constructs an edit record.
|
|
ElementEdit(Element
Constructs an edit record.
|
|
ElementIterator(Element
Creates a new ElementIterator.
|
|
FieldView(Element
Constructs a new FieldView wrapped on an element.
|
|
FlowView(Element
Constructs a FlowView for the given element.
|
|
GlyphView(Element
Constructs a new view wrapped on an element.
|
|
IconView(Element
Creates a new icon view that represents an element.
|
|
LabelView(Element
Constructs a new view wrapped on an element.
|
|
LeafElement(Element
Constructs an element that represents content within the document (has no children).
|
|
ParagraphView(Element
Constructs a
ParagraphView for the given element.
|
|
PasswordView(Element
Constructs a new view wrapped on an element.
|
|
PlainView(Element
Constructs a new PlainView wrapped on an element.
|
|
TableCell(Element
Deprecated.
Constructs a TableCell for the given element.
|
|
TableRow(Element
Constructs a TableView for the given element.
|
|
TableView(Element
Constructs a TableView for the given element.
|
|
View(Element
Creates a new
View object.
|
|
WrappedPlainView(Element
Creates a new WrappedPlainView.
|
|
WrappedPlainView(Element
Creates a new WrappedPlainView.
|
|
ZoneView(Element
Constructs a ZoneView.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLDocument
An element that represents a structural
block of HTML.
|
class |
HTMLDocument
An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
HTMLDocument.createBranchElement(Element
Creates a document branch element, that can contain other elements.
|
protected Element |
HTMLDocument.createLeafElement(Element
Creates a document leaf element that directly represents text (doesn't have any children).
|
protected Element |
HTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument
Returns the deepest element at
offset matching
tag.
|
Element |
HTMLDocument.getElement(Element
Returns the child element of
e that contains the attribute,
attribute with value
value, or
null if one isn't found.
|
Element |
HTMLDocument.getElement(String
Returns the element that has the given id
Attribute.
|
protected Element |
HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument
Returns an array of the Elements that contain
offset.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
HTMLWriter.comment(Element
Writes out comments.
|
View |
HTMLEditorKit.HTMLFactory.create(Element
Creates a view from an element.
|
protected Element |
HTMLDocument.createBranchElement(Element
Creates a document branch element, that can contain other elements.
|
protected void |
HTMLEditorKit.createInputAttributes(Element
Copies the key/values in
elements AttributeSet into
set.
|
protected Element |
HTMLDocument.createLeafElement(Element
Creates a document leaf element that directly represents text (doesn't have any children).
|
protected void |
HTMLWriter.emptyTag(Element
Writes out all empty elements (all tags that have no corresponding end tag).
|
protected void |
HTMLWriter.endTag(Element
Writes out an end tag for the element.
|
Element |
HTMLDocument.getElement(Element
Returns the child element of
e that contains the attribute,
attribute with value
value, or
null if one isn't found.
|
Style |
StyleSheet.getRule(HTML
Fetches the style to use to render the given type of HTML tag.
|
void |
HTMLDocument.insertAfterEnd(Element
Inserts the HTML specified as a string after the the end of the given element.
|
void |
HTMLDocument.insertAfterStart(Element
Inserts the HTML specified as a string at the start of the element.
|
protected void |
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane
This is invoked when inserting at a boundary.
|
protected void |
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane
Deprecated.
As of Java 2 platform v1.3, use insertAtBoundary
|
void |
HTMLDocument.insertBeforeEnd(Element
Inserts the HTML specified as a string at the end of the element.
|
void |
HTMLDocument.insertBeforeStart(Element
Inserts the HTML specified as a string before the start of the given element.
|
protected boolean |
MinimalHTMLWriter.isText(Element
Returns true if the element is a text element.
|
void |
HTMLDocument.setInnerHTML(Element
Replaces the children of the given element with the contents specified as an HTML string.
|
void |
HTMLDocument.setOuterHTML(Element
Replaces the given element in the parent with the contents specified as an HTML string.
|
protected void |
HTMLWriter.startTag(Element
Writes out a start tag for the element.
|
protected boolean |
HTMLWriter.synthesizedElement(Element
Returns true if the element is a synthesized element.
|
protected void |
HTMLWriter.text(Element
Writes out text.
|
protected void |
MinimalHTMLWriter.text(Element
Writes out text.
|
protected void |
MinimalHTMLWriter.writeComponent(Element
Responsible for handling Component Elements; deliberately unimplemented.
|
protected void |
MinimalHTMLWriter.writeContent(Element
Writes out the attribute set in an HTML-compliant manner.
|
protected void |
MinimalHTMLWriter.writeImage(Element
Responsible for handling Icon Elements; deliberately unimplemented.
|
protected void |
MinimalHTMLWriter.writeLeaf(Element
Responsible for writing out other non-text leaf elements.
|
protected void |
MinimalHTMLWriter.writeStartParagraph(Element
Emits the start tag for a paragraph.
|
| Constructor and Description | |
|---|---|
BlockElement(Element
Constructs a composite element that initially contains no children.
|
|
BlockView(Element
Creates a new view that represents an html box.
|
|
FormView(Element
Creates a new FormView object.
|
|
HTMLFrameHyperlinkEvent(Object
Creates a new object representing a hypertext link event.
|
|
HTMLFrameHyperlinkEvent(Object
Creates a new object representing a hypertext link event.
|
|
HTMLFrameHyperlinkEvent(Object
Creates a new object representing a hypertext link event.
|
|
ImageView(Element
Creates a new view that represents an IMG element.
|
|
InlineView(Element
Constructs a new view wrapped on an element.
|
|
ListView(Element
Creates a new view that represents a list element.
|
|
ObjectView(Element
Creates a new ObjectView object.
|
|
ParagraphView(Element
Constructs a ParagraphView for the given element.
|
|
RunElement(Element
Constructs an element that represents content within the document (has no children).
|