Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
abstract public class: JComponent.AccessibleJComponent [javadoc | source]
java.lang.Object
   AccessibleAWTContainer
      javax.swing.JComponent$AccessibleJComponent

All Implemented Interfaces:
    AccessibleExtendedComponent

Inner class of JComponent used to provide default support for accessibility. This class is not meant to be used directly by application developers, but is instead meant only to be subclassed by component developers.

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 JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder .
Nested Class Summary:
protected class  AccessibleJComponent.AccessibleContainerHandler  Fire PropertyChange listener, if one is registered, when children added/removed. 
protected class  AccessibleJComponent.AccessibleFocusHandler  Fire PropertyChange listener, if one is registered, when focus events happen 
Field Summary
protected  ContainerListener accessibleContainerHandler     
protected  FocusListener accessibleFocusHandler     
Constructor:
 protected AccessibleJComponent() 
Method from javax.swing.JComponent$AccessibleJComponent Summary:
addPropertyChangeListener,   getAccessibleChild,   getAccessibleChildrenCount,   getAccessibleDescription,   getAccessibleExtendedComponent,   getAccessibleKeyBinding,   getAccessibleName,   getAccessibleRole,   getAccessibleStateSet,   getBorderTitle,   getTitledBorderText,   getToolTipText,   removePropertyChangeListener
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.JComponent$AccessibleJComponent Detail:
 public  void addPropertyChangeListener(PropertyChangeListener listener) 
    Adds a PropertyChangeListener to the listener list.
 public Accessible getAccessibleChild(int i) 
    Returns the nth Accessible child of the object.
 public int getAccessibleChildrenCount() 
    Returns the number of accessible children in the object. If all of the children of this object implement Accessible, than this method should return the number of children of this object.
 public String getAccessibleDescription() 
    Gets the accessible description of this object. This should be a concise, localized description of what this object is - what is its meaning to the user. If the object has a tooltip, the tooltip text may be an appropriate string to return, assuming it contains a concise description of the object (instead of just the name of the object - for example a "Save" icon on a toolbar that had "save" as the tooltip text shouldn't return the tooltip text as the description, but something like "Saves the current text document" instead).
 AccessibleExtendedComponent getAccessibleExtendedComponent() 
    Returns the AccessibleExtendedComponent
 public AccessibleKeyBinding getAccessibleKeyBinding() 
    Returns key bindings associated with this object
 public String getAccessibleName() 
    Gets the accessible name of this object. This should almost never return java.awt.Component.getName(), as that generally isn't a localized name, and doesn't have meaning for the user. If the object is fundamentally a text object (such as a menu item), the accessible name should be the text of the object (for example, "save"). If the object has a tooltip, the tooltip text may also be an appropriate String to return.
 public AccessibleRole getAccessibleRole() 
    Gets the role of this object.
 public AccessibleStateSet getAccessibleStateSet() 
    Gets the state of this object.
 protected String getBorderTitle(Border b) 
    Recursively search through the border hierarchy (if it exists) for a TitledBorder with a non-null title. This does a depth first search on first the inside borders then the outside borders. The assumption is that titles make really pretty inside borders but not very pretty outside borders in compound border situations. It's rather arbitrary, but hopefully decent UI programmers will not create multiple titled borders for the same component.
 public String getTitledBorderText() 
    Returns the titled border text
 public String getToolTipText() 
    Returns the tool tip text
 public  void removePropertyChangeListener(PropertyChangeListener listener) 
    Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.