protected class Container.AccessibleAWTContainer extends Component.AccessibleAWTComponent
该类用于获取此对象的可访问角色,以及在AccessibleContainer界面中实现许多方法。
Modifier and Type | Class and Description |
---|---|
protected class |
Container.AccessibleAWTContainer.AccessibleContainerHandler
消防
PropertyChange 听众,如果有人注册,当孩子被添加或删除。
|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
Modifier and Type | Field and Description |
---|---|
protected ContainerListener |
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 |
AccessibleAWTContainer() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
将PropertyChangeListener添加到侦听器列表。
|
Accessible |
getAccessibleAt(Point p)
返回
Accessible 小孩(如果存在),包含在本地坐标
Point 。
|
Accessible |
getAccessibleChild(int i)
返回对象的第n个
Accessible 子对象。
|
int |
getAccessibleChildrenCount()
返回对象中可访问的子对象的数量。
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
从侦听器列表中删除一个PropertyChangeListener。
|
addFocusListener, contains, getAccessibleComponent, getAccessibleDescription, getAccessibleIndexInParent, getAccessibleName, getAccessibleParent, getAccessibleRole, getAccessibleStateSet, 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
protected ContainerListener accessibleContainerHandler
public int getAccessibleChildrenCount()
Accessible
,那么这个方法应该返回这个对象的子Accessible
。
getAccessibleChildrenCount
在
Component.AccessibleAWTComponent
public Accessible getAccessibleChild(int i)
Accessible
子对象。
getAccessibleChild
在类别
Component.AccessibleAWTComponent
i
- 基于零的儿童索引
Accessible
孩子
AccessibleContext.getAccessibleChildrenCount()
public Accessible getAccessibleAt(Point p)
Accessible
小孩,如果存在,则包含在本地坐标
Point
。
getAccessibleAt
在界面
AccessibleComponent
getAccessibleAt
在类别
Component.AccessibleAWTComponent
p
-点定义的左上角
Accessible
,在对象的父对象的坐标空间中给出
Accessible
,如果存在,在指定的位置;
否则null
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
在类别
Component.AccessibleAWTComponent
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
在
Component.AccessibleAWTComponent
listener
- 要删除的PropertyChangeListener
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.