javax.swing
protected class JList.AccessibleJList.AccessibleJListChild extends AccessibleContext implements Accessible, AccessibleComponent
JList
s.
Constructor Summary | |
---|---|
AccessibleJListChild(JList list, int index)
Creates a new instance of AccessibleJListChild .
|
Method Summary | |
---|---|
void | addFocusListener(FocusListener listener)
Adds a focus listener to the parent list. |
void | addPropertyChangeListener(PropertyChangeListener l)
This method does
nothing, list children are transient accessible objects which means
that they don't fire property change events.
|
boolean | contains(Point point)
Returns true if this list child covers the screen location
point (relative to the JList coordinate
system, false otherwise.
|
Accessible | getAccessibleAt(Point point)
Returns null because list children do not have children
themselves
|
Accessible | getAccessibleChild(int i)
Returns null since list children don't have children
themselves.
|
int | getAccessibleChildrenCount()
Returns 0 since list children don't have children
themselves.
|
AccessibleContext | getAccessibleContext()
Returns the accessible context of this object. |
int | getAccessibleIndexInParent()
Returns the index of this list child within it's parent list.
|
AccessibleRole | getAccessibleRole()
Returns the accessible role of this list item, which is
{@link AccessibleRole#LABEL}.
|
AccessibleStateSet | getAccessibleStateSet()
Returns the accessible state set of this list item.
|
Color | getBackground()
Returns the background color for this list child. |
Rectangle | getBounds()
Returns the bounds of this list child.
|
Cursor | getCursor()
Returns the cursor for this list child.
|
Font | getFont()
Returns the font of the JList since it is not possible to
set fonts for list children individually.
|
FontMetrics | getFontMetrics(Font font)
Returns the font metrics for the specified font. |
Color | getForeground()
Returns the foreground color for this list child. |
Locale | getLocale()
Returns the locale of this component. |
Point | getLocation()
Returns the screen location of this list child relative to it's parent.
|
Point | getLocationOnScreen()
Returns the absolute screen location of this list child.
|
Dimension | getSize()
Returns the size of this list child.
|
boolean | isEnabled()
Returns true if the parent JList is enabled,
false otherwise. |
boolean | isFocusTraversable()
Returns true since list children are focus traversable.
|
boolean | isShowing()
Returns true if this list child is currently showing on
screen and false otherwise. |
boolean | isVisible()
Returns true if this list child is visible,
false otherwise. |
void | removeFocusListener(FocusListener listener)
Removes a focus listener from the parent list. |
void | removePropertyChangeListener(PropertyChangeListener l)
This method does
nothing, list children are transient accessible objects which means
that they don't fire property change events.
|
void | requestFocus()
Requests focus on the parent list. |
void | setBackground(Color color)
Calling this method has no effect, since the background color cannot be
set on list children individually.
|
void | setBounds(Rectangle rectangle)
Does nothing since the bounds cannot be set on list children
individually.
|
void | setCursor(Cursor cursor)
Sets the cursor for this list child. |
void | setEnabled(boolean b)
Does nothing since the enabled flag cannot be set for list children
individually.
|
void | setFont(Font font)
Does nothing since it is not possible to set the font on list children
individually.
|
void | setForeground(Color color)
Calling this method has no effect, since the foreground color cannot be
set on list children individually.
|
void | setLocation(Point point)
Does nothing since the screen location cannot be set on list children
explictitly.
|
void | setSize(Dimension dimension)
Does nothing since the size cannot be set on list children
individually.
|
void | setVisible(boolean b)
The value of the visible property cannot be modified, so this method
does nothing.
|
AccessibleJListChild
.
Parameters: list the list of which this is an accessible child index the list index for this child
Parameters: listener the focus listener to add
Parameters: l not used here
true
if this list child covers the screen location
point
(relative to the JList
coordinate
system, false
otherwise.
Returns: true
if this list child covers the screen location
point
, false
otherwise
null
because list children do not have children
themselves
Returns: null
null
since list children don't have children
themselves.
Returns: null
0
since list children don't have children
themselves.
Returns: 0
this
since AccessibleJListChild
s are their
own accessible contexts.
Returns: the accessible context of this object, this
Returns: the index of this list child within it's parent list
Returns: {@link AccessibleRole#LABEL}
Returns: the accessible state set of this list item
JList
itself since the background
cannot be set on list children individually
Returns: the background color for this list child
Returns: the bounds of this list child
See Also: JList
Returns: the cursor for this list child
JList
since it is not possible to
set fonts for list children individually.
Returns: the font of the JList
JList
.
Parameters: font the font for which the font metrics is queried
Returns: the font metrics for the specified font
JList
itself since the foreground
cannot be set on list children individually.
Returns: the background color for this list child
Returns: the locale of this component
Returns: the location of this list child relative to it's parent
See Also: JList
Returns: the absolute screen location of this list child
Returns: the size of this list child
true
if the parent JList
is enabled,
false
otherwise. The list children cannot have an enabled
flag set individually.
Returns: true
if the parent JList
is enabled,
false
otherwise
true
since list children are focus traversable.
Returns: true
true
if this list child is currently showing on
screen and false
otherwise. The list child is showing if
it is visible and if it's parent JList is currently showing.
Returns: true
if this list child is currently showing on
screen and false
otherwise
true
if this list child is visible,
false
otherwise. The value of this property depends
on {@link JList#getFirstVisibleIndex()} and
{@link JList#getLastVisibleIndex()}.
Returns: true
if this list child is visible,
false
otherwise
Parameters: listener the focus listener to remove
Parameters: l not used here
Parameters: color not used here.
Parameters: rectangle not used here
Parameters: b not used here
Parameters: font not used here
Parameters: color not used here.
Parameters: point not used here
Parameters: dimension not used here
Parameters: b not used here