|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
protected abstract class Component.AccessibleAWTComponent
This class provides accessibility support for subclasses of container.
| 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. |
| Fields inherited from class javax.accessibility.AccessibleContext |
|---|
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent |
| Constructor Summary | |
|---|---|
protected |
Component.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. |
javax.accessibility.Accessible |
getAccessibleAt(Point p)
Returns the Accessible child at a point relative to the coordinate system of this component, if one exists, or null. |
javax.accessibility.Accessible |
getAccessibleChild(int i)
Returns the ith accessible child. |
int |
getAccessibleChildrenCount()
Returns the number of children of this component which implement Accessible. |
javax.accessibility.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. |
javax.accessibility.Accessible |
getAccessibleParent()
Returns the parent of this component, if it is accessible. |
javax.accessibility.AccessibleRole |
getAccessibleRole()
Returns the role of this component. |
javax.accessibility.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. |
| Methods inherited from class javax.accessibility.AccessibleContext |
|---|
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ComponentListener accessibleAWTComponentHandler
protected FocusListener accessibleAWTFocusHandler
| Constructor Detail |
|---|
protected Component.AccessibleAWTComponent()
| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in class javax.accessibility.AccessibleContextl - the listener to addAccessibleContext.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_PROPERTYpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in class javax.accessibility.AccessibleContextl - the listener to removeAccessibleContext.addPropertyChangeListener(PropertyChangeListener)public String getAccessibleName()
getAccessibleName in class javax.accessibility.AccessibleContextAccessibleContext.setAccessibleName(String)public String getAccessibleDescription()
getAccessibleDescription in class javax.accessibility.AccessibleContextAccessibleContext.setAccessibleDescription(String)public javax.accessibility.AccessibleRole getAccessibleRole()
getAccessibleRole in class javax.accessibility.AccessibleContextAccessibleRolepublic javax.accessibility.AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet in class javax.accessibility.AccessibleContextAccessibleStatepublic javax.accessibility.Accessible getAccessibleParent()
getAccessibleParent in class javax.accessibility.AccessibleContextpublic int getAccessibleIndexInParent()
getAccessibleIndexInParent in class javax.accessibility.AccessibleContextgetAccessibleParent()public int getAccessibleChildrenCount()
getAccessibleChildrenCount in class javax.accessibility.AccessibleContextAccessibleContext.getAccessibleChild(int)public javax.accessibility.Accessible getAccessibleChild(int i)
getAccessibleChild in class javax.accessibility.AccessibleContexti - the 0-based index to get
getAccessibleChildrenCount()public Locale getLocale()
getLocale in class javax.accessibility.AccessibleContextIllegalComponentStateException - if the locale is unknownpublic javax.accessibility.AccessibleComponent getAccessibleComponent()
getAccessibleComponent in class javax.accessibility.AccessibleContextAccessibleComponentpublic Color getBackground()
getBackground in interface javax.accessibility.AccessibleComponentsetBackground(Color)public void setBackground(Color c)
setBackground in interface javax.accessibility.AccessibleComponentc - the background colorgetBackground(),
Component.isOpaque()public Color getForeground()
getForeground in interface javax.accessibility.AccessibleComponentsetForeground(Color)public void setForeground(Color c)
setForeground in interface javax.accessibility.AccessibleComponentc - the foreground colorgetForeground()public Cursor getCursor()
getCursor in interface javax.accessibility.AccessibleComponentsetCursor(Cursor)public void setCursor(Cursor cursor)
setCursor in interface javax.accessibility.AccessibleComponentcursor - the cursorgetCursor()public Font getFont()
getFont in interface javax.accessibility.AccessibleComponentsetFont(Font)public void setFont(Font f)
setFont in interface javax.accessibility.AccessibleComponentf - the fontgetFont()public FontMetrics getFontMetrics(Font f)
getFontMetrics in interface javax.accessibility.AccessibleComponentf - the font to look up
NullPointerException - if f is nullgetFont()public boolean isEnabled()
isEnabled in interface javax.accessibility.AccessibleComponentsetEnabled(boolean),
getAccessibleStateSet(),
AccessibleState.ENABLEDpublic void setEnabled(boolean b)
setEnabled in interface javax.accessibility.AccessibleComponentb - the new enabled statusisEnabled()public boolean isVisible()
isVisible in interface javax.accessibility.AccessibleComponentsetVisible(boolean),
getAccessibleStateSet(),
AccessibleState.VISIBLEpublic void setVisible(boolean b)
setVisible in interface javax.accessibility.AccessibleComponentb - the desired visibilityisVisible()public boolean isShowing()
isShowing in interface javax.accessibility.AccessibleComponentAccessibleComponent.isVisible(),
AccessibleComponent.setVisible(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.SHOWINGpublic boolean contains(Point p)
contains in interface javax.accessibility.AccessibleComponentp - the point to check
NullPointerException - if p is nullAccessibleComponent.getBounds()public Point getLocationOnScreen()
getLocationOnScreen in interface javax.accessibility.AccessibleComponentgetBounds(),
getLocation()public Point getLocation()
getLocation in interface javax.accessibility.AccessibleComponentgetBounds(),
getLocationOnScreen()public void setLocation(Point p)
setLocation in interface javax.accessibility.AccessibleComponentp - the location
NullPointerException - if p is nullgetLocation()public Rectangle getBounds()
getBounds in interface javax.accessibility.AccessibleComponentcontains(Point),
setBounds(Rectangle)public void setBounds(Rectangle r)
setBounds in interface javax.accessibility.AccessibleComponentr - the bounds
NullPointerException - if r is nullgetBounds()public Dimension getSize()
getSize in interface javax.accessibility.AccessibleComponentsetSize(Dimension)public void setSize(Dimension d)
setSize in interface javax.accessibility.AccessibleComponentd - the size
NullPointerException - if d is nullgetSize()public javax.accessibility.Accessible getAccessibleAt(Point p)
getAccessibleAt in interface javax.accessibility.AccessibleComponentp - the point to check
NullPointerException - if p is nullpublic boolean isFocusTraversable()
isFocusTraversable in interface javax.accessibility.AccessibleComponent(),
AccessibleState.FOCUSABLE,
AccessibleState.FOCUSEDpublic void requestFocus()
requestFocus in interface javax.accessibility.AccessibleComponent()public void addFocusListener(FocusListener l)
addFocusListener in interface javax.accessibility.AccessibleComponentl - the listener to addAccessibleComponent.removeFocusListener(FocusListener)public void removeFocusListener(FocusListener l)
removeFocusListener in interface javax.accessibility.AccessibleComponentl - the listener to removeAccessibleComponent.addFocusListener(FocusListener)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||