Serializable
, Accessible
, AccessibleComponent
List.AccessibleAWTList
protected class List.AccessibleAWTList.AccessibleAWTListChild extends Component.AccessibleAWTComponent implements Accessible
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
accessibleAWTComponentHandler, accessibleAWTFocusHandler
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 | Description |
---|---|
AccessibleAWTListChild |
Constructs new AccessibleAWTListChild with the given parent List and 0-based index of this object in the parent. |
Modifier and Type | Method | Description |
---|---|---|
void |
addFocusListener |
Adds the specified focus listener to receive focus events from this component. |
boolean |
contains |
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. |
Accessible |
getAccessibleAt |
Returns the Accessible child, if one exists, contained at the local coordinate Point . |
Accessible |
getAccessibleChild |
Return the specified Accessible child of the object. |
int |
getAccessibleChildrenCount() |
Returns the number of accessible children of the object. |
AccessibleContext |
getAccessibleContext() |
Gets the AccessibleContext for this object. |
int |
getAccessibleIndexInParent() |
Get the 0-based index of this object in its accessible parent. |
AccessibleRole |
getAccessibleRole() |
Get the role of this object. |
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 |
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 |
Removes the specified focus listener so it no longer receives focus events from this component. |
void |
requestFocus() |
Requests focus for this object. |
void |
setBackground |
Set the background color of this object. |
void |
setBounds |
Sets the bounds of this object in the form of a Rectangle object. |
void |
setCursor |
Set the Cursor of this object. |
void |
setEnabled |
Set the enabled state of the object. |
void |
setFont |
Set the Font of this object. |
void |
setForeground |
Set the foreground color of this object. |
void |
setLocation |
Sets the location of the object relative to the parent. |
void |
setSize |
Resizes this object so that it has width and height. |
void |
setVisible |
Set the visible state of the object. |
addPropertyChangeListener, getAccessibleComponent, getAccessibleDescription, getAccessibleName, getAccessibleParent, removePropertyChangeListener
firePropertyChange, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
public AccessibleAWTListChild(List parent, int indexInParent)
AccessibleAWTListChild
with the given parent List
and 0-based index of this object in the parent.parent
- the parent List
indexInParent
- the index in the parentpublic AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class Component.AccessibleAWTComponent
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class Component.AccessibleAWTComponent
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
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class Component.AccessibleAWTComponent
public Accessible getAccessibleChild(int i)
getAccessibleChild
in class Component.AccessibleAWTComponent
i
- zero-based index of childpublic Color getBackground()
getBackground
in interface AccessibleComponent
getBackground
in class Component.AccessibleAWTComponent
public void setBackground(Color c)
setBackground
in interface AccessibleComponent
setBackground
in class Component.AccessibleAWTComponent
c
- the new Color for the backgroundpublic Color getForeground()
getForeground
in interface AccessibleComponent
getForeground
in class Component.AccessibleAWTComponent
public void setForeground(Color c)
setForeground
in interface AccessibleComponent
setForeground
in class Component.AccessibleAWTComponent
c
- the new Color for the foregroundpublic Cursor getCursor()
getCursor
in interface AccessibleComponent
getCursor
in class Component.AccessibleAWTComponent
public void setCursor(Cursor cursor)
The method may have no visual effect if the Java platform implementation and/or the native system do not support changing the mouse cursor shape.
setCursor
in interface AccessibleComponent
setCursor
in class Component.AccessibleAWTComponent
cursor
- the new Cursor for the objectpublic Font getFont()
getFont
in interface AccessibleComponent
getFont
in class Component.AccessibleAWTComponent
public void setFont(Font f)
setFont
in interface AccessibleComponent
setFont
in class Component.AccessibleAWTComponent
f
- the new Font for the objectpublic FontMetrics getFontMetrics(Font f)
getFontMetrics
in interface AccessibleComponent
getFontMetrics
in class Component.AccessibleAWTComponent
f
- the Fontpublic boolean isEnabled()
isEnabled
in interface AccessibleComponent
isEnabled
in class Component.AccessibleAWTComponent
public void setEnabled(boolean b)
setEnabled
in interface AccessibleComponent
setEnabled
in class Component.AccessibleAWTComponent
b
- if true, enables this object; otherwise, disables itpublic boolean isVisible()
Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSet.
isVisible
in interface AccessibleComponent
isVisible
in class Component.AccessibleAWTComponent
public void setVisible(boolean b)
setVisible
in interface AccessibleComponent
setVisible
in class Component.AccessibleAWTComponent
b
- if true, shows this object; otherwise, hides itpublic boolean isShowing()
isShowing
in interface AccessibleComponent
isShowing
in class Component.AccessibleAWTComponent
public boolean contains(Point p)
contains
in interface AccessibleComponent
contains
in class Component.AccessibleAWTComponent
p
- the Point relative to the coordinate system of the objectpublic Point getLocationOnScreen()
getLocationOnScreen
in interface AccessibleComponent
getLocationOnScreen
in class Component.AccessibleAWTComponent
public Point getLocation()
getLocation
in interface AccessibleComponent
getLocation
in class Component.AccessibleAWTComponent
public void setLocation(Point p)
setLocation
in interface AccessibleComponent
setLocation
in class Component.AccessibleAWTComponent
p
- the new position for the top-left cornerpublic Rectangle getBounds()
getBounds
in interface AccessibleComponent
getBounds
in class Component.AccessibleAWTComponent
public void setBounds(Rectangle r)
setBounds
in interface AccessibleComponent
setBounds
in class Component.AccessibleAWTComponent
r
- rectangle indicating this component's boundspublic Dimension getSize()
getSize
in interface AccessibleComponent
getSize
in class Component.AccessibleAWTComponent
public void setSize(Dimension d)
setSize
in interface AccessibleComponent
setSize
in class Component.AccessibleAWTComponent
d
- The dimension specifying the new size of the object.public Accessible getAccessibleAt(Point p)
Accessible
child, if one exists, contained at the local coordinate Point
.getAccessibleAt
in interface AccessibleComponent
getAccessibleAt
in class Component.AccessibleAWTComponent
p
- the point relative to the coordinate system of this objectAccessible
, if it exists, at the specified location; otherwise null
public boolean isFocusTraversable()
AccessibleState.FOCUSABLE
state set in their AccessibleStateSet
.isFocusTraversable
in interface AccessibleComponent
isFocusTraversable
in class Component.AccessibleAWTComponent
public void requestFocus()
requestFocus
in interface AccessibleComponent
requestFocus
in class Component.AccessibleAWTComponent
public void addFocusListener(FocusListener l)
addFocusListener
in interface AccessibleComponent
addFocusListener
in class Component.AccessibleAWTComponent
l
- the focus listenerpublic void removeFocusListener(FocusListener l)
removeFocusListener
in interface AccessibleComponent
removeFocusListener
in class Component.AccessibleAWTComponent
l
- the focus listener
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html