public abstract class JComponent.AccessibleJComponent extends Container.AccessibleAWTContainer implements AccessibleExtendedComponent
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,对所有JavaBeans的长期存储的支持已经添加到java.beans
包中。 请参阅XMLEncoder
。
Modifier and Type | Class and Description |
---|---|
protected class |
JComponent.AccessibleJComponent.AccessibleContainerHandler
Fire PropertyChange监听器,如果一个注册,当孩子添加/删除。
|
protected class |
JComponent.AccessibleJComponent.AccessibleFocusHandler
FireChangeChange监听器,如果已注册,焦点事件发生时
|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
Modifier and Type | Field and Description |
---|---|
protected FocusListener |
accessibleFocusHandler
已弃用
|
accessibleContainerHandler
accessibleAWTComponentHandler, accessibleAWTFocusHandler
ACCESSIBLE_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, accessibleParent
Modifier | Constructor and Description |
---|---|
protected |
AccessibleJComponent()
虽然这个类是抽象的,但这应该由所有子类调用。
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
将PropertyChangeListener添加到侦听器列表。
|
Accessible |
getAccessibleChild(int i)
返回对象的第n个可访问子对象。
|
int |
getAccessibleChildrenCount()
返回对象中可访问的子对象的数量。
|
String |
getAccessibleDescription()
获取此对象的可访问描述。
|
AccessibleKeyBinding |
getAccessibleKeyBinding()
返回与此对象关联的键绑定
|
String |
getAccessibleName()
获取此对象的可访问名称。
|
AccessibleRole |
getAccessibleRole()
获得此对象的作用。
|
AccessibleStateSet |
getAccessibleStateSet()
获取此对象的状态。
|
protected String |
getBorderTitle(Border b)
递归搜索具有非空标题的TitledBorder的边界层次结构(如果存在)。
|
String |
getTitledBorderText()
返回标题边框文本
|
String |
getToolTipText()
返回工具提示文本
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
从侦听器列表中移除PropertyChangeListener。
|
getAccessibleAt
addFocusListener, 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, setVisible
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
@Deprecated protected FocusListener accessibleFocusHandler
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
在
Container.AccessibleAWTContainer
listener
- 要添加的PropertyChangeListener
AccessibleContext.ACCESSIBLE_NAME_PROPERTY
,
AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY
,
AccessibleContext.ACCESSIBLE_STATE_PROPERTY
,
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY
,
AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY
,
AccessibleContext.ACCESSIBLE_TEXT_PROPERTY
,
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
在
Container.AccessibleAWTContainer
listener
- 要删除的PropertyChangeListener
protected String getBorderTitle(Border b)
public String getAccessibleName()
getAccessibleName
在
Component.AccessibleAWTComponent
AccessibleContext.setAccessibleName(java.lang.String)
public String getAccessibleDescription()
getAccessibleDescription
在
Component.AccessibleAWTComponent
AccessibleContext.setAccessibleDescription(java.lang.String)
public AccessibleRole getAccessibleRole()
getAccessibleRole
在
Component.AccessibleAWTComponent
AccessibleRole
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
在
Component.AccessibleAWTComponent
AccessibleState
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
在
Container.AccessibleAWTContainer
public Accessible getAccessibleChild(int i)
getAccessibleChild
在
Container.AccessibleAWTContainer
i
- 基于零的儿童索引
AccessibleContext.getAccessibleChildrenCount()
public String getToolTipText()
getToolTipText
在界面
AccessibleExtendedComponent
public String getTitledBorderText()
getTitledBorderText
在接口
AccessibleExtendedComponent
public AccessibleKeyBinding getAccessibleKeyBinding()
getAccessibleKeyBinding
在接口
AccessibleExtendedComponent
AccessibleKeyBinding
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.