インタフェース
javax.swing.text.Elementの使用
Elementを使用するパッケージ
パッケージ
説明
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
Swingコンポーネントによってトリガーされるイベントを提供します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKitとサポート・クラスを提供します。-
javax.swingでのElementの使用
Element型のパラメータを持つjavax.swing内のコンストラクタ -
javax.swing.eventでのElementの使用
Elementを返すjavax.swing.event内のメソッド修飾子と型メソッド説明Element[]DocumentEvent.ElementChange.getChildrenAdded()指定された親要素に追加された子要素を返します。Element[]DocumentEvent.ElementChange.getChildrenRemoved()指定された親要素から削除された子要素を返します。DocumentEvent.ElementChange.getElement()表示された要素を返します。HyperlinkEvent.getSourceElement()イベントのソースに対応するElementを返します。Element型のパラメータを持つjavax.swing.event内のメソッドElement型のパラメータを持つjavax.swing.event内のコンストラクタ修飾子コンストラクタ説明HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement) ハイパーテキスト・リンク・イベントを表す新しいオブジェクトを作成します。HyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL u, String desc, Element sourceElement, InputEvent inputEvent) ハイパーテキスト・リンク・イベントを表す新しいオブジェクトを作成します。 -
javax.swing.plaf.basicでのElementの使用
Element型のパラメータを持つjavax.swing.plaf.basic内のメソッド修飾子と型メソッド説明要素のビュー(PasswordView)を作成します。要素のビューを作成します。要素のビューを作成します。要素のビューを作成します。要素のビューを作成します。 -
javax.swing.plaf.synthでのElementの使用
Element型のパラメータを持つjavax.swing.plaf.synth内のメソッド -
javax.swing.textでのElementの使用
Elementを実装しているjavax.swing.text内のクラス修飾子と型クラス説明class要素の抽象部分を実装します。classほかの要素を含む複合要素を実装します。classある種のコンテンツを直接表す要素を実装します。protected classドキュメントのデフォルト・ルート要素で、含まれる段落や行をマッピングします。Elementとして宣言されているjavax.swing.text内のフィールドElementを返すjavax.swing.text内のメソッド修飾子と型メソッド説明異なる親を使用して、この要素のコピーを作成します。protected ElementAbstractDocument.createBranchElement(Element parent, AttributeSet a) ドキュメントの枝の要素を作成します。この要素には、ほかの要素(複数可)を含めることができます。protected ElementAbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) ドキュメントの葉の要素を作成します。ElementIterator.current()現在のElementをフェッチします。ElementIterator.first()先頭の要素を取得します。AbstractDocument.getBidiRootElement()ドキュメントの双方向構造のルート要素を返します。StyledEditorKit.getCharacterAttributeRun()キャレットに対応する現在の文字属性を表す要素を取得します。DefaultStyledDocument.getCharacterElement(int pos) 位置に基づいて文字要素を取得します。StyledDocument.getCharacterElement(int pos) ドキュメント内の指定されたオフセットにある文字を表す要素を返します。Element[]AbstractDocument.ElementEdit.getChildrenAdded()追加された子のリストを取得します。Element[]AbstractDocument.ElementEdit.getChildrenRemoved()削除された子のリストを取得します。abstract ElementAbstractDocument.getDefaultRootElement()ルート要素を返します。要素の構造にビューを割り当てる別のメカニズムが提供されないかぎり、このルート要素がビューのベースになります。DefaultStyledDocument.getDefaultRootElement()デフォルトのルート要素が取得されます。Document.getDefaultRootElement()ルート要素を返します。要素の構造にビューを割り当てる別のメカニズムが提供されないかぎり、このルート要素がビューのベースになります。PlainDocument.getDefaultRootElement()ドキュメント・モデルのデフォルトのルート要素を取得します。abstract ElementAbstractDocument.AbstractElement.getElement(int index) 子要素を取得します。AbstractDocument.BranchElement.getElement(int index) 子要素を取得します。AbstractDocument.ElementEdit.getElement()処理対象の要素を返します。AbstractDocument.LeafElement.getElement(int index) 子要素を取得します。Element.getElement(int index) 指定されたインデックスの子要素を取得します。View.getElement()このビューがマッピングされる対象の構造部分を取り出します。abstract ElementAbstractDocument.getParagraphElement(int pos) 指定された位置を保持する段落要素を取得します。DefaultStyledDocument.getParagraphElement(int pos) オフセットposの段落の要素を取得します。PlainDocument.getParagraphElement(int pos) 指定された位置を保持する段落要素を取得します。StyledDocument.getParagraphElement(int pos) ドキュメント内の指定されたオフセットを含む段落を表す要素を返します。static final ElementUtilities.getParagraphElement(JTextComponent c, int offs) 段落または行に使用する要素を指定します。AbstractDocument.AbstractElement.getParentElement()要素の親を取得します。Element.getParentElement()親要素を取得します。DefaultStyledDocument.ElementBuffer.getRootElement()ルート要素を取得します。Element[]AbstractDocument.getRootElements()定義されているルート要素をすべて取得します。Element[]Document.getRootElements()定義されているすべてのルート要素を返します。ElementIterator.next()次のElementをフェッチします。AbstractDocument.BranchElement.positionToElement(int pos) 指定されたモデル位置を含む子要素を取得します。ElementIterator.previous()前のElementをフェッチします。Element型のパラメータを持つjavax.swing.text内のメソッド修飾子と型メソッド説明異なる親を使用して、この要素のコピーを作成します。ドキュメントの指定された構造要素からビューを作成します。protected ElementAbstractDocument.createBranchElement(Element parent, AttributeSet a) ドキュメントの枝の要素を作成します。この要素には、ほかの要素(複数可)を含めることができます。protected voidStyledEditorKit.createInputAttributes(Element element, MutableAttributeSet set) elementのAttributeSet内のキーと値のペアをsetにコピーします。protected ElementAbstractDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) ドキュメントの葉の要素を作成します。protected TableView.TableCellTableView.createTableCell(Element elem) 非推奨。テーブル・セルは任意のView実装となることができますが、テーブルではなく、ViewFactoryによって作成されるようにします。protected TableView.TableRowTableView.createTableRow(Element elem) 新しいテーブル行を作成します。要素の変更を取得します。protected String要素に関連したテキストを返します。protected booleanこのメソッドは、現在の要素が指定された範囲内にあるかどうかを判定します。voidDefaultStyledDocument.removeElement(Element elem) このドキュメントから要素を削除します。voidコンテンツを要素の新規セットで置き換えます。protected voidテキストを書き出します。Element型のパラメータを持つjavax.swing.text内のコンストラクタ修飾子コンストラクタ説明AbstractElement(Element parent, AttributeSet a) 新しいAbstractElementを作成します。protectedAbstractWriter(Writer w, Element root) 新しいAbstractWriterを作成します。protectedAbstractWriter(Writer w, Element root, int pos, int len) 新しいAbstractWriterを作成します。AsyncBoxView(Element elem, int axis) 非同期レイアウトを行うボックス・ビューを構築します。AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing) AttributeUndoableEditを構築します。BoxViewを構築します。BranchElement(Element parent, AttributeSet a) 最初は子を含まない、複合要素を作成します。ComponentView(Element elem) 新しいComponentViewオブジェクトを作成します。CompositeView(Element elem) 指定された要素のCompositeViewを構築します。ElementBuffer(Element root) 新しいElementBufferを作成します。ElementEdit(Element e, int index, Element[] removed, Element[] added) 編集のレコードを構築します。ElementIterator(Element root) 新しいElementIteratorを作成します。ラップした新しいFieldViewを要素で構築します。指定された要素のFlowViewを作成します。要素にラップされた新しいビューを作成します。要素を表現する新しいアイコン・ビューを作成します。要素にラップされた新しいビューを作成します。LeafElement(Element parent, AttributeSet a, int offs0, int offs1) ドキュメント内のコンテンツを表す(子を持たない)要素を作成します。ParagraphView(Element elem) 指定された要素のParagraphViewを構築します。PasswordView(Element elem) 要素にラップされた新しいビューを作成します。要素でラップされた新しいPlainViewを構築します。非推奨。指定された要素のテーブル・セルを構築します。指定された要素のTableViewを作成します。指定された要素のTableViewを作成します。新しいViewオブジェクトを作成します。WrappedPlainView(Element elem) 新しいWrappedPlainViewを作成します。WrappedPlainView(Element elem, boolean wordWrap) 新しいWrappedPlainViewを作成します。ZoneViewを構築します。 -
javax.swing.text.htmlでのElementの使用
Elementを実装しているjavax.swing.text.html内のクラス修飾子と型クラス説明classHTMLの構造ブロックを表す要素です。classHTML文字レベル属性のセットが割り当てられているテキストのチャンクを表す要素です。Elementを返すjavax.swing.text.html内のメソッド修飾子と型メソッド説明protected ElementHTMLDocument.createBranchElement(Element parent, AttributeSet a) ドキュメントの枝の要素を作成します。この要素には、ほかの要素(複数可)を含めることができます。protected ElementHTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) テキストを直接表す(子を持たない)ドキュメントの葉の要素を作成します。protected ElementHTMLEditorKit.HTMLTextAction.findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag) tagに一致するoffsetに位置する、いちばん深い要素を返します。HTMLDocument.getElement(String id) 指定したidAttributeを持つ要素を返します。HTMLDocument.getElement(Element e, Object attribute, Object value) 属性(値valueを持つattribute)を格納するeの子要素を返します。見つからない場合はnullを返します。protected Element[]HTMLEditorKit.HTMLTextAction.getElementsAt(HTMLDocument doc, int offset) offsetを格納する要素から成る配列を返します。Element型のパラメータを持つjavax.swing.text.html内のメソッド修飾子と型メソッド説明protected voidコメントを書き出します。要素からビューを作成します。protected ElementHTMLDocument.createBranchElement(Element parent, AttributeSet a) ドキュメントの枝の要素を作成します。この要素には、ほかの要素(複数可)を含めることができます。protected voidHTMLEditorKit.createInputAttributes(Element element, MutableAttributeSet set) elementのAttributeSet内のキーと値のペアをsetにコピーします。protected ElementHTMLDocument.createLeafElement(Element parent, AttributeSet a, int p0, int p1) テキストを直接表す(子を持たない)ドキュメントの葉の要素を作成します。protected voidすべての空要素(対応する終了タグのないタグすべて)を書き出します。protected void要素の終了タグを書き出します。HTMLDocument.getElement(Element e, Object attribute, Object value) 属性(値valueを持つattribute)を格納するeの子要素を返します。見つからない場合はnullを返します。指定されたタイプのHTMLタグを描画するために使用するスタイルを取得します。voidHTMLDocument.insertAfterEnd(Element elem, String htmlText) 指定された要素の末尾の後に、文字列として指定されたHTMLを挿入します。voidHTMLDocument.insertAfterStart(Element elem, String htmlText) 要素の開始位置に文字列として指定されたHTMLを挿入します。protected voidHTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) 境界に挿入するときに呼び出されます。protected voidHTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) 非推奨。Java 2プラットフォームv1.3以降は、insertAtBoundaryを使用してください。voidHTMLDocument.insertBeforeEnd(Element elem, String htmlText) 要素の終了位置に文字列として指定されたHTMLを挿入します。voidHTMLDocument.insertBeforeStart(Element elem, String htmlText) 指定された要素が開始される前に文字列として指定されたHTMLを挿入します。protected boolean要素がテキストならtrueを返します。voidHTMLDocument.setInnerHTML(Element elem, String htmlText) 指定された要素の子をHTML文字列として指定されたコンテンツと置き換えます。voidHTMLDocument.setOuterHTML(Element elem, String htmlText) 指定された親の要素をHTML文字列として指定されたコンテンツと置き換えます。protected void要素の開始タグを書き出します。protected booleanHTMLWriter.synthesizedElement(Element elem) 要素が合成された要素である場合、trueを返します。protected voidテキストを書き出します。protected voidテキストを書き出します。protected voidMinimalHTMLWriter.writeComponent(Element elem) コンポーネント要素の書出しを行います。意図的に実装しない場合があります。protected voidMinimalHTMLWriter.writeContent(Element elem, boolean needsIndenting) HTMLに準拠した方法で属性セットを書き出します。protected voidMinimalHTMLWriter.writeImage(Element elem) アイコン要素の書出しを行います。意図的に実装しない場合があります。protected voidテキスト以外の葉の要素の書出しを制御します。protected voidMinimalHTMLWriter.writeStartParagraph(Element elem) 段落の開始タグを発行します。Element型のパラメータを持つjavax.swing.text.html内のコンストラクタ修飾子コンストラクタ説明BlockElement(Element parent, AttributeSet a) 最初は子を含まない、複合要素を作成します。HTMLボックスを表す新しいビューを作成します。新しいFormViewオブジェクトを作成します。HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, InputEvent inputEvent, String targetFrame) ハイパーテキスト・リンク・イベントを表す新しいオブジェクトを作成します。HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, String desc, Element sourceElement, String targetFrame) ハイパーテキスト・リンク・イベントを表す新しいオブジェクトを作成します。HTMLFrameHyperlinkEvent(Object source, HyperlinkEvent.EventType type, URL targetURL, Element sourceElement, String targetFrame) ハイパーテキスト・リンク・イベントを表す新しいオブジェクトを作成します。IMG要素を表す新しいビューを作成します。InlineView(Element elem) 要素にラップされた新しいビューを作成します。リスト要素を表す新しいビューを作成します。ObjectView(Element elem) 新しいObjectViewオブジェクトを作成します。ParagraphView(Element elem) 指定された要素のParagraphViewを構築します。RunElement(Element parent, AttributeSet a, int offs0, int offs1) ドキュメント内のコンテンツを表す(子を持たない)要素を作成します。