java.awt
protected abstract class Component.AccessibleAWTComponent extends AccessibleContext implements Serializable, AccessibleComponent
Since: 1.3
UNKNOWN: updated to 1.4
Nested Class Summary | |
---|---|
protected class | Component.AccessibleAWTComponent.AccessibleAWTComponentHandler
Converts component changes into property changes.
|
protected class | Component.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.
|
protected FocusListener | accessibleAWTFocusHandler
Converts focus events to PropertyChange events, and is registered
as a focus listener on this component.
|
Constructor Summary | |
---|---|
protected | AccessibleAWTComponent()
The default constructor. |
Method Summary | |
---|---|
void | addFocusListener(FocusListener l)
Adds a focus listener.
|
void | addPropertyChangeListener(PropertyChangeListener l)
Adds a global property change listener to the accessible component.
|
boolean | contains(Point p)
Tests if the point is contained in this component.
|
Accessible | getAccessibleAt(Point p)
Returns the Accessible child at a point relative to the coordinate
system of this component, if one exists, or null. |
Accessible | getAccessibleChild(int i)
Returns the ith accessible child. |
int | getAccessibleChildrenCount()
Returns the number of children of this component which implement
Accessible. |
AccessibleComponent | getAccessibleComponent()
Returns this, since it is an accessible component.
|
String | getAccessibleDescription()
Returns a brief description of this accessible context. |
int | getAccessibleIndexInParent()
Returns the index of this component in its accessible parent.
|
String | getAccessibleName()
Returns the accessible name of this component. |
Accessible | getAccessibleParent()
Returns the parent of this component, if it is accessible.
|
AccessibleRole | getAccessibleRole()
Returns the role of this component.
|
AccessibleStateSet | getAccessibleStateSet()
Returns a state set describing this component's state.
|
Color | getBackground()
Gets the background color.
|
Rectangle | getBounds()
Gets the bounds of this component, or null if it is not on screen.
|
Cursor | getCursor()
Gets the cursor.
|
Font | getFont()
Gets the font.
|
FontMetrics | getFontMetrics(Font f)
Gets the font metrics for a font.
|
Color | getForeground()
Gets the foreground color.
|
Locale | getLocale()
Returns the locale of this component.
|
Point | getLocation()
Returns the location of this object relative to its parent's coordinate
system, or null if it is not showing.
|
Point | getLocationOnScreen()
Returns the location of this object on the screen, or null if it is
not showing.
|
Dimension | getSize()
Gets the size of this component, or null if it is not showing.
|
boolean | isEnabled()
Tests if the component is enabled.
|
boolean | isFocusTraversable()
Tests whether this component can accept focus.
|
boolean | isShowing()
Tests if the component is showing.
|
boolean | isVisible()
Test whether the component is visible (not necesarily showing).
|
void | removeFocusListener(FocusListener l)
Removes a focus listener.
|
void | removePropertyChangeListener(PropertyChangeListener l)
Removes a global property change listener from this accessible
component.
|
void | requestFocus()
Requests focus for this component.
|
void | setBackground(Color c)
Sets the background color.
|
void | setBounds(Rectangle r)
Sets the bounds of this component.
|
void | setCursor(Cursor cursor)
Sets the cursor.
|
void | setEnabled(boolean b)
Set whether the component is enabled.
|
void | setFont(Font f)
Sets the font.
|
void | setForeground(Color c)
Sets the foreground color.
|
void | setLocation(Point p)
Sets the location of this relative to its parent's coordinate system.
|
void | setSize(Dimension d)
Sets the size of this component.
|
void | setVisible(boolean b)
Sets the visibility of this component.
|
Serial: the component handler
Serial: the focus handler
Parameters: l the listener to add
Parameters: l the listener to add
See Also: AccessibleAWTComponent AccessibleAWTComponent AccessibleAWTComponent AccessibleAWTComponent AccessibleAWTComponent AccessibleAWTComponent AccessibleAWTComponent
Parameters: p the point to check
Returns: true if it is contained
Throws: NullPointerException if p is null
Parameters: p the point to check
Returns: the accessible child at that point
Throws: NullPointerException if p is null
Returns: the ith accessible child, or null
See Also: getAccessibleChildrenCount
Returns: the number of accessible children, default 0
Returns: the accessible component
Returns: a description of this component
See Also: AccessibleAWTComponent
Returns: the index, or -1 if the parent is not accessible
See Also: getAccessibleParent
Returns: the name
See Also: AccessibleAWTComponent
Returns: the accessible parent
Returns: the accessible role
Returns: a new state set
See Also: AccessibleState
Returns: the background color
See Also: setBackground
Returns: the bounds
Returns: the cursor
See Also: setCursor
Returns: the font
See Also: setFont
Parameters: f the font to look up
Returns: its metrics
Throws: NullPointerException if f is null
See Also: getFont
Returns: the foreground color
See Also: setForeground
Returns: the locale
Throws: IllegalComponentStateException if the locale is unknown
Returns: the location
See Also: getBounds getLocationOnScreen
Returns: the location relative to screen coordinates, if showing
See Also: getBounds getLocation
Returns: the size
See Also: setSize
Returns: true if the component is enabled
See Also: AccessibleAWTComponent getAccessibleStateSet ENABLED
Returns: true if this is focus traversable
See Also: getAccessibleStateSet FOCUSABLE FOCUSED
Returns: true if this is showing
Returns: true if it is visible
See Also: AccessibleAWTComponent getAccessibleStateSet VISIBLE
Parameters: l the listener to remove
Parameters: l the listener to remove
See Also: isFocusTraversable
Parameters: c the background color
See Also: getBackground AccessibleAWTComponent
Parameters: r the bounds
Throws: NullPointerException if r is null
See Also: getBounds
Parameters: cursor the cursor
See Also: getCursor
Parameters: b the new enabled status
See Also: isEnabled
Parameters: f the font
See Also: getFont
Parameters: c the foreground color
See Also: getForeground
Parameters: p the location
Throws: NullPointerException if p is null
See Also: getLocation
Parameters: d the size
Throws: NullPointerException if d is null
See Also: getSize
Parameters: b the desired visibility
See Also: isVisible