Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Sample
Document
Class java.awt.Component.AccessibleAWTComponent
Inherited members: ShowHide
Deprecated: ShowHide
View: ClientSubclassPackageImplementation
java.awt

Class Component.AccessibleAWTComponent

  • java.lang.Object
    • javax.accessibility.AccessibleContext
      • java.awt.Component.AccessibleAWTComponent
  • All Implemented Interfaces:
    java.io.Serializable, javax.accessibility.AccessibleComponent
    Direct Known Subclasses:
    Button.AccessibleAWTButton, Canvas.AccessibleAWTCanvas, Checkbox.AccessibleAWTCheckbox, Choice.AccessibleAWTChoice, Container.AccessibleAWTContainer, Label.AccessibleAWTLabel, List.AccessibleAWTList, List.AccessibleAWTList.AccessibleAWTListChild, Scrollbar.AccessibleAWTScrollBar, TextComponent.AccessibleAWTTextComponent
    Enclosing class:
    Component
    protected abstract class Component.AccessibleAWTComponent extends javax.accessibility.AccessibleContext implements java.io.Serializable, javax.accessibility.AccessibleComponent
    Inner class of Component 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.

    The class used to obtain the accessible role for this object.

    Since:
    1.3
    See Also:
    Serialized Form
    • Nested Classes 
      Modifier and Type Class and Description
      Ordinary member indicator AccessibleAWTComponent.AccessibleAWTComponentHandler Reveal DetailHide Detail
      protected class AccessibleAWTComponent.AccessibleAWTComponentHandler
      Fire PropertyChange listener, if one is registered, when shown/hidden..
      protected class AccessibleAWTComponent.AccessibleAWTComponentHandler
      Fire PropertyChange listener, if one is registered, when shown/hidden..
      Since:
      1.3
      Ordinary member indicator AccessibleAWTComponent.AccessibleAWTFocusHandler Reveal DetailHide Detail
      protected class AccessibleAWTComponent.AccessibleAWTFocusHandler
      Fire PropertyChange listener, if one is registered, when focus events happen
      protected class AccessibleAWTComponent.AccessibleAWTFocusHandler
      Fire PropertyChange listener, if one is registered, when focus events happen
      Since:
      1.3
    • Fields 
      Modifier and Type Field and Description
      Inherited member indicator ACCESSIBLE_ACTION_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_ACTION_PROPERTY
      Constant used to indicate that the supported set of actions has changed.
      public static final java.lang.String ACCESSIBLE_ACTION_PROPERTY
      Constant used to indicate that the supported set of actions has changed. The old value in the PropertyChangeEvent will be an Integer representing the old number of actions supported and the new value will be an Integer representing the new number of actions supported.
      See Also:
      AccessibleAction, Constant Field Values
      Inherited member indicator ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY
      Constant used to determine when the active descendant of a component has changed.
      public static final java.lang.String ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY
      Constant used to determine when the active descendant of a component has changed. The active descendant is used for objects such as list, tree, and table, which may have transient children. When the active descendant has changed, the old value of the property change event will be the Accessible representing the previous active child, and the new value will be the Accessible representing the current active child.
      See Also:
      AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_CARET_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_CARET_PROPERTY
      Constant used to determine when the accessibleText caret has changed.
      public static final java.lang.String ACCESSIBLE_CARET_PROPERTY
      Constant used to determine when the accessibleText caret has changed. The old value in the PropertyChangeEvent will be an integer representing the old caret position, and the new value will be an integer representing the new/current caret position.
      See Also:
      AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_CHILD_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_CHILD_PROPERTY
      Constant used to determine when Accessible children are added/removed from the object.
      public static final java.lang.String ACCESSIBLE_CHILD_PROPERTY
      Constant used to determine when Accessible children are added/removed from the object. If an Accessible child is being added, the old value will be null and the new value will be the Accessible child. If an Accessible child is being removed, the old value will be the Accessible child, and the new value will be null.
      See Also:
      AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_COMPONENT_BOUNDS_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_COMPONENT_BOUNDS_CHANGED
      PropertyChangeEvent which indicates that a change has occurred in a component's bounds.
      public static final java.lang.String ACCESSIBLE_COMPONENT_BOUNDS_CHANGED
      PropertyChangeEvent which indicates that a change has occurred in a component's bounds. The oldValue is the old component bounds and the newValue is the new component bounds.
      Since:
      1.5
      See Also:
      AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_DESCRIPTION_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_DESCRIPTION_PROPERTY
      Constant used to determine when the accessibleDescription property has changed.
      public static final java.lang.String ACCESSIBLE_DESCRIPTION_PROPERTY
      Constant used to determine when the accessibleDescription property has changed. The old value in the PropertyChangeEvent will be the old accessibleDescription and the new value will be the new accessibleDescription.
      See Also:
      AccessibleContext.getAccessibleDescription(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_HYPERTEXT_OFFSET Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_HYPERTEXT_OFFSET
      Constant used to indicate that a hypertext element has received focus.
      public static final java.lang.String ACCESSIBLE_HYPERTEXT_OFFSET
      Constant used to indicate that a hypertext element has received focus. The old value in the PropertyChangeEvent will be an Integer representing the start index in the document of the previous element that had focus and the new value will be an Integer representing the start index in the document of the current element that has focus. A value of -1 indicates that an element does not or did not have focus.
      See Also:
      AccessibleHyperlink, Constant Field Values
      Inherited member indicator ACCESSIBLE_INVALIDATE_CHILDREN Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_INVALIDATE_CHILDREN
      PropertyChangeEvent which indicates that a significant change has occurred to the children of a component like a tree or text.
      public static final java.lang.String ACCESSIBLE_INVALIDATE_CHILDREN
      PropertyChangeEvent which indicates that a significant change has occurred to the children of a component like a tree or text. This change notifies the event listener that it needs to reacquire the state of the subcomponents. The oldValue is null and the newValue is the component whose children have become invalid.
      Since:
      1.5
      See Also:
      AccessibleContext.getAccessibleText(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), AccessibleTextSequence, Constant Field Values
      Inherited member indicator ACCESSIBLE_NAME_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_NAME_PROPERTY
      Constant used to determine when the accessibleName property has changed.
      public static final java.lang.String ACCESSIBLE_NAME_PROPERTY
      Constant used to determine when the accessibleName property has changed. The old value in the PropertyChangeEvent will be the old accessibleName and the new value will be the new accessibleName.
      See Also:
      AccessibleContext.getAccessibleName(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_SELECTION_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_SELECTION_PROPERTY
      Constant used to determine when the accessibleSelection has changed.
      public static final java.lang.String ACCESSIBLE_SELECTION_PROPERTY
      Constant used to determine when the accessibleSelection has changed. The old and new values in the PropertyChangeEvent are currently reserved for future use.
      See Also:
      AccessibleContext.getAccessibleSelection(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_STATE_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_STATE_PROPERTY
      Constant used to determine when the accessibleStateSet property has changed.
      public static final java.lang.String ACCESSIBLE_STATE_PROPERTY
      Constant used to determine when the accessibleStateSet property has changed. The old value will be the old AccessibleState and the new value will be the new AccessibleState in the accessibleStateSet. For example, if a component that supports the vertical and horizontal states changes its orientation from vertical to horizontal, the old value will be AccessibleState.VERTICAL and the new value will be AccessibleState.HORIZONTAL. Please note that either value can also be null. For example, when a component changes from being enabled to disabled, the old value will be AccessibleState.ENABLED and the new value will be null.
      See Also:
      AccessibleContext.getAccessibleStateSet(), AccessibleState, AccessibleStateSet, AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_TABLE_CAPTION_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TABLE_CAPTION_CHANGED
      Constant used to indicate that the table caption has changed The old value in the PropertyChangeEvent will be an Accessible representing the previous table caption and the new value will be an Accessible representing the new table caption.
      public static final java.lang.String ACCESSIBLE_TABLE_CAPTION_CHANGED
      Constant used to indicate that the table caption has changed The old value in the PropertyChangeEvent will be an Accessible representing the previous table caption and the new value will be an Accessible representing the new table caption.
      See Also:
      Accessible, AccessibleTable, Constant Field Values
      Inherited member indicator ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED
      Constant used to indicate that the column description has changed The old value in the PropertyChangeEvent will be null and the new value will be an Integer representing the column index.
      public static final java.lang.String ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED
      Constant used to indicate that the column description has changed The old value in the PropertyChangeEvent will be null and the new value will be an Integer representing the column index.
      See Also:
      AccessibleTable, Constant Field Values
      Inherited member indicator ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED
      Constant used to indicate that the column header has changed The old value in the PropertyChangeEvent will be null and the new value will be an AccessibleTableModelChange representing the header change.
      public static final java.lang.String ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED
      Constant used to indicate that the column header has changed The old value in the PropertyChangeEvent will be null and the new value will be an AccessibleTableModelChange representing the header change.
      See Also:
      AccessibleTable, AccessibleTableModelChange, Constant Field Values
      Inherited member indicator ACCESSIBLE_TABLE_MODEL_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TABLE_MODEL_CHANGED
      Constant used to indicate that table data has changed.
      public static final java.lang.String ACCESSIBLE_TABLE_MODEL_CHANGED
      Constant used to indicate that table data has changed. The old value in the PropertyChangeEvent will be null and the new value will be an AccessibleTableModelChange representing the table change.
      See Also:
      AccessibleTable, AccessibleTableModelChange, Constant Field Values
      Inherited member indicator ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED
      Constant used to indicate that the row description has changed The old value in the PropertyChangeEvent will be null and the new value will be an Integer representing the row index.
      public static final java.lang.String ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED
      Constant used to indicate that the row description has changed The old value in the PropertyChangeEvent will be null and the new value will be an Integer representing the row index.
      See Also:
      AccessibleTable, Constant Field Values
      Inherited member indicator ACCESSIBLE_TABLE_ROW_HEADER_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TABLE_ROW_HEADER_CHANGED
      Constant used to indicate that the row header has changed The old value in the PropertyChangeEvent will be null and the new value will be an AccessibleTableModelChange representing the header change.
      public static final java.lang.String ACCESSIBLE_TABLE_ROW_HEADER_CHANGED
      Constant used to indicate that the row header has changed The old value in the PropertyChangeEvent will be null and the new value will be an AccessibleTableModelChange representing the header change.
      See Also:
      AccessibleTable, AccessibleTableModelChange, Constant Field Values
      Inherited member indicator ACCESSIBLE_TABLE_SUMMARY_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TABLE_SUMMARY_CHANGED
      Constant used to indicate that the table summary has changed The old value in the PropertyChangeEvent will be an Accessible representing the previous table summary and the new value will be an Accessible representing the new table summary.
      public static final java.lang.String ACCESSIBLE_TABLE_SUMMARY_CHANGED
      Constant used to indicate that the table summary has changed The old value in the PropertyChangeEvent will be an Accessible representing the previous table summary and the new value will be an Accessible representing the new table summary.
      See Also:
      Accessible, AccessibleTable, Constant Field Values
      Inherited member indicator ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED
      PropertyChangeEvent which indicates that text attributes have changed.
      public static final java.lang.String ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED
      PropertyChangeEvent which indicates that text attributes have changed.
      For attribute insertion, the oldValue is null and the newValue is an AccessibleAttributeSequence specifying the attributes that were inserted.
      For attribute deletion, the oldValue is an AccessibleAttributeSequence specifying the attributes that were deleted and the newValue is null.
      For attribute replacement, the oldValue is an AccessibleAttributeSequence specifying the old attributes and the newValue is an AccessibleAttributeSequence specifying the new attributes.
      Since:
      1.5
      See Also:
      AccessibleContext.getAccessibleText(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), AccessibleAttributeSequence, Constant Field Values
      Inherited member indicator ACCESSIBLE_TEXT_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_TEXT_PROPERTY
      PropertyChangeEvent which indicates that text has changed.
      public static final java.lang.String ACCESSIBLE_TEXT_PROPERTY
      PropertyChangeEvent which indicates that text has changed.
      For text insertion, the oldValue is null and the newValue is an AccessibleTextSequence specifying the text that was inserted.
      For text deletion, the oldValue is an AccessibleTextSequence specifying the text that was deleted and the newValue is null.
      For text replacement, the oldValue is an AccessibleTextSequence specifying the old text and the newValue is an AccessibleTextSequence specifying the new text.
      See Also:
      AccessibleContext.getAccessibleText(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), AccessibleTextSequence, Constant Field Values
      Inherited member indicator ACCESSIBLE_VALUE_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_VALUE_PROPERTY
      Constant used to determine when the accessibleValue property has changed.
      public static final java.lang.String ACCESSIBLE_VALUE_PROPERTY
      Constant used to determine when the accessibleValue property has changed. The old value in the PropertyChangeEvent will be a Number representing the old value and the new value will be a Number representing the new value
      See Also:
      AccessibleContext.getAccessibleValue(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Inherited member indicator ACCESSIBLE_VISIBLE_DATA_PROPERTY Reveal DetailHide Detail
      static java.lang.String ACCESSIBLE_VISIBLE_DATA_PROPERTY
      Constant used to determine when the visual appearance of the object has changed.
      public static final java.lang.String ACCESSIBLE_VISIBLE_DATA_PROPERTY
      Constant used to determine when the visual appearance of the object has changed. The old and new values in the PropertyChangeEvent are currently reserved for future use.
      See Also:
      AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), Constant Field Values
      Ordinary member indicator accessibleAWTComponentHandler Reveal DetailHide Detail
      protected ComponentListener accessibleAWTComponentHandler
       
      protected ComponentListener accessibleAWTComponentHandler
      Ordinary member indicator accessibleAWTFocusHandler Reveal DetailHide Detail
      protected FocusListener accessibleAWTFocusHandler
       
      protected FocusListener accessibleAWTFocusHandler
      Inherited member indicator accessibleDescription Reveal DetailHide Detail
      protected java.lang.String accessibleDescription
      A localized String containing the description of the object.
      protected java.lang.String accessibleDescription
      A localized String containing the description of the object.
      See Also:
      AccessibleContext.getAccessibleDescription(), AccessibleContext.setAccessibleDescription(java.lang.String)
      Inherited member indicator accessibleName Reveal DetailHide Detail
      protected java.lang.String accessibleName
      A localized String containing the name of the object.
      protected java.lang.String accessibleName
      A localized String containing the name of the object.
      See Also:
      AccessibleContext.getAccessibleName(), AccessibleContext.setAccessibleName(java.lang.String)
      Inherited member indicator accessibleParent Reveal DetailHide Detail
      protected javax.accessibility.Accessible accessibleParent
      The accessible parent of this object.
      protected javax.accessibility.Accessible accessibleParent
      The accessible parent of this object.
      See Also:
      AccessibleContext.getAccessibleParent(), AccessibleContext.setAccessibleParent(javax.accessibility.Accessible)
    • Constructors 
      Modifier Constructor and Description
      Ordinary member indicator Component.AccessibleAWTComponent Reveal DetailHide Detail
      protected Component.AccessibleAWTComponent()
      Though the class is abstract, this should be called by all sub-classes.
      protected Component.AccessibleAWTComponent()
      Though the class is abstract, this should be called by all sub-classes.
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator addFocusListener Reveal DetailHide Detail
      void addFocusListener(FocusListener l)
      Adds the specified focus listener to receive focus events from this component.
      public void addFocusListener(FocusListener l)
      Adds the specified focus listener to receive focus events from this component.
      Specified by:
      addFocusListener in interface javax.accessibility.AccessibleComponent
      Parameters:
      l - the focus listener
      See Also:
      AccessibleComponent.removeFocusListener(java.awt.event.FocusListener)
      Overridden member indicator addPropertyChangeListener Reveal DetailHide Detail
      void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
      Adds a PropertyChangeListener to the listener list.
      public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
      Adds a PropertyChangeListener to the listener list.
      Overrides:
      addPropertyChangeListener in class javax.accessibility.AccessibleContext
      Parameters:
      listener - the property change listener to be added
      See Also:
      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
      Ordinary member indicator contains Reveal DetailHide Detail
      boolean contains(Point p)
      Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.
      public boolean contains(Point p)
      Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.
      Specified by:
      contains in interface javax.accessibility.AccessibleComponent
      Parameters:
      p - the Point relative to the coordinate system of the object
      Returns:
      true if object contains Point; otherwise false
      See Also:
      AccessibleComponent.getBounds()
      Inherited member indicator firePropertyChange Reveal DetailHide Detail
      void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
      Support for reporting bound property changes.
      public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
      Description copied from class: javax.accessibility.AccessibleContext
      Support for reporting bound property changes. If oldValue and newValue are not equal and the PropertyChangeEvent listener list is not empty, then fire a PropertyChange event to each listener. In general, this is for use by the Accessible objects themselves and should not be called by an application program.
      Parameters:
      propertyName - The programmatic name of the property that was changed.
      oldValue - The old value of the property.
      newValue - The new value of the property.
      See Also:
      PropertyChangeSupport, AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener), AccessibleContext.removePropertyChangeListener(java.beans.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
      Inherited member indicator getAccessibleAction Reveal DetailHide Detail
      javax.accessibility.AccessibleAction getAccessibleAction()
      Gets the AccessibleAction associated with this object that supports one or more actions.
      public javax.accessibility.AccessibleAction getAccessibleAction()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleAction associated with this object that supports one or more actions.
      Returns:
      AccessibleAction if supported by object; else return null
      See Also:
      AccessibleAction
      Ordinary member indicator getAccessibleAt Reveal DetailHide Detail
      javax.accessibility.Accessible getAccessibleAt(Point p)
      Returns the Accessible child, if one exists, contained at the local coordinate Point.
      public javax.accessibility.Accessible getAccessibleAt(Point p)
      Returns the Accessible child, if one exists, contained at the local coordinate Point. Otherwise returns null.
      Specified by:
      getAccessibleAt in interface javax.accessibility.AccessibleComponent
      Parameters:
      p - the point defining the top-left corner of the Accessible, given in the coordinate space of the object's parent
      Returns:
      the Accessible, if it exists, at the specified location; else null
      Overridden member indicator getAccessibleChild Reveal DetailHide Detail
      javax.accessibility.Accessible getAccessibleChild(int i)
      Returns the nth Accessible child of the object.
      public javax.accessibility.Accessible getAccessibleChild(int i)
      Returns the nth Accessible child of the object.
      Specified by:
      getAccessibleChild in class javax.accessibility.AccessibleContext
      Parameters:
      i - zero-based index of child
      Returns:
      the nth Accessible child of the object
      See Also:
      AccessibleContext.getAccessibleChildrenCount()
      Overridden member indicator getAccessibleChildrenCount Reveal DetailHide Detail
      int getAccessibleChildrenCount()
      Returns the number of accessible children in the object.
      public int getAccessibleChildrenCount()
      Returns the number of accessible children in the object. If all of the children of this object implement Accessible, then this method should return the number of children of this object.
      Specified by:
      getAccessibleChildrenCount in class javax.accessibility.AccessibleContext
      Returns:
      the number of accessible children in the object
      Overridden member indicator getAccessibleComponent Reveal DetailHide Detail
      javax.accessibility.AccessibleComponent getAccessibleComponent()
      Gets the AccessibleComponent associated with this object if one exists.
      public javax.accessibility.AccessibleComponent getAccessibleComponent()
      Gets the AccessibleComponent associated with this object if one exists. Otherwise return null.
      Overrides:
      getAccessibleComponent in class javax.accessibility.AccessibleContext
      Returns:
      the component
      See Also:
      AccessibleComponent
      Overridden member indicator getAccessibleDescription Reveal DetailHide Detail
      java.lang.String getAccessibleDescription()
      Gets the accessible description of this object.
      public java.lang.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 - e.g. 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).
      Overrides:
      getAccessibleDescription in class javax.accessibility.AccessibleContext
      Returns:
      the localized description of the object -- can be null if this object does not have a description
      See Also:
      AccessibleContext.setAccessibleDescription(java.lang.String)
      Inherited member indicator getAccessibleEditableText Reveal DetailHide Detail
      javax.accessibility.AccessibleEditableText getAccessibleEditableText()
      Gets the AccessibleEditableText associated with this object presenting editable text on the display.
      public javax.accessibility.AccessibleEditableText getAccessibleEditableText()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleEditableText associated with this object presenting editable text on the display.
      Returns:
      AccessibleEditableText if supported by object; else return null
      Since:
      1.4
      See Also:
      AccessibleEditableText
      Inherited member indicator getAccessibleIcon Reveal DetailHide Detail
      javax.accessibility.AccessibleIcon[] getAccessibleIcon()
      Gets the AccessibleIcons associated with an object that has one or more associated icons
      public javax.accessibility.AccessibleIcon[] getAccessibleIcon()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleIcons associated with an object that has one or more associated icons
      Returns:
      an array of AccessibleIcon if supported by object; otherwise return null
      Since:
      1.3
      See Also:
      AccessibleIcon
      Overridden member indicator getAccessibleIndexInParent Reveal DetailHide Detail
      int getAccessibleIndexInParent()
      Gets the index of this object in its accessible parent.
      public int getAccessibleIndexInParent()
      Gets the index of this object in its accessible parent.
      Specified by:
      getAccessibleIndexInParent in class javax.accessibility.AccessibleContext
      Returns:
      the index of this object in its parent; or -1 if this object does not have an accessible parent
      See Also:
      getAccessibleParent()
      Overridden member indicator getAccessibleName Reveal DetailHide Detail
      java.lang.String getAccessibleName()
      Gets the accessible name of this object.
      public java.lang.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 (e.g. a menu item), the accessible name should be the text of the object (e.g. "save"). If the object has a tooltip, the tooltip text may also be an appropriate String to return.
      Overrides:
      getAccessibleName in class javax.accessibility.AccessibleContext
      Returns:
      the localized name of the object -- can be null if this object does not have a name
      See Also:
      AccessibleContext.setAccessibleName(java.lang.String)
      Overridden member indicator getAccessibleParent Reveal DetailHide Detail
      javax.accessibility.Accessible getAccessibleParent()
      Gets the Accessible parent of this object.
      public javax.accessibility.Accessible getAccessibleParent()
      Gets the Accessible parent of this object. If the parent of this object implements Accessible, this method should simply return getParent.
      Overrides:
      getAccessibleParent in class javax.accessibility.AccessibleContext
      Returns:
      the Accessible parent of this object -- can be null if this object does not have an Accessible parent
      Inherited member indicator getAccessibleRelationSet Reveal DetailHide Detail
      javax.accessibility.AccessibleRelationSet getAccessibleRelationSet()
      Gets the AccessibleRelationSet associated with an object
      public javax.accessibility.AccessibleRelationSet getAccessibleRelationSet()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleRelationSet associated with an object
      Returns:
      an AccessibleRelationSet if supported by object; otherwise return null
      Since:
      1.3
      See Also:
      AccessibleRelationSet
      Overridden member indicator getAccessibleRole Reveal DetailHide Detail
      javax.accessibility.AccessibleRole getAccessibleRole()
      Gets the role of this object.
      public javax.accessibility.AccessibleRole getAccessibleRole()
      Gets the role of this object.
      Specified by:
      getAccessibleRole in class javax.accessibility.AccessibleContext
      Returns:
      an instance of AccessibleRole describing the role of the object
      See Also:
      AccessibleRole
      Inherited member indicator getAccessibleSelection Reveal DetailHide Detail
      javax.accessibility.AccessibleSelection getAccessibleSelection()
      Gets the AccessibleSelection associated with this object which allows its Accessible children to be selected.
      public javax.accessibility.AccessibleSelection getAccessibleSelection()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleSelection associated with this object which allows its Accessible children to be selected.
      Returns:
      AccessibleSelection if supported by object; else return null
      See Also:
      AccessibleSelection
      Overridden member indicator getAccessibleStateSet Reveal DetailHide Detail
      javax.accessibility.AccessibleStateSet getAccessibleStateSet()
      Gets the state of this object.
      public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
      Gets the state of this object.
      Specified by:
      getAccessibleStateSet in class javax.accessibility.AccessibleContext
      Returns:
      an instance of AccessibleStateSet containing the current state set of the object
      See Also:
      AccessibleState
      Inherited member indicator getAccessibleTable Reveal DetailHide Detail
      javax.accessibility.AccessibleTable getAccessibleTable()
      Gets the AccessibleTable associated with an object
      public javax.accessibility.AccessibleTable getAccessibleTable()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleTable associated with an object
      Returns:
      an AccessibleTable if supported by object; otherwise return null
      Since:
      1.3
      See Also:
      AccessibleTable
      Inherited member indicator getAccessibleText Reveal DetailHide Detail
      javax.accessibility.AccessibleText getAccessibleText()
      Gets the AccessibleText associated with this object presenting text on the display.
      public javax.accessibility.AccessibleText getAccessibleText()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleText associated with this object presenting text on the display.
      Returns:
      AccessibleText if supported by object; else return null
      See Also:
      AccessibleText
      Inherited member indicator getAccessibleValue Reveal DetailHide Detail
      javax.accessibility.AccessibleValue getAccessibleValue()
      Gets the AccessibleValue associated with this object that supports a Numerical value.
      public javax.accessibility.AccessibleValue getAccessibleValue()
      Description copied from class: javax.accessibility.AccessibleContext
      Gets the AccessibleValue associated with this object that supports a Numerical value.
      Returns:
      AccessibleValue if supported by object; else return null
      See Also:
      AccessibleValue
      Ordinary member indicator getBackground Reveal DetailHide Detail
      Color getBackground()
      Gets the background color of this object.
      public Color getBackground()
      Gets the background color of this object.
      Specified by:
      getBackground in interface javax.accessibility.AccessibleComponent
      Returns:
      the background color, if supported, of the object; otherwise, null
      See Also:
      AccessibleComponent.setBackground(java.awt.Color)
      Ordinary member indicator getBounds Reveal DetailHide Detail
      Rectangle getBounds()
      Gets the bounds of this object in the form of a Rectangle object.
      public Rectangle getBounds()
      Gets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.
      Specified by:
      getBounds in interface javax.accessibility.AccessibleComponent
      Returns:
      a rectangle indicating this component's bounds; null if this object is not on the screen
      See Also:
      AccessibleComponent.contains(java.awt.Point)
      Ordinary member indicator getCursor Reveal DetailHide Detail
      Cursor getCursor()
      Gets the Cursor of this object.
      public Cursor getCursor()
      Gets the Cursor of this object.
      Specified by:
      getCursor in interface javax.accessibility.AccessibleComponent
      Returns:
      the Cursor, if supported, of the object; otherwise, null
      See Also:
      AccessibleComponent.setCursor(java.awt.Cursor)
      Ordinary member indicator getFont Reveal DetailHide Detail
      Font getFont()
      Gets the Font of this object.
      public Font getFont()
      Gets the Font of this object.
      Specified by:
      getFont in interface javax.accessibility.AccessibleComponent
      Returns:
      the Font, if supported, for the object; otherwise, null
      See Also:
      AccessibleComponent.setFont(java.awt.Font)
      Ordinary member indicator getFontMetrics Reveal DetailHide Detail
      FontMetrics getFontMetrics(Font f)
      Gets the FontMetrics of this object.
      public FontMetrics getFontMetrics(Font f)
      Gets the FontMetrics of this object.
      Specified by:
      getFontMetrics in interface javax.accessibility.AccessibleComponent
      Parameters:
      f - the Font
      Returns:
      the FontMetrics, if supported, the object; otherwise, null
      See Also:
      getFont()
      Ordinary member indicator getForeground Reveal DetailHide Detail
      Color getForeground()
      Gets the foreground color of this object.
      public Color getForeground()
      Gets the foreground color of this object.
      Specified by:
      getForeground in interface javax.accessibility.AccessibleComponent
      Returns:
      the foreground color, if supported, of the object; otherwise, null
      See Also:
      AccessibleComponent.setForeground(java.awt.Color)
      Overridden member indicator getLocale Reveal DetailHide Detail
      java.util.Locale getLocale()
      Returns the locale of this object.
      public java.util.Locale getLocale()
      Returns the locale of this object.
      Specified by:
      getLocale in class javax.accessibility.AccessibleContext
      Returns:
      the locale of this object
      Ordinary member indicator getLocation Reveal DetailHide Detail
      Point getLocation()
      Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.
      public Point getLocation()
      Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.
      Specified by:
      getLocation in interface javax.accessibility.AccessibleComponent
      Returns:
      an instance of Point representing the top-left corner of the object's bounds in the coordinate space of the screen; null if this object or its parent are not on the screen
      See Also:
      AccessibleComponent.getBounds(), AccessibleComponent.getLocationOnScreen()
      Ordinary member indicator getLocationOnScreen Reveal DetailHide Detail
      Point getLocationOnScreen()
      Returns the location of the object on the screen.
      public Point getLocationOnScreen()
      Returns the location of the object on the screen.
      Specified by:
      getLocationOnScreen in interface javax.accessibility.AccessibleComponent
      Returns:
      location of object on screen -- can be null if this object is not on the screen
      See Also:
      AccessibleComponent.getBounds(), AccessibleComponent.getLocation()
      Ordinary member indicator getSize Reveal DetailHide Detail
      Dimension getSize()
      Returns the size of this object in the form of a Dimension object.
      public Dimension getSize()
      Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains this objects's height, and the width field of the Dimension object contains this object's width.
      Specified by:
      getSize in interface javax.accessibility.AccessibleComponent
      Returns:
      a Dimension object that indicates the size of this component; null if this object is not on the screen
      See Also:
      AccessibleComponent.setSize(java.awt.Dimension)
      Ordinary member indicator isEnabled Reveal DetailHide Detail
      boolean isEnabled()
      Determines if the object is enabled.
      public boolean isEnabled()
      Determines if the object is enabled.
      Specified by:
      isEnabled in interface javax.accessibility.AccessibleComponent
      Returns:
      true if object is enabled; otherwise, false
      See Also:
      AccessibleComponent.setEnabled(boolean), AccessibleContext.getAccessibleStateSet(), AccessibleState.ENABLED, AccessibleStateSet
      Ordinary member indicator isFocusTraversable Reveal DetailHide Detail
      boolean isFocusTraversable()
      Returns whether this object can accept focus or not.
      public boolean isFocusTraversable()
      Returns whether this object can accept focus or not.
      Specified by:
      isFocusTraversable in interface javax.accessibility.AccessibleComponent
      Returns:
      true if object can accept focus; otherwise false
      See Also:
      AccessibleContext.getAccessibleStateSet(), AccessibleState.FOCUSABLE, AccessibleState.FOCUSED, AccessibleStateSet
      Ordinary member indicator isShowing Reveal DetailHide Detail
      boolean isShowing()
      Determines if the object is showing.
      public boolean isShowing()
      Determines if the object is showing. This is determined by checking the visibility of the object and ancestors of the object. Note: this will return true even if the object is obscured by another (for example, it happens to be underneath a menu that was pulled down).
      Specified by:
      isShowing in interface javax.accessibility.AccessibleComponent
      Returns:
      true if object is showing; otherwise, false
      Ordinary member indicator isVisible Reveal DetailHide Detail
      boolean isVisible()
      Determines if the object is visible.
      public boolean isVisible()
      Determines if the object is visible. Note: this means that the object intends to be visible; however, it may not in fact be showing on the screen because one of the objects that this object is contained by is not visible. To determine if an object is showing on the screen, use isShowing.
      Specified by:
      isVisible in interface javax.accessibility.AccessibleComponent
      Returns:
      true if object is visible; otherwise, false
      See Also:
      AccessibleComponent.setVisible(boolean), AccessibleContext.getAccessibleStateSet(), AccessibleState.VISIBLE, AccessibleStateSet
      Ordinary member indicator removeFocusListener Reveal DetailHide Detail
      void removeFocusListener(FocusListener l)
      Removes the specified focus listener so it no longer receives focus events from this component.
      public void removeFocusListener(FocusListener l)
      Removes the specified focus listener so it no longer receives focus events from this component.
      Specified by:
      removeFocusListener in interface javax.accessibility.AccessibleComponent
      Parameters:
      l - the focus listener
      See Also:
      AccessibleComponent.addFocusListener(java.awt.event.FocusListener)
      Overridden member indicator removePropertyChangeListener Reveal DetailHide Detail
      void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
      Remove a PropertyChangeListener from the listener list.
      public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
      Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
      Overrides:
      removePropertyChangeListener in class javax.accessibility.AccessibleContext
      Parameters:
      listener - The PropertyChangeListener to be removed
      Ordinary member indicator requestFocus Reveal DetailHide Detail
      void requestFocus()
      Requests focus for this object.
      public void requestFocus()
      Requests focus for this object.
      Specified by:
      requestFocus in interface javax.accessibility.AccessibleComponent
      See Also:
      AccessibleComponent.isFocusTraversable()
      Inherited member indicator setAccessibleDescription Reveal DetailHide Detail
      void setAccessibleDescription(java.lang.String s)
      Sets the accessible description of this object.
      public void setAccessibleDescription(java.lang.String s)
      Description copied from class: javax.accessibility.AccessibleContext
      Sets the accessible description of this object. Changing the name will cause a PropertyChangeEvent to be fired for the ACCESSIBLE_DESCRIPTION_PROPERTY property.
      Parameters:
      s - the new localized description of the object
      See Also:
      AccessibleContext.setAccessibleName(java.lang.String), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener)
      Inherited member indicator setAccessibleName Reveal DetailHide Detail
      void setAccessibleName(java.lang.String s)
      Sets the localized accessible name of this object.
      public void setAccessibleName(java.lang.String s)
      Description copied from class: javax.accessibility.AccessibleContext
      Sets the localized accessible name of this object. Changing the name will cause a PropertyChangeEvent to be fired for the ACCESSIBLE_NAME_PROPERTY property.
      Parameters:
      s - the new localized name of the object.
      See Also:
      AccessibleContext.getAccessibleName(), AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener)
      Inherited member indicator setAccessibleParent Reveal DetailHide Detail
      void setAccessibleParent(javax.accessibility.Accessible a)
      Sets the Accessible parent of this object.
      public void setAccessibleParent(javax.accessibility.Accessible a)
      Description copied from class: javax.accessibility.AccessibleContext
      Sets the Accessible parent of this object. This is meant to be used only in the situations where the actual component's parent should not be treated as the component's accessible parent and is a method that should only be called by the parent of the accessible child.
      Parameters:
      a - - Accessible to be set as the parent
      Ordinary member indicator setBackground Reveal DetailHide Detail
      void setBackground(Color c)
      Sets the background color of this object.
      public void setBackground(Color c)
      Sets the background color of this object. (For transparency, see isOpaque.)
      Specified by:
      setBackground in interface javax.accessibility.AccessibleComponent
      Parameters:
      c - the new Color for the background
      See Also:
      Component.isOpaque()
      Ordinary member indicator setBounds Reveal DetailHide Detail
      void setBounds(Rectangle r)
      Sets the bounds of this object in the form of a Rectangle object.
      public void setBounds(Rectangle r)
      Sets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.
      Specified by:
      setBounds in interface javax.accessibility.AccessibleComponent
      Parameters:
      r - a rectangle indicating this component's bounds
      See Also:
      AccessibleComponent.getBounds()
      Ordinary member indicator setCursor Reveal DetailHide Detail
      void setCursor(Cursor cursor)
      Sets the Cursor of this object.
      public void setCursor(Cursor cursor)
      Sets the Cursor of this object.

      The method may have no visual effect if the Java platform implementation and/or the native system do not support changing the mouse cursor shape.

      Specified by:
      setCursor in interface javax.accessibility.AccessibleComponent
      Parameters:
      cursor - the new Cursor for the object
      See Also:
      AccessibleComponent.getCursor()
      Ordinary member indicator setEnabled Reveal DetailHide Detail
      void setEnabled(boolean b)
      Sets the enabled state of the object.
      public void setEnabled(boolean b)
      Sets the enabled state of the object.
      Specified by:
      setEnabled in interface javax.accessibility.AccessibleComponent
      Parameters:
      b - if true, enables this object; otherwise, disables it
      See Also:
      AccessibleComponent.isEnabled()
      Ordinary member indicator setFont Reveal DetailHide Detail
      void setFont(Font f)
      Sets the Font of this object.
      public void setFont(Font f)
      Sets the Font of this object.
      Specified by:
      setFont in interface javax.accessibility.AccessibleComponent
      Parameters:
      f - the new Font for the object
      See Also:
      AccessibleComponent.getFont()
      Ordinary member indicator setForeground Reveal DetailHide Detail
      void setForeground(Color c)
      Sets the foreground color of this object.
      public void setForeground(Color c)
      Sets the foreground color of this object.
      Specified by:
      setForeground in interface javax.accessibility.AccessibleComponent
      Parameters:
      c - the new Color for the foreground
      See Also:
      AccessibleComponent.getForeground()
      Ordinary member indicator setLocation Reveal DetailHide Detail
      void setLocation(Point p)
      Sets the location of the object relative to the parent.
      public void setLocation(Point p)
      Sets the location of the object relative to the parent.
      Specified by:
      setLocation in interface javax.accessibility.AccessibleComponent
      Parameters:
      p - the coordinates of the object
      See Also:
      AccessibleComponent.getLocation()
      Ordinary member indicator setSize Reveal DetailHide Detail
      void setSize(Dimension d)
      Resizes this object so that it has width and height.
      public void setSize(Dimension d)
      Resizes this object so that it has width and height.
      Specified by:
      setSize in interface javax.accessibility.AccessibleComponent
      Parameters:
      d - - the dimension specifying the new size of the object
      See Also:
      AccessibleComponent.getSize()
      Ordinary member indicator setVisible Reveal DetailHide Detail
      void setVisible(boolean b)
      Sets the visible state of the object.
      public void setVisible(boolean b)
      Sets the visible state of the object.
      Specified by:
      setVisible in interface javax.accessibility.AccessibleComponent
      Parameters:
      b - if true, shows this object; otherwise, hides it
      See Also:
      AccessibleComponent.isVisible()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge