public class JTextComponent.AccessibleJTextComponent extends JComponent.AccessibleJComponent implements AccessibleText, CaretListener, DocumentListener, AccessibleAction, AccessibleEditableText, AccessibleExtendedText
JTextComponent クラスのアクセシビリティーサポートを実装しています。メニューのユーザーインタフェース要素に適した Java Accessibility API を実装しています。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の格納や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。1.4 以降、すべての JavaBeansTM 用の長期間の格納サポートが java.beans パッケージに追加されています。XMLEncoder を参照してください。
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandlerComponent.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandleraccessibleFocusHandleraccessibleContainerHandleraccessibleAWTComponentHandler, accessibleAWTFocusHandlerACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParentCLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUPCHARACTER, SENTENCE, WORDATTRIBUTE_RUN, LINE| コンストラクタと説明 |
|---|
JTextComponent.AccessibleJTextComponent()
AccessibleJTextComponent を構築します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
void |
caretUpdate(CaretEvent e)
キャレット更新を処理します (AccessibleContext.ACCESSIBLE_CARET_PROPERTY と AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY という適切なプロパティー変更イベントをトリガーする)。
|
void |
changedUpdate(DocumentEvent e)
ドキュメントの削除を処理します (AccessibleContext.ACCESSIBLE_TEXT_PROPERTY という適切なプロパティー変更イベントをトリガーする)。
|
void |
cut(int startIndex, int endIndex)
2 つのインデックス間のテキストを切り取り、システムクリップボードへ格納します。
|
void |
delete(int startIndex, int endIndex)
2 つのインデックス間のテキストを削除します。
|
boolean |
doAccessibleAction(int i)
オブジェクトに対して指定された Action を実行します。
|
AccessibleAction |
getAccessibleAction()
1 つ以上のアクションをサポートするこのオブジェクトに関連付けられた AccessibleAction を取得します。
|
int |
getAccessibleActionCount()
オブジェクトで利用可能なアクセシビリティー対応のアクションの数を返します。アクションが複数ある場合は、最初のアクションがオブジェクトの「デフォルトアクション」と見なされます。
|
String |
getAccessibleActionDescription(int i)
指定されたオブジェクトのアクションについての説明を返します。
|
AccessibleEditableText |
getAccessibleEditableText()
このテキストコンポーネントの AccessibleEditableText インタフェースを返します。
|
AccessibleRole |
getAccessibleRole()
このオブジェクトの役割を取得します。
|
AccessibleStateSet |
getAccessibleStateSet()
JTextComponent の状態セットを取得します。
|
AccessibleText |
getAccessibleText()
このオブジェクトに関連付けられた AccessibleText を取得します。
|
String |
getAfterIndex(int part, int index)
指定されたインデックスのあとの文字列を返します。
|
String |
getAtIndex(int part, int index)
指定されたインデックスでの文字列を返します。
|
String |
getBeforeIndex(int part, int index)
指定されたインデックスの前の文字列を返します。
|
int |
getCaretPosition()
キャレットのゼロから始まるオフセットを返します。
|
AttributeSet |
getCharacterAttribute(int i)
インデックスで指定された文字の AttributeSet を返します。
|
Rectangle |
getCharacterBounds(int i)
文字列に対する指定されたインデックスで文字のバウンディングボックスを決定します。
|
int |
getCharCount()
文字の数を返します (有効なインデックス)。
|
int |
getIndexAtPoint(Point p)
ローカル座標でポイントを指定し、その Point 下の文字のゼロから始まるインデックスを返します。
|
String |
getSelectedText()
選択されているテキストの一部を返します。
|
int |
getSelectionEnd()
選択したテキスト内の終了オフセットを返します。
|
int |
getSelectionStart()
選択したテキスト内の開始オフセットを返します。
|
Rectangle |
getTextBounds(int startIndex, int endIndex)
2 つのインデックス間のテキストを囲む
Rectangle を返します。 |
String |
getTextRange(int startIndex, int endIndex)
2 つのインデックス間のテキスト文字列を返します。
|
AccessibleTextSequence |
getTextSequenceAfter(int part, int index)
指定された
index の後ろの AccessibleTextSequence を返します。 |
AccessibleTextSequence |
getTextSequenceAt(int part, int index)
指定された
index にある AccessibleTextSequence を返します。 |
AccessibleTextSequence |
getTextSequenceBefore(int part, int index)
指定された
index の前の AccessibleTextSequence を返します。 |
void |
insertTextAtIndex(int index, String s)
指定された文字列を指定されたインデックスに挿入します。
|
void |
insertUpdate(DocumentEvent e)
ドキュメントの挿入を処理します (AccessibleContext.ACCESSIBLE_TEXT_PROPERTY という適切なプロパティー変更イベントをトリガーする)。
|
void |
paste(int startIndex)
システムクリップボードのテキストを指定したインデックスで始まるテキストにペーストします。
|
void |
removeUpdate(DocumentEvent e)
ドキュメントの削除を処理します (AccessibleContext.ACCESSIBLE_TEXT_PROPERTY という適切なプロパティー変更イベントをトリガーする)。
|
void |
replaceText(int startIndex, int endIndex, String s)
2 つのインデックス間のテキストを、指定した文字列に置き換えます。
|
void |
selectText(int startIndex, int endIndex)
2 つのインデックス間のテキストを選択します。
|
void |
setAttributes(int startIndex, int endIndex, AttributeSet as)
2 つのインデックス間のテキストの属性を設定します。
|
void |
setTextContents(String s)
テキストコンテンツを指定文字列に設定します。
|
addPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListenergetAccessibleAtaddFocusListener, contains, getAccessibleComponent, getAccessibleIndexInParent, getAccessibleParent, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisiblefirePropertyChange, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFocusListener, contains, getAccessibleAt, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisiblepublic JTextComponent.AccessibleJTextComponent()
public void caretUpdate(CaretEvent e)
caretUpdate 、インタフェース: CaretListenere - CaretEventpublic void insertUpdate(DocumentEvent e)
insertUpdate 、インタフェース: DocumentListenere - DocumentEventpublic void removeUpdate(DocumentEvent e)
removeUpdate 、インタフェース: DocumentListenere - DocumentEventpublic void changedUpdate(DocumentEvent e)
changedUpdate 、インタフェース: DocumentListenere - DocumentEventpublic AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet 、クラス: JComponent.AccessibleJComponentAccessibleStateSet, AccessibleState, JComponent.AccessibleJComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)public AccessibleRole getAccessibleRole()
getAccessibleRole 、クラス: JComponent.AccessibleJComponentAccessibleRolepublic AccessibleText getAccessibleText()
getAccessibleText 、クラス: AccessibleContextAccessibleTextpublic int getIndexAtPoint(Point p)
getIndexAtPoint 、インタフェース: AccessibleTextp - ローカル座標の Pointpublic Rectangle getCharacterBounds(int i)
getCharacterBounds 、インタフェース: AccessibleTexti - String に対するインデックス >= 0public int getCharCount()
getCharCount 、インタフェース: AccessibleTextpublic int getCaretPosition()
getCaretPosition 、インタフェース: AccessibleTextpublic AttributeSet getCharacterAttribute(int i)
getCharacterAttribute 、インタフェース: AccessibleTexti - テキスト内の 0 から始まるインデックスpublic int getSelectionStart()
getSelectionStart 、インタフェース: AccessibleTextpublic int getSelectionEnd()
getSelectionEnd 、インタフェース: AccessibleTextpublic String getSelectedText()
getSelectedText 、インタフェース: AccessibleTextpublic String getAtIndex(int part, int index)
getAtIndex 、インタフェース: AccessibleTextpart - 取得する CHARACTER、WORD、または SENTENCEindex - テキスト内のインデックスpublic String getAfterIndex(int part, int index)
getAfterIndex 、インタフェース: AccessibleTextpart - 取得する CHARACTER、WORD、または SENTENCEindex - テキスト内のインデックスpublic String getBeforeIndex(int part, int index)
getBeforeIndex 、インタフェース: AccessibleTextpart - 取得する CHARACTER、WORD、または SENTENCEindex - テキスト内のインデックスpublic AccessibleEditableText getAccessibleEditableText()
getAccessibleEditableText 、クラス: AccessibleContextAccessibleEditableTextpublic void setTextContents(String s)
setTextContents 、インタフェース: AccessibleEditableTexts - テキストコンテンツを設定する文字列public void insertTextAtIndex(int index,
String s)
insertTextAtIndex 、インタフェース: AccessibleEditableTextindex - 文字列を挿入するテキストのインデックスs - テキストに挿入する文字列public String getTextRange(int startIndex, int endIndex)
getTextRange 、インタフェース: AccessibleEditableTextgetTextRange 、インタフェース: AccessibleExtendedTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスpublic void delete(int startIndex,
int endIndex)
delete 、インタフェース: AccessibleEditableTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスpublic void cut(int startIndex,
int endIndex)
cut 、インタフェース: AccessibleEditableTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスpublic void paste(int startIndex)
paste 、インタフェース: AccessibleEditableTextstartIndex - テキストの開始インデックスpublic void replaceText(int startIndex,
int endIndex,
String s)
replaceText 、インタフェース: AccessibleEditableTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスs - 2 つのインデックス間のテキストを置き換える文字列public void selectText(int startIndex,
int endIndex)
selectText 、インタフェース: AccessibleEditableTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスpublic void setAttributes(int startIndex,
int endIndex,
AttributeSet as)
setAttributes 、インタフェース: AccessibleEditableTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスas - 属性セットAttributeSetpublic AccessibleTextSequence getTextSequenceAt(int part, int index)
index にある AccessibleTextSequence を返します。getTextSequenceAt 、インタフェース: AccessibleExtendedTextpart - 取得する CHARACTER、WORD、SENTENCE、LINE、または ATTRIBUTE_RUNindex - テキスト内のインデックスpart と index が有効な場合は、テキストを指定する AccessibleTextSequence。それ以外の場合は null を返すAccessibleText.CHARACTER, AccessibleText.WORD, AccessibleText.SENTENCE, AccessibleExtendedText.LINE, AccessibleExtendedText.ATTRIBUTE_RUNpublic AccessibleTextSequence getTextSequenceAfter(int part, int index)
index の後ろの AccessibleTextSequence を返します。getTextSequenceAfter 、インタフェース: AccessibleExtendedTextpart - 取得する CHARACTER、WORD、SENTENCE、LINE、または ATTRIBUTE_RUNindex - テキスト内のインデックスpart と index が有効な場合は、テキストを指定する AccessibleTextSequence。それ以外の場合は null を返すAccessibleText.CHARACTER, AccessibleText.WORD, AccessibleText.SENTENCE, AccessibleExtendedText.LINE, AccessibleExtendedText.ATTRIBUTE_RUNpublic AccessibleTextSequence getTextSequenceBefore(int part, int index)
index の前の AccessibleTextSequence を返します。getTextSequenceBefore 、インタフェース: AccessibleExtendedTextpart - 取得する CHARACTER、WORD、SENTENCE、LINE、または ATTRIBUTE_RUNindex - テキスト内のインデックスpart と index が有効な場合は、テキストを指定する AccessibleTextSequence。それ以外の場合は null を返すAccessibleText.CHARACTER, AccessibleText.WORD, AccessibleText.SENTENCE, AccessibleExtendedText.LINE, AccessibleExtendedText.ATTRIBUTE_RUNpublic Rectangle getTextBounds(int startIndex, int endIndex)
Rectangle を返します。getTextBounds 、インタフェース: AccessibleExtendedTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスnull を返すpublic AccessibleAction getAccessibleAction()
AccessibleContextgetAccessibleAction 、クラス: AccessibleContextAccessibleActionpublic int getAccessibleActionCount()
getAccessibleActionCount 、インタフェース: AccessibleActionpublic String getAccessibleActionDescription(int i)
getAccessibleActionDescription 、インタフェース: AccessibleActioni - アクションのゼロから始まるインデックスgetAccessibleActionCount()public boolean doAccessibleAction(int i)
doAccessibleAction 、インタフェース: AccessibleActioni - アクションのゼロから始まるインデックスgetAccessibleActionCount() バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.