javax.accessibility.AccessibleComponent |
The AccessibleComponent interface should be supported by any object
that is rendered on the screen. This interface provides the standard
mechanism for an assistive technology to determine and set the
graphical representation of an object. Applications can determine
if an object supports the AccessibleComponent interface by first
obtaining its AccessibleContext
and then calling the
getAccessibleComponent()
method.
If the return value is not null, the object supports this interface.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified focus listener to receive focus events from this
component.
| |||||||||||
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.
| |||||||||||
Returns the Accessible child, if one exists, contained at the local
coordinate Point.
| |||||||||||
Gets the background color of this object.
| |||||||||||
Gets the bounds of this object in the form of a Rectangle object.
| |||||||||||
Gets the Cursor of this object.
| |||||||||||
Gets the Font of this object.
| |||||||||||
Gets the FontMetrics of this object.
| |||||||||||
Gets the foreground color of this object.
| |||||||||||
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 the location of the object on the screen.
| |||||||||||
Returns the size of this object in the form of a Dimension object.
| |||||||||||
Determines if the object is enabled.
| |||||||||||
Returns whether this object can accept focus or not.
| |||||||||||
Determines if the object is showing.
| |||||||||||
Determines if the object is visible.
| |||||||||||
Removes the specified focus listener so it no longer receives focus
events from this component.
| |||||||||||
Requests focus for this object.
| |||||||||||
Sets the background color of this object.
| |||||||||||
Sets the bounds of this object in the form of a Rectangle object.
| |||||||||||
Sets the Cursor of this object.
| |||||||||||
Sets the enabled state of the object.
| |||||||||||
Sets the Font of this object.
| |||||||||||
Sets the foreground color of this object.
| |||||||||||
Sets the location of the object relative to the parent.
| |||||||||||
Resizes this object so that it has width and height.
| |||||||||||
Sets the visible state of the object.
|
Adds the specified focus listener to receive focus events from this component.
l | the focus listener |
---|
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.
p | the Point relative to the coordinate system of the object |
---|
Returns the Accessible child, if one exists, contained at the local coordinate Point.
p | The point relative to the coordinate system of this object. |
---|
Gets the background color of this object.
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.
Gets the Cursor of this object.
Gets the Font of this object.
Gets the FontMetrics of this object.
f | the Font |
---|
Gets the foreground color of this object.
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 the location of the object on the screen.
Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains this object's height, and the width field of the Dimension object contains this object's width.
Determines if the object is enabled. Objects that are enabled will also have the AccessibleState.ENABLED state set in their AccessibleStateSets.
Returns whether this object can accept focus or not. Objects that can accept focus will also have the AccessibleState.FOCUSABLE state set in their AccessibleStateSets.
Determines if the object is showing. This is determined by checking the visibility of the object and its ancestors. Note: this will return true even if the object is obscured by another (for example, it is underneath a menu that was pulled down).
Determines if the object is visible. Note: this means that the object intends to be visible; however, it may not be showing on the screen because one of the objects that this object is contained by is currently not visible. To determine if an object is showing on the screen, use isShowing().
Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSets.
Removes the specified focus listener so it no longer receives focus events from this component.
l | the focus listener |
---|
Requests focus for this object. If this object cannot accept focus, nothing will happen. Otherwise, the object will attempt to take focus.
Sets the background color of this object.
c | the new Color for the background |
---|
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.
r | rectangle indicating this component's bounds |
---|
Sets the Cursor of this object.
cursor | the new Cursor for the object |
---|
Sets the enabled state of the object.
b | if true, enables this object; otherwise, disables it |
---|
Sets the foreground color of this object.
c | the new Color for the foreground |
---|
Sets the location of the object relative to the parent.
p | the new position for the top-left corner |
---|
Resizes this object so that it has width and height.
d | The dimension specifying the new size of the object. |
---|
Sets the visible state of the object.
b | if true, shows this object; otherwise, hides it |
---|