Serializable
, AccessibleComponent
, AccessibleExtendedComponent
AbstractButton.AccessibleAbstractButton
, JColorChooser.AccessibleJColorChooser
, JComboBox.AccessibleJComboBox
, JDesktopPane.AccessibleJDesktopPane
, JFileChooser.AccessibleJFileChooser
, JInternalFrame.AccessibleJInternalFrame
, JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon
, JLabel.AccessibleJLabel
, JLayeredPane.AccessibleJLayeredPane
, JList.AccessibleJList
, JMenuBar.AccessibleJMenuBar
, JOptionPane.AccessibleJOptionPane
, JPanel.AccessibleJPanel
, JPopupMenu.AccessibleJPopupMenu
, JProgressBar.AccessibleJProgressBar
, JRootPane.AccessibleJRootPane
, JScrollBar.AccessibleJScrollBar
, JScrollPane.AccessibleJScrollPane
, JSeparator.AccessibleJSeparator
, JSlider.AccessibleJSlider
, JSpinner.AccessibleJSpinner
, JSplitPane.AccessibleJSplitPane
, JTabbedPane.AccessibleJTabbedPane
, JTable.AccessibleJTable
, JTableHeader.AccessibleJTableHeader
, JTextComponent.AccessibleJTextComponent
, JToolBar.AccessibleJToolBar
, JToolTip.AccessibleJToolTip
, JTree.AccessibleJTree
, JViewport.AccessibleJViewport
JComponent
public abstract class JComponent.AccessibleJComponent extends Container.AccessibleAWTContainer implements AccessibleExtendedComponent
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans
package. Please see XMLEncoder
.
Modifier and Type | Class | Description |
---|---|---|
protected class |
JComponent.AccessibleJComponent.AccessibleContainerHandler |
Fire PropertyChange listener, if one is registered, when children added/removed. |
protected class |
JComponent.AccessibleJComponent.AccessibleFocusHandler |
Deprecated. This class is no longer used or needed. |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
Modifier and Type | Field | Description |
---|---|---|
protected FocusListener |
accessibleFocusHandler |
Deprecated. |
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 | Description |
---|---|---|
protected |
Though the class is abstract, this should be called by all sub-classes. |
Modifier and Type | Method | Description |
---|---|---|
void |
addPropertyChangeListener |
Adds a PropertyChangeListener to the listener list. |
Accessible |
getAccessibleChild |
Returns the nth Accessible child of the object. |
int |
getAccessibleChildrenCount() |
Returns the number of accessible children in the object. |
String |
getAccessibleDescription() |
Gets the accessible description of this object. |
AccessibleKeyBinding |
getAccessibleKeyBinding() |
Returns key bindings associated with this object |
String |
getAccessibleName() |
Gets the accessible name of this object. |
AccessibleRole |
getAccessibleRole() |
Gets the role of this object. |
AccessibleStateSet |
getAccessibleStateSet() |
Gets the state of this object. |
protected String |
getBorderTitle |
Recursively search through the border hierarchy (if it exists) for a TitledBorder with a non-null title. |
String |
getTitledBorderText() |
Returns the titled border text |
String |
getToolTipText() |
Returns the tool tip text |
void |
removePropertyChangeListener |
Removes a PropertyChangeListener from the listener list. |
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
protected AccessibleJComponent()
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in class Container.AccessibleAWTContainer
listener
- the PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in class Container.AccessibleAWTContainer
listener
- the PropertyChangeListener to be removedprotected String getBorderTitle(Border b)
b
- the Border
for which to retrieve its titleString
, null if it has no titlepublic String getAccessibleName()
getAccessibleName
in class Component.AccessibleAWTComponent
public String getAccessibleDescription()
getAccessibleDescription
in class Component.AccessibleAWTComponent
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class Component.AccessibleAWTComponent
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class Component.AccessibleAWTComponent
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class Container.AccessibleAWTContainer
public Accessible getAccessibleChild(int i)
getAccessibleChild
in class Container.AccessibleAWTContainer
i
- zero-based index of childpublic String getToolTipText()
getToolTipText
in interface AccessibleExtendedComponent
public String getTitledBorderText()
getTitledBorderText
in interface AccessibleExtendedComponent
public AccessibleKeyBinding getAccessibleKeyBinding()
getAccessibleKeyBinding
in interface AccessibleExtendedComponent
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/JComponent.AccessibleJComponent.html