All Packages Class Hierarchy This Package Previous Next Index
Interface java.awt.accessibility.Accessible
- public interface Accessible
Interface Accessible contains methods that can be implemented by
the user interface classes to make the classes more accessible. An
assistive technology can determine if an object implements the
Accessible interface by using the 'instanceof' operator.
addAccessibleSelection(int)
- Adds the specified selected item in the object to the object's
selection.
addFocusListener(FocusListener)
- Adds the specified focus listener to receive focus events from this
component.
clearAccessibleSelection()
- Clears the selection in the object, so that nothing in the
object is selected.
contains(Point)
- 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.
doAccessibleAction(int)
- Perform the specified Action on the object
getAccessibleActionCount()
- Returns the number of Actions available in this object
If there is more than one, the first one is the "default"
action.
getAccessibleActionDescription(int)
- Return a description of the specified action of the object.
getAccessibleAt(Point)
- Returns the Accessible child, if one exists, contained at the local coordinate
Point.
getAccessibleChild(int)
- Return the specified Accessible child of the object.
getAccessibleChildrenCount()
- Returns the number of accessible children in the object.
getAccessibleDescription()
- Get the accessible description of this object.
getAccessibleName()
- Get the accessible name of this object.
getAccessibleParent()
- Get the Accessible parent of this object.
getAccessibleRole()
- Get the role of this object.
getAccessibleSelection(int)
- Returns an Accessible representing the specified selected item
in the object.
getAccessibleSelectionCount()
- Returns the number of items currently selected.
getAccessibleStateSet()
- Get the state set of this object.
getAccessibleText()
- Gets the AccessibleText interface for the component.
getAccessibleValue()
- Get the value of this object as a Number.
getBackground()
- Get the background color of this object.
getBounds()
- Gets the bounds of this object in the form of a Rectangle object.
getCursor()
- Get the Cursor of this object.
getFont()
- Get the Font of this object.
getFontMetrics(Font)
- Get the FontMetrics of this object.
getForeground()
- Get the foreground color of this object.
getLocale()
- Gets the locale of the component.
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.
getLocationOnScreen()
- Returns the location of the object on the screen.
getMaximumAccessibleValue()
- Get the maximum value of this object as a Number.
getMinimumAccessibleValue()
- Get the minimum value of this object as a Number.
getNextAccessibleSibling()
- Get the next sibling of this Accessible, if a preferred one exists.
getPreviousAccessibleSibling()
- Get the previous sibling of this Accessible, if a preferred one exists.
getSize()
- Returns the size of this object in the form of a Dimension object.
isEnabled()
- Determine if the object is enabled.
isFocusTraversable()
- Returns whether this object can accept focus or not.
isShowing()
- Determine if the object is showing.
isVisible()
- Determine if the object is visible.
removeAccessibleSelection(int)
- Removes the specified selected item in the object from the object's
selection.
removeFocusListener(FocusListener)
- Removes the specified focus listener so it no longer receives focus
events from this component.
requestFocus()
- Requests focus for this object.
selectAllAccessibleSelection()
- Causes every selected item in the object to be selected,
if the object supports multiple selections (if getAccessibleStateSet
returns a state that is MULTISELECTABLE).
setAccessibleDescription(String)
- Set the accessible description of this object.
setAccessibleName(String)
- Set the localized accessible name of this object.
setAccessibleValue(Number)
- Set the value of this object as a Number.
setBackground(Color)
- Set the background color of this object.
setBounds(Rectangle)
- Sets the bounds of this object in the form of a Rectangle object.
setCursor(Cursor)
- Set the Cursor of this object.
setEnabled(boolean)
- Set the enabled state of the object.
setFont(Font)
- Set the Font of this object.
setForeground(Color)
- Set the foreground color of this object.
setLocale(Locale)
- Sets the locale of the component.
setLocation(Point)
- Sets the location of the object relative to the parent.
setSize(Dimension)
- Resizes this object so that it has width width and height.
setVisible(boolean)
- Set the visible state of the object.
getBackground
public abstract Color getBackground()
- Get the background color of this object.
- Returns:
- the background color, if supported, of the object; otherwise, null
setBackground
public abstract void setBackground(Color c)
- Set the background color of this object.
- Parameters:
- c - the new Color for the background
getForeground
public abstract Color getForeground()
- Get the foreground color of this object.
- Returns:
- the foreground color, if supported, of the object; otherwise, null
setForeground
public abstract void setForeground(Color c)
- Set the foreground color of this object.
- Parameters:
- c - the new Color for the foreground
getCursor
public abstract Cursor getCursor()
- Get the Cursor of this object.
- Returns:
- the Cursor, if supported, of the object; otherwise, null
setCursor
public abstract void setCursor(Cursor cursor)
- Set the Cursor of this object.
- Parameters:
- c - the new Cursor for the object
getFont
public abstract Font getFont()
- Get the Font of this object.
- Returns:
- the Font,if supported, for the object; otherwise, null
setFont
public abstract void setFont(Font f)
- Set the Font of this object.
- Parameters:
- f - the new Font for the object
getFontMetrics
public abstract FontMetrics getFontMetrics(Font f)
- Get the FontMetrics of this object.
- Parameters:
- f - the Font
- Returns:
- the FontMetrics, if supported, the object; otherwise, null
- See Also:
- getFont
isEnabled
public abstract boolean isEnabled()
- Determine if the object is enabled.
- Returns:
- true if object is enabled; otherwise, false
setEnabled
public abstract void setEnabled(boolean b)
- Set the enabled state of the object.
- Parameters:
- b - if true, enables this object; otherwise, disables it
isVisible
public abstract boolean isVisible()
- Determine 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().
- Returns:
- true if object is visible; otherwise, false
setVisible
public abstract void setVisible(boolean b)
- Set the visible state of the object.
- Parameters:
- b - if true, shows this object; otherwise, hides it
isShowing
public abstract boolean isShowing()
- Determine 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).
- Returns:
- true if object is showing; otherwise, false
contains
public abstract 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.
- Parameters:
- p - the Point relative to the coordinate system of the object
- Returns:
- true if object contains Point; otherwise false
getLocationOnScreen
public abstract Point getLocationOnScreen()
- Returns the location of the object on the screen.
- Returns:
- location of object on screen -- can be null if this object
is not on the screen
getLocation
public abstract 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.
- Returns:
- An instance of Point representing the top-left corner of the
objects's bounds in the coordinate space of the screen; null if
this object or its parent are not on the screen
setLocation
public abstract void setLocation(Point p)
- Sets the location of the object relative to the parent.
getBounds
public abstract 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.
- Returns:
- A rectangle indicating this component's bounds; null if this object
is not on the screen.
setBounds
public abstract 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.
- Parameters:
- A - rectangle indicating this component's bounds
getSize
public abstract 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.
- Returns:
- A Dimension object that indicates the size of this component; null if this object is
not on the screen
setSize
public abstract void setSize(Dimension d)
- Resizes this object so that it has width width and height.
- Parameters:
- d - - The dimension specifying the new size of the object.
getAccessibleAt
public abstract Accessible getAccessibleAt(Point p)
- Returns the Accessible child, if one exists, contained at the local coordinate
Point.
- 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
getAccessibleName
public abstract String getAccessibleName()
- Get the accessible name of this object.
- Returns:
- the localized name of the object; null if this
object does not have a name
setAccessibleName
public abstract void setAccessibleName(String s)
- Set the localized accessible name of this object.
- Parameters:
- s - the new localized name of the object.
getAccessibleDescription
public abstract String getAccessibleDescription()
- Get the accessible description of this object.
- Returns:
- the localized description of the object; null if
this object does not have a description
setAccessibleDescription
public abstract void setAccessibleDescription(String s)
- Set the accessible description of this object.
- Parameters:
- s - the new localized description of the object
getAccessibleStateSet
public abstract AccessibleStateSet getAccessibleStateSet()
- Get the state set of this object.
- Returns:
- an instance of AccessibleStateSet containing the
current state set of the object
- See Also:
- AccessibleState
getAccessibleRole
public abstract AccessibleRole getAccessibleRole()
- Get the role of this object.
- Returns:
- an instance of AccessibleRole describing the role of the object
- See Also:
- AccessibleRole
getAccessibleValue
public abstract Number getAccessibleValue()
- Get the value of this object as a Number.
- Returns:
- value of the object; null if this object does not have a value
getMinimumAccessibleValue
public abstract Number getMinimumAccessibleValue()
- Get the minimum value of this object as a Number.
- Returns:
- Minimum value of the object; null if this object does not
have a minimum value
getMaximumAccessibleValue
public abstract Number getMaximumAccessibleValue()
- Get the maximum value of this object as a Number.
- Returns:
- Maximum value of the object; null if this object does not
have a maximum value
setAccessibleValue
public abstract boolean setAccessibleValue(Number n)
- Set the value of this object as a Number.
- Returns:
- True if the value was set.
getAccessibleParent
public abstract Accessible getAccessibleParent()
- Get the Accessible parent of this object.
- Returns:
- the Accessible parent of this object; null if this
object does not have an Accessible parent
getAccessibleChildrenCount
public abstract int getAccessibleChildrenCount()
- Returns the number of accessible children in the object.
- Returns:
- the number of accessible children in the object.
getAccessibleChild
public abstract Accessible getAccessibleChild(int i)
- Return the specified Accessible child of the object.
- Parameters:
- i - zero-based index of child
- Returns:
- the Accessible child of the object
getNextAccessibleSibling
public abstract Accessible getNextAccessibleSibling()
- Get the next sibling of this Accessible, if a preferred one exists.
- Returns:
- the next Accessible, if there is one, else null.
getPreviousAccessibleSibling
public abstract Accessible getPreviousAccessibleSibling()
- Get the previous sibling of this Accessible, if a preferred one exists.
- Returns:
- the previous Accessible, if there is one, else null.
getAccessibleActionCount
public abstract int getAccessibleActionCount()
- Returns the number of Actions available in this object
If there is more than one, the first one is the "default"
action.
- Returns:
- the number of Actions in this object
getAccessibleActionDescription
public abstract String getAccessibleActionDescription(int i)
- Return a description of the specified action of the object.
- Parameters:
- i - zero-based index of the actions
- Returns:
- a description of the action
doAccessibleAction
public abstract boolean doAccessibleAction(int i)
- Perform the specified Action on the object
- Parameters:
- i - zero-based index of actions
- Returns:
- true if the the action was performed; else false.
getLocale
public abstract Locale getLocale() throws IllegalComponentStateException
- Gets the locale of the component. If the component does not have a
locale, then the locale of its parent is returned.
- Returns:
- This component's locale. If this component does not have a locale, the locale of its parent is returned.
- Throws:
IllegalComponentStateException
- If the Component does not have its own locale and has not yet been added to a containment hierarchy such that the locale can be
determined from the containing parent.
- See Also:
- setLocale
setLocale
public abstract void setLocale(Locale l)
- Sets the locale of the component.
- Parameters:
- l - The locale to become this component's locale.
- See Also:
- getLocale
getAccessibleText
public abstract AccessibleText getAccessibleText()
- Gets the AccessibleText interface for the component. If the component
does not speak AccessibleText, or have a proxy which does, this
method returns null.
- Returns:
- the AccessibleText of the object if the component can speak AccessibleText; else null
- See Also:
- AccessibleText
isFocusTraversable
public abstract boolean isFocusTraversable()
- Returns whether this object can accept focus or not.
- Returns:
- true if object can accept focus; otherwise false
requestFocus
public abstract void requestFocus()
- Requests focus for this object.
addFocusListener
public abstract void addFocusListener(FocusListener l)
- Adds the specified focus listener to receive focus events from this
component.
- Parameters:
- l - the focus listener
removeFocusListener
public abstract void removeFocusListener(FocusListener l)
- Removes the specified focus listener so it no longer receives focus
events from this component.
- Parameters:
- l - the focus listener
getAccessibleSelectionCount
public abstract int getAccessibleSelectionCount()
- Returns the number of items currently selected.
If no items are selected, the return value will be 0.
- Returns:
- the number of items currently selected.
getAccessibleSelection
public abstract Accessible getAccessibleSelection(int i)
- Returns an Accessible representing the specified selected item
in the object. If there isn't a selection, or there are
fewer items selcted than the integer passed in, the return
value will be null.
- Parameters:
- i - the zero-based index of selected items
- Returns:
- an Accessible containing the selected item
addAccessibleSelection
public abstract void addAccessibleSelection(int i)
- Adds the specified selected item in the object to the object's
selection. If the object supports multiple selections,
(the method getAccessibleStateSet returns a state that is MULTISELECTABLE)
the specified item is added to any existing selection, otherwise
it replaces any existing selection in the object. If the
specified item is already selected, this method has no effect.
- Parameters:
- i - the zero-based index of selectable items
- See Also:
- getAccessibleStateSet
removeAccessibleSelection
public abstract void removeAccessibleSelection(int i)
- Removes the specified selected item in the object from the object's
selection. If the specified item isn't currently selected, this
method has no effect.
- Parameters:
- i - the zero-based index of selectable items
clearAccessibleSelection
public abstract void clearAccessibleSelection()
- Clears the selection in the object, so that nothing in the
object is selected.
selectAllAccessibleSelection
public abstract void selectAllAccessibleSelection()
- Causes every selected item in the object to be selected,
if the object supports multiple selections (if getAccessibleStateSet
returns a state that is MULTISELECTABLE).
- See Also:
- getAccessibleStateSet
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature