protected class JTree.AccessibleJTree extends JComponent.AccessibleJComponent implements AccessibleSelection, TreeSelectionListener, TreeModelListener, TreeExpansionListener
JTree
类。
它提供了适用于树形用户界面元素的Java Accessibility API的实现。
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,支持所有JavaBeans的长期存储已经添加到java.beans
包中。 请参阅XMLEncoder
。
Modifier and Type | Class and Description |
---|---|
protected class |
JTree.AccessibleJTree.AccessibleJTreeNode
该课程为
JTree 孩子提供辅助功能支持。
|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
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
Constructor and Description |
---|
AccessibleJTree() |
addPropertyChangeListener, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getAccessibleStateSet, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener
addFocusListener, contains, getAccessibleComponent, 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, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFocusListener, contains, 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 void valueChanged(TreeSelectionEvent e)
valueChanged
中的
TreeSelectionListener
e
- ListSelectionEvent
public void fireVisibleDataPropertyChange()
public void treeNodesChanged(TreeModelEvent e)
treeNodesChanged
中的
TreeModelListener
e
- 树模型事件
public void treeNodesInserted(TreeModelEvent e)
treeNodesInserted
在界面
TreeModelListener
e
- 树节点插入事件
public void treeNodesRemoved(TreeModelEvent e)
treeNodesRemoved
在接口
TreeModelListener
e
- 一个树节点删除事件
public void treeStructureChanged(TreeModelEvent e)
treeStructureChanged
在接口
TreeModelListener
e
- 树模型事件
public void treeCollapsed(TreeExpansionEvent e)
treeCollapsed
在接口
TreeExpansionListener
e
- 一个TreeExpansionEvent
public void treeExpanded(TreeExpansionEvent e)
treeExpanded
在接口
TreeExpansionListener
e
- 树节点插入事件
public AccessibleRole getAccessibleRole()
getAccessibleRole
在
JComponent.AccessibleJComponent
AccessibleRole
public Accessible getAccessibleAt(Point p)
Accessible
小孩(如果存在),包含在本地坐标Point
。
否则返回null
。
getAccessibleAt
在界面
AccessibleComponent
getAccessibleAt
在
Container.AccessibleAWTContainer
p
- 在这个
Accessible
本地坐标点
Accessible
,如果存在,在指定的位置;
其他null
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
在
JComponent.AccessibleJComponent
public Accessible getAccessibleChild(int i)
getAccessibleChild
在
JComponent.AccessibleJComponent
i
- 基于零的儿童索引
AccessibleContext.getAccessibleChildrenCount()
public int getAccessibleIndexInParent()
getAccessibleIndexInParent
在
Component.AccessibleAWTComponent
类
Component.AccessibleAWTComponent.getAccessibleParent()
public AccessibleSelection getAccessibleSelection()
getAccessibleSelection
在
AccessibleContext
AccessibleSelection
public int getAccessibleSelectionCount()
getAccessibleSelectionCount
中的
AccessibleSelection
public Accessible getAccessibleSelection(int i)
getAccessibleSelection
在接口
AccessibleSelection
i
- 所选项目的从零开始的索引
AccessibleSelection.getAccessibleSelectionCount()
public boolean isAccessibleChildSelected(int i)
isAccessibleChildSelected
在接口
AccessibleSelection
i
- 此可访问对象
i
的从零开始的索引。
AccessibleContext.getAccessibleChild(int)
public void addAccessibleSelection(int i)
addAccessibleSelection
中的
AccessibleSelection
i
- 可选项目的零基索引
AccessibleContext.getAccessibleChild(int)
public void removeAccessibleSelection(int i)
removeAccessibleSelection
在接口
AccessibleSelection
i
- 可选项目的零基索引
AccessibleContext.getAccessibleChild(int)
public void clearAccessibleSelection()
clearAccessibleSelection
在界面
AccessibleSelection
public void selectAllAccessibleSelection()
selectAllAccessibleSelection
in interface
AccessibleSelection
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.