Save This Page
Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
abstract protected class: Component.AccessibleAWTComponent [javadoc | source]
java.lang.Object
   javax.accessibility.AccessibleContext
      java.awt.Component$AccessibleAWTComponent

All Implemented Interfaces:
    AccessibleComponent, Serializable

This class provides accessibility support for subclasses of container.
Nested Class Summary:
protected class  AccessibleAWTComponent.AccessibleAWTComponentHandler  Converts component changes into property changes. 
protected class  AccessibleAWTComponent.AccessibleAWTFocusHandler  Converts focus changes into property changes. 
Field Summary
protected  ComponentListener accessibleAWTComponentHandler    Converts show/hide events to PropertyChange events, and is registered as a component listener on this component.
    serial: the - component handler
 
protected  FocusListener accessibleAWTFocusHandler    Converts focus events to PropertyChange events, and is registered as a focus listener on this component.
    serial: the - focus handler
 
Fields inherited from javax.accessibility.AccessibleContext:
ACCESSIBLE_NAME_PROPERTY,  ACCESSIBLE_DESCRIPTION_PROPERTY,  ACCESSIBLE_STATE_PROPERTY,  ACCESSIBLE_VALUE_PROPERTY,  ACCESSIBLE_SELECTION_PROPERTY,  ACCESSIBLE_CARET_PROPERTY,  ACCESSIBLE_VISIBLE_DATA_PROPERTY,  ACCESSIBLE_CHILD_PROPERTY,  ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY,  ACCESSIBLE_TABLE_CAPTION_CHANGED,  ACCESSIBLE_TABLE_SUMMARY_CHANGED,  ACCESSIBLE_TABLE_MODEL_CHANGED,  ACCESSIBLE_TABLE_ROW_HEADER_CHANGED,  ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED,  ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED,  ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED,  ACCESSIBLE_ACTION_PROPERTY,  ACCESSIBLE_HYPERTEXT_OFFSET,  ACCESSIBLE_TEXT_PROPERTY,  ACCESSIBLE_INVALIDATE_CHILDREN,  ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED,  ACCESSIBLE_COMPONENT_BOUNDS_CHANGED,  accessibleParent,  accessibleName,  accessibleDescription
Constructor:
 protected AccessibleAWTComponent() 
Method from java.awt.Component$AccessibleAWTComponent Summary:
addFocusListener,   addPropertyChangeListener,   contains,   getAccessibleAt,   getAccessibleChild,   getAccessibleChildrenCount,   getAccessibleComponent,   getAccessibleDescription,   getAccessibleIndexInParent,   getAccessibleName,   getAccessibleParent,   getAccessibleRole,   getAccessibleStateSet,   getBackground,   getBounds,   getCursor,   getFont,   getFontMetrics,   getForeground,   getLocale,   getLocation,   getLocationOnScreen,   getSize,   isEnabled,   isFocusTraversable,   isShowing,   isVisible,   removeFocusListener,   removePropertyChangeListener,   requestFocus,   setBackground,   setBounds,   setCursor,   setEnabled,   setFont,   setForeground,   setLocation,   setSize,   setVisible
Methods from javax.accessibility.AccessibleContext:
addPropertyChangeListener,   firePropertyChange,   getAccessibleAction,   getAccessibleChild,   getAccessibleChildrenCount,   getAccessibleComponent,   getAccessibleDescription,   getAccessibleEditableText,   getAccessibleIcon,   getAccessibleIndexInParent,   getAccessibleName,   getAccessibleParent,   getAccessibleRelationSet,   getAccessibleRole,   getAccessibleSelection,   getAccessibleStateSet,   getAccessibleTable,   getAccessibleText,   getAccessibleValue,   getLocale,   removePropertyChangeListener,   setAccessibleDescription,   setAccessibleName,   setAccessibleParent
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.Component$AccessibleAWTComponent Detail:
 public  void addFocusListener(FocusListener l) 
    Adds a focus listener.
 public  void addPropertyChangeListener(PropertyChangeListener l) 
    Adds a global property change listener to the accessible component.
 public boolean contains(Point p) 
    Tests if the point is contained in this component.
 public Accessible getAccessibleAt(Point p) 
    Returns the Accessible child at a point relative to the coordinate system of this component, if one exists, or null. Since components have no children, subclasses must override this to get anything besides null.
 public Accessible getAccessibleChild(int i) 
    Returns the ith accessible child. Subclasses must override this if they can have children.
 public int getAccessibleChildrenCount() 
    Returns the number of children of this component which implement Accessible. Subclasses must override this if they can have children.
 public AccessibleComponent getAccessibleComponent() 
    Returns this, since it is an accessible component.
 public String getAccessibleDescription() 
    Returns a brief description of this accessible context. This should be localized.
 public int getAccessibleIndexInParent() 
    Returns the index of this component in its accessible parent.
 public String getAccessibleName() 
    Returns the accessible name of this component. It is almost always wrong to return getName(), since it is not localized. In fact, for things like buttons, this should be the text of the button, not the name of the object. The tooltip text might also be appropriate.
 public Accessible getAccessibleParent() 
    Returns the parent of this component, if it is accessible.
 public AccessibleRole getAccessibleRole() 
    Returns the role of this component.
 public AccessibleStateSet getAccessibleStateSet() 
    Returns a state set describing this component's state.
 public Color getBackground() 
    Gets the background color.
 public Rectangle getBounds() 
    Gets the bounds of this component, or null if it is not on screen.
 public Cursor getCursor() 
    Gets the cursor.
 public Font getFont() 
    Gets the font.
 public FontMetrics getFontMetrics(Font f) 
    Gets the font metrics for a font.
 public Color getForeground() 
    Gets the foreground color.
 public Locale getLocale() 
    Returns the locale of this component.
 public Point getLocation() 
    Returns the location of this object relative to its parent's coordinate system, or null if it is not showing.
 public Point getLocationOnScreen() 
    Returns the location of this object on the screen, or null if it is not showing.
 public Dimension getSize() 
    Gets the size of this component, or null if it is not showing.
 public boolean isEnabled() 
    Tests if the component is enabled.
 public boolean isFocusTraversable() 
    Tests whether this component can accept focus.
 public boolean isShowing() 
    Tests if the component is showing.
 public boolean isVisible() 
    Test whether the component is visible (not necesarily showing).
 public  void removeFocusListener(FocusListener l) 
    Removes a focus listener.
 public  void removePropertyChangeListener(PropertyChangeListener l) 
    Removes a global property change listener from this accessible component.
 public  void requestFocus() 
    Requests focus for this component.
 public  void setBackground(Color c) 
    Sets the background color.
 public  void setBounds(Rectangle r) 
    Sets the bounds of this component.
 public  void setCursor(Cursor cursor) 
    Sets the cursor.
 public  void setEnabled(boolean b) 
    Set whether the component is enabled.
 public  void setFont(Font f) 
    Sets the font.
 public  void setForeground(Color c) 
    Sets the foreground color.
 public  void setLocation(Point p) 
    Sets the location of this relative to its parent's coordinate system.
 public  void setSize(Dimension d) 
    Sets the size of this component.
 public  void setVisible(boolean b) 
    Sets the visibility of this component.