|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.text.JTextComponent.AccessibleJTextComponent
public class JTextComponent.AccessibleJTextComponent
このクラスは JTextComponent クラス用のアクセシビリティーサポートを実装しています。メニューのユーザーインタフェース要素に適した Java Accessibility API を実装しています。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK Version 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| 入れ子のクラスの概要 |
|---|
| クラス javax.swing.JComponent.AccessibleJComponent から継承された入れ子のクラス/インタフェース |
|---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
| クラス java.awt.Component.AccessibleAWTComponent から継承された入れ子のクラス/インタフェース |
|---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
| フィールドの概要 |
|---|
| クラス javax.swing.JComponent.AccessibleJComponent から継承されたフィールド |
|---|
accessibleContainerHandler, accessibleFocusHandler |
| クラス java.awt.Component.AccessibleAWTComponent から継承されたフィールド |
|---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
| インタフェース javax.accessibility.AccessibleAction から継承されたフィールド |
|---|
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP |
| インタフェース javax.accessibility.AccessibleText から継承されたフィールド |
|---|
CHARACTER, SENTENCE, WORD |
| インタフェース javax.accessibility.AccessibleExtendedText から継承されたフィールド |
|---|
ATTRIBUTE_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 つのインデックス間のテキストを囲む矩形を返します。 |
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)
テキストコンテンツを指定文字列に設定します。 |
| クラス java.awt.Container.AccessibleAWTContainer から継承されたメソッド |
|---|
getAccessibleAt |
| クラス javax.accessibility.AccessibleContext から継承されたメソッド |
|---|
firePropertyChange, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース javax.accessibility.AccessibleComponent から継承されたメソッド |
|---|
addFocusListener, 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, setVisible |
| コンストラクタの詳細 |
|---|
public JTextComponent.AccessibleJTextComponent()
| メソッドの詳細 |
|---|
public void caretUpdate(CaretEvent e)
CaretListener 内の caretUpdatee - CaretEventpublic void insertUpdate(DocumentEvent e)
DocumentListener 内の insertUpdatee - DocumentEventpublic void removeUpdate(DocumentEvent e)
DocumentListener 内の removeUpdatee - DocumentEventpublic void changedUpdate(DocumentEvent e)
DocumentListener 内の changedUpdatee - DocumentEventpublic AccessibleStateSet getAccessibleStateSet()
JComponent.AccessibleJComponent 内の getAccessibleStateSetAccessibleStateSet,
AccessibleState,
JComponent.AccessibleJComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)public AccessibleRole getAccessibleRole()
JComponent.AccessibleJComponent 内の getAccessibleRoleAccessibleRolepublic AccessibleText getAccessibleText()
AccessibleContext 内の getAccessibleTextAccessibleTextpublic int getIndexAtPoint(Point p)
AccessibleText 内の getIndexAtPointp - ローカル座標の Point
public Rectangle getCharacterBounds(int i)
AccessibleText 内の getCharacterBoundsi - String に対するインデックス >= 0
public int getCharCount()
AccessibleText 内の getCharCountpublic int getCaretPosition()
AccessibleText 内の getCaretPositionpublic AttributeSet getCharacterAttribute(int i)
AccessibleText 内の getCharacterAttributei - テキストに対するゼロから始まるインデックス
public int getSelectionStart()
AccessibleText 内の getSelectionStartpublic int getSelectionEnd()
AccessibleText 内の getSelectionEndpublic String getSelectedText()
AccessibleText 内の getSelectedText
public String getAtIndex(int part,
int index)
AccessibleText 内の getAtIndexpart - 取り出す CHARACTER、WORD、または SENTENCEindex - テキスト内の文字インデックス
public String getAfterIndex(int part,
int index)
AccessibleText 内の getAfterIndexpart - 取り出す CHARACTER、WORD、または SENTENCEindex - テキスト内の文字インデックス
public String getBeforeIndex(int part,
int index)
AccessibleText 内の getBeforeIndexpart - 取り出す CHARACTER、WORD、または SENTENCEindex - テキスト内の文字インデックス
public AccessibleEditableText getAccessibleEditableText()
AccessibleContext 内の getAccessibleEditableTextAccessibleEditableTextpublic void setTextContents(String s)
AccessibleEditableText 内の setTextContentss - テキストコンテンツを設定する文字列
public void insertTextAtIndex(int index,
String s)
AccessibleEditableText 内の insertTextAtIndexindex - 文字列を挿入するテキストの インデックスs - テキストに挿入する文字列
public String getTextRange(int startIndex,
int endIndex)
AccessibleEditableText 内の getTextRangeAccessibleExtendedText 内の getTextRangestartIndex - テキストの開始インデックスendIndex - テキストの終了インデックス
public void delete(int startIndex,
int endIndex)
AccessibleEditableText 内の deletestartIndex - テキストの開始インデックスendIndex - テキストの終了インデックス
public void cut(int startIndex,
int endIndex)
AccessibleEditableText 内の cutstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスpublic void paste(int startIndex)
AccessibleEditableText 内の pastestartIndex - テキストの開始インデックス
public void replaceText(int startIndex,
int endIndex,
String s)
AccessibleEditableText 内の replaceTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスs - 2 つのインデックス間のテキストを置き換える文字列
public void selectText(int startIndex,
int endIndex)
AccessibleEditableText 内の selectTextstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックス
public void setAttributes(int startIndex,
int endIndex,
AttributeSet as)
AccessibleEditableText 内の setAttributesstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックスas - 属性セットAttributeSet
public AccessibleTextSequence getTextSequenceAt(int part,
int index)
index にある AccessibleTextSequence を返します。
AccessibleExtendedText 内の getTextSequenceAtpart - 取得する CHARACTER、WORD、 SENTENCE、LINE、 または ATTRIBUTE_RUNindex - テキスト内の文字インデックス
part と index が有効な場合は、テキストを指定する AccessibleTextSequence。そうでない場合は null を返すAccessibleText.CHARACTER,
AccessibleText.WORD,
AccessibleText.SENTENCE,
AccessibleExtendedText.LINE,
AccessibleExtendedText.ATTRIBUTE_RUN
public AccessibleTextSequence getTextSequenceAfter(int part,
int index)
index の後ろの AccessibleTextSequence を返します。
AccessibleExtendedText 内の getTextSequenceAfterpart - 取得する CHARACTER、WORD、 SENTENCE、LINE、 または ATTRIBUTE_RUNindex - テキスト内の文字インデックス
part と index が有効な場合は、テキストを指定する AccessibleTextSequence。そうでない場合は null を返すAccessibleText.CHARACTER,
AccessibleText.WORD,
AccessibleText.SENTENCE,
AccessibleExtendedText.LINE,
AccessibleExtendedText.ATTRIBUTE_RUN
public AccessibleTextSequence getTextSequenceBefore(int part,
int index)
index の前の AccessibleTextSequence を返します。
AccessibleExtendedText 内の getTextSequenceBeforepart - 取得する CHARACTER、WORD、 SENTENCE、LINE、 または ATTRIBUTE_RUNindex - テキスト内の文字インデックス
part と index が有効な場合は、テキストを指定する AccessibleTextSequence。そうでない場合は null を返すAccessibleText.CHARACTER,
AccessibleText.WORD,
AccessibleText.SENTENCE,
AccessibleExtendedText.LINE,
AccessibleExtendedText.ATTRIBUTE_RUN
public Rectangle getTextBounds(int startIndex,
int endIndex)
AccessibleExtendedText 内の getTextBoundsstartIndex - テキストの開始インデックスendIndex - テキストの終了インデックス
null を返すpublic AccessibleAction getAccessibleAction()
AccessibleContext の記述:
AccessibleContext 内の getAccessibleActionAccessibleActionpublic int getAccessibleActionCount()
AccessibleAction 内の getAccessibleActionCountpublic String getAccessibleActionDescription(int i)
AccessibleAction 内の getAccessibleActionDescriptioni - アクションのゼロから始まるインデックス
getAccessibleActionCount()public boolean doAccessibleAction(int i)
AccessibleAction 内の doAccessibleActioni - アクションのゼロから始まるインデックス
getAccessibleActionCount()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。