|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.accessibility.AccessibleContext java.awt.Component.AccessibleAWTComponent java.awt.List.AccessibleAWTList.AccessibleAWTListChild
This class implements accessibility support for List children. It provides an implementation of the Java Accessibility API appropriate to list children user-interface elements.
Nested Class Summary |
Nested classes inherited from class java.awt.Component.AccessibleAWTComponent |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary | |
private int |
indexInParent
|
private List |
parent
|
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Fields inherited from class javax.accessibility.AccessibleContext |
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, 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_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent |
Constructor Summary | |
List.AccessibleAWTList.AccessibleAWTListChild(List parent,
int indexInParent)
|
Method Summary | |
void |
addFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this component. |
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. |
javax.accessibility.Accessible |
getAccessibleAt(Point p)
Returns the Accessible child, if one exists,
contained at the local coordinate Point . |
javax.accessibility.Accessible |
getAccessibleChild(int i)
Return the specified Accessible child of the object. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children of the object. |
javax.accessibility.AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext for this object. |
int |
getAccessibleIndexInParent()
Get the 0-based index of this object in its accessible parent. |
javax.accessibility.AccessibleRole |
getAccessibleRole()
Get the role of this object. |
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Get the state set of this object. |
Color |
getBackground()
Get the background color of this object. |
Rectangle |
getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Cursor |
getCursor()
Get the Cursor of this object. |
Font |
getFont()
Get the Font of this object. |
FontMetrics |
getFontMetrics(Font f)
Get the FontMetrics of this object. |
Color |
getForeground()
Get the foreground color of this object. |
Locale |
getLocale()
Gets the locale of the component. |
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. |
Point |
getLocationOnScreen()
Returns the location of the object on the screen. |
Dimension |
getSize()
Returns the size of this object in the form of a Dimension object. |
boolean |
isEnabled()
Determine if the object is enabled. |
boolean |
isFocusTraversable()
Returns whether this object can accept focus or not. |
boolean |
isShowing()
Determine if the object is showing. |
boolean |
isVisible()
Determine if the object is visible. |
void |
removeFocusListener(FocusListener l)
Removes the specified focus listener so it no longer receives focus events from this component. |
void |
requestFocus()
Requests focus for this object. |
void |
setBackground(Color c)
Set the background color of this object. |
void |
setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
setCursor(Cursor cursor)
Set the Cursor of this object. |
void |
setEnabled(boolean b)
Set the enabled state of the object. |
void |
setFont(Font f)
Set the Font of this object. |
void |
setForeground(Color c)
Set the foreground color of this object. |
void |
setLocation(Point p)
Sets the location of the object relative to the parent. |
void |
setSize(Dimension d)
Resizes this object so that it has width and height. |
void |
setVisible(boolean b)
Set the visible state of the object. |
Methods inherited from class java.awt.Component.AccessibleAWTComponent |
addPropertyChangeListener, getAccessibleComponent, getAccessibleDescription, getAccessibleName, getAccessibleParent, removePropertyChangeListener |
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 |
private List parent
private int indexInParent
Constructor Detail |
public List.AccessibleAWTList.AccessibleAWTListChild(List parent, int indexInParent)
Method Detail |
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext
in interface javax.accessibility.Accessible
public javax.accessibility.AccessibleRole getAccessibleRole()
getAccessibleRole
in class Component.AccessibleAWTComponent
AccessibleRole
public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class Component.AccessibleAWTComponent
AccessibleStateSet
,
AccessibleState
,
Component.AccessibleAWTComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)
public Locale getLocale()
getLocale
in class Component.AccessibleAWTComponent
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.public int getAccessibleIndexInParent()
getAccessibleIndexInParent
in class Component.AccessibleAWTComponent
Component.AccessibleAWTComponent.getAccessibleParent()
,
getAccessibleChildrenCount()
,
getAccessibleChild(int)
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class Component.AccessibleAWTComponent
public javax.accessibility.Accessible getAccessibleChild(int i)
getAccessibleChild
in class Component.AccessibleAWTComponent
i
- zero-based index of child
getAccessibleChildrenCount()
public Color getBackground()
getBackground
in interface javax.accessibility.AccessibleComponent
getBackground
in class Component.AccessibleAWTComponent
setBackground(java.awt.Color)
public void setBackground(Color c)
setBackground
in interface javax.accessibility.AccessibleComponent
setBackground
in class Component.AccessibleAWTComponent
c
- the new Color for the backgroundsetBackground(java.awt.Color)
public Color getForeground()
getForeground
in interface javax.accessibility.AccessibleComponent
getForeground
in class Component.AccessibleAWTComponent
setForeground(java.awt.Color)
public void setForeground(Color c)
setForeground
in interface javax.accessibility.AccessibleComponent
setForeground
in class Component.AccessibleAWTComponent
c
- the new Color for the foregroundgetForeground()
public Cursor getCursor()
getCursor
in interface javax.accessibility.AccessibleComponent
getCursor
in class Component.AccessibleAWTComponent
setCursor(java.awt.Cursor)
public void setCursor(Cursor cursor)
setCursor
in interface javax.accessibility.AccessibleComponent
setCursor
in class Component.AccessibleAWTComponent
cursor
- the new Cursor for the objectgetCursor()
public Font getFont()
getFont
in interface javax.accessibility.AccessibleComponent
getFont
in class Component.AccessibleAWTComponent
setFont(java.awt.Font)
public void setFont(Font f)
setFont
in interface javax.accessibility.AccessibleComponent
setFont
in class Component.AccessibleAWTComponent
f
- the new Font for the objectgetFont()
public FontMetrics getFontMetrics(Font f)
getFontMetrics
in interface javax.accessibility.AccessibleComponent
getFontMetrics
in class Component.AccessibleAWTComponent
f
- the Font
getFont()
public boolean isEnabled()
isEnabled
in interface javax.accessibility.AccessibleComponent
isEnabled
in class Component.AccessibleAWTComponent
setEnabled(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.ENABLED
,
AccessibleStateSet
public void setEnabled(boolean b)
setEnabled
in interface javax.accessibility.AccessibleComponent
setEnabled
in class Component.AccessibleAWTComponent
b
- if true, enables this object; otherwise, disables itisEnabled()
public boolean isVisible()
Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSet.
isVisible
in interface javax.accessibility.AccessibleComponent
isVisible
in class Component.AccessibleAWTComponent
setVisible(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.VISIBLE
,
AccessibleStateSet
public void setVisible(boolean b)
setVisible
in interface javax.accessibility.AccessibleComponent
setVisible
in class Component.AccessibleAWTComponent
b
- if true, shows this object; otherwise, hides itisVisible()
public boolean isShowing()
isShowing
in interface javax.accessibility.AccessibleComponent
isShowing
in class Component.AccessibleAWTComponent
public boolean contains(Point p)
contains
in interface javax.accessibility.AccessibleComponent
contains
in class Component.AccessibleAWTComponent
p
- the Point relative to the coordinate system of the
object
getBounds()
public Point getLocationOnScreen()
getLocationOnScreen
in interface javax.accessibility.AccessibleComponent
getLocationOnScreen
in class Component.AccessibleAWTComponent
getBounds()
,
getLocation()
public Point getLocation()
getLocation
in interface javax.accessibility.AccessibleComponent
getLocation
in class Component.AccessibleAWTComponent
getBounds()
,
getLocationOnScreen()
public void setLocation(Point p)
setLocation
in interface javax.accessibility.AccessibleComponent
setLocation
in class Component.AccessibleAWTComponent
p
- the new position for the top-left cornergetLocation()
public Rectangle getBounds()
getBounds
in interface javax.accessibility.AccessibleComponent
getBounds
in class Component.AccessibleAWTComponent
contains(java.awt.Point)
public void setBounds(Rectangle r)
setBounds
in interface javax.accessibility.AccessibleComponent
setBounds
in class Component.AccessibleAWTComponent
r
- rectangle indicating this component's boundsgetBounds()
public Dimension getSize()
getSize
in interface javax.accessibility.AccessibleComponent
getSize
in class Component.AccessibleAWTComponent
setSize(java.awt.Dimension)
public void setSize(Dimension d)
setSize
in interface javax.accessibility.AccessibleComponent
setSize
in class Component.AccessibleAWTComponent
d
- - The dimension specifying the new size of the object.getSize()
public javax.accessibility.Accessible getAccessibleAt(Point p)
Accessible
child, if one exists,
contained at the local coordinate Point
.
getAccessibleAt
in interface javax.accessibility.AccessibleComponent
getAccessibleAt
in class Component.AccessibleAWTComponent
p
- the point relative to the coordinate system of this
object
Accessible
, if it exists,
at the specified location; otherwise null
public boolean isFocusTraversable()
AccessibleState.FOCUSABLE
state set in their
AccessibleStateSet
.
isFocusTraversable
in interface javax.accessibility.AccessibleComponent
isFocusTraversable
in class Component.AccessibleAWTComponent
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.FOCUSABLE
,
AccessibleState.FOCUSED
,
AccessibleStateSet
public void requestFocus()
requestFocus
in interface javax.accessibility.AccessibleComponent
requestFocus
in class Component.AccessibleAWTComponent
isFocusTraversable()
public void addFocusListener(FocusListener l)
addFocusListener
in interface javax.accessibility.AccessibleComponent
addFocusListener
in class Component.AccessibleAWTComponent
l
- the focus listenerremoveFocusListener(java.awt.event.FocusListener)
public void removeFocusListener(FocusListener l)
removeFocusListener
in interface javax.accessibility.AccessibleComponent
removeFocusListener
in class Component.AccessibleAWTComponent
l
- the focus listeneraddFocusListener(java.awt.event.FocusListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |