| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
protected class JTable.AccessibleJTable.AccessibleJTableCell extends AccessibleContext implements Accessible, AccessibleComponent
The class provides an implementation of the Java Accessibility API appropriate to table cells.
Field Summary |
---|
Constructor Summary | |
---|---|
JTable.AccessibleJTable.AccessibleJTableCell(JTable t, int r, int c, int i) Constructs an AccessibleJTableHeaderEntry .
|
Method Summary | |
---|---|
void |
|
void |
Adds a PropertyChangeListener to the listener list.
|
boolean |
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. |
AccessibleAction |
Gets the AccessibleAction associated with this
object if one exists.
|
Accessible |
|
Accessible |
getAccessibleChild(int i) Returns the specified Accessible child of the
object.
|
int |
Returns the number of accessible children in the object. |
AccessibleComponent |
Gets the AccessibleComponent associated with
this object if one exists.
|
AccessibleContext |
Gets the AccessibleContext associated with this
component.
|
String |
Gets the accessible description of this object. |
int |
Gets the index of this object in its accessible parent. |
String |
Gets the accessible name of this object. |
Accessible |
Gets the Accessible parent of this object.
|
AccessibleRole |
Gets the role of this object. |
AccessibleSelection |
Gets the AccessibleSelection associated with
this object if one exists.
|
AccessibleStateSet |
Gets the state set of this object. |
AccessibleText |
Gets the AccessibleText associated with this
object if one exists.
|
AccessibleValue |
Gets the AccessibleValue associated with
this object if one exists.
|
Color |
Gets the background color of this object. |
Rectangle |
|
protected AccessibleContext |
Gets the AccessibleContext for the table cell renderer. |
protected Component |
Gets the table cell renderer component. |
Cursor |
Gets the Cursor of this object.
|
Font |
getFont() Gets the Font of this object.
|
FontMetrics |
Gets the FontMetrics of this object.
|
Color |
Gets the foreground color of this object. |
Locale |
Gets the locale of the component. |
Point |
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 |
Returns the location of the object on the screen. |
Dimension |
getSize() |
boolean |
Determines if the object is enabled. |
boolean |
|
boolean |
Determines if the object is showing. |
boolean |
Determines if this object is visible. |
void |
|
void |
Removes a PropertyChangeListener from the
listener list.
|
void |
|
void |
Sets the accessible description of this object. |
void |
Sets the localized accessible name of this object. |
void |
Sets the background color of this object. |
void |
|
void |
Sets the Cursor of this object.
|
void |
setEnabled(boolean b) Sets the enabled state of the object. |
void |
Sets the Font of this object.
|
void |
Sets the foreground color of this object. |
void |
setLocation(Point p) Sets the location of the object relative to the parent. |
void |
|
void |
setVisible(boolean b) Sets the visible state of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JTable.AccessibleJTable.AccessibleJTableCell(JTable t, int r, int c, int i)
AccessibleJTableHeaderEntry
.
t
r
c
i
Method Detail |
---|
public void addFocusListener(FocusListener l)
l
public void addPropertyChangeListener(PropertyChangeListener l)
PropertyChangeListener
to the listener list.
The listener is registered for all properties.
addPropertyChangeListener
in class AccessibleContext
l
- the PropertyChangeListener
to be addedpublic boolean contains(Point p)
p
- the Point
relative to the
coordinate system of the objectPoint
;
otherwise falsepublic AccessibleAction getAccessibleAction()
AccessibleAction
associated with this
object if one exists. Otherwise returns null
.
getAccessibleAction
in class AccessibleContext
AccessibleAction
, or null
public Accessible getAccessibleAt(Point p)
p
public Accessible getAccessibleChild(int i)
Accessible
child of the
object.
getAccessibleChild
in class AccessibleContext
i
- zero-based index of childAccessible
child of the objectpublic int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class AccessibleContext
public AccessibleComponent getAccessibleComponent()
AccessibleComponent
associated with
this object if one exists. Otherwise returns null
.
getAccessibleComponent
in class AccessibleContext
AccessibleComponent
, or
null
public AccessibleContext getAccessibleContext()
AccessibleContext
associated with this
component. In the implementation of the Java Accessibility
API for this class, return this object, which is its own
AccessibleContext
.
public String getAccessibleDescription()
getAccessibleDescription
in class AccessibleContext
null
if this object does not have
a descriptionpublic int getAccessibleIndexInParent()
getAccessibleIndexInParent
in class AccessibleContext
public String getAccessibleName()
getAccessibleName
in class AccessibleContext
null
if this object does not have a namepublic Accessible getAccessibleParent()
Accessible
parent of this object.
getAccessibleParent
in class AccessibleContext
null
if this object does not
have an Accessible
parentpublic AccessibleRole getAccessibleRole()
getAccessibleRole
in class AccessibleContext
AccessibleRole
describing the role of the objectpublic AccessibleSelection getAccessibleSelection()
AccessibleSelection
associated with
this object if one exists. Otherwise returns null
.
getAccessibleSelection
in class AccessibleContext
AccessibleSelection
, or
null
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class AccessibleContext
AccessibleStateSet
containing the current state set of the objectpublic AccessibleText getAccessibleText()
AccessibleText
associated with this
object if one exists. Otherwise returns null
.
getAccessibleText
in class AccessibleContext
AccessibleText
, or null
public AccessibleValue getAccessibleValue()
AccessibleValue
associated with
this object if one exists. Otherwise returns null
.
getAccessibleValue
in class AccessibleContext
AccessibleValue
, or null
public Color getBackground()
null
public Rectangle getBounds()
protected AccessibleContext getCurrentAccessibleContext()
AccessibleContext
for the table
cell renderer if one exists;
otherwise, returns null
.protected Component getCurrentComponent()
null
.public Cursor getCursor()
Cursor
of this object.
Cursor
, if supported,
of the object; otherwise, null
public Font getFont()
Font
of this object.
Font
,if supported,
for the object; otherwise, null
public FontMetrics getFontMetrics(Font f)
FontMetrics
of this object.
f
- the Font
FontMetrics
object, if supported;
otherwise null
public Color getForeground()
null
public Locale getLocale()
getLocale
in class AccessibleContext
public Point getLocation()
Point
representing
the top-left corner of the object's bounds in the
coordinate space of the screen; null
if
this object or its parent are not on the screenpublic Point getLocationOnScreen()
null
if this object is not on the screenpublic Dimension getSize()
public boolean isEnabled()
public boolean isFocusTraversable()
public boolean isShowing()
public boolean isVisible()
isShowing
.
public void removeFocusListener(FocusListener l)
l
public void removePropertyChangeListener(PropertyChangeListener l)
PropertyChangeListener
from the
listener list. This removes a PropertyChangeListener
that was registered for all properties.
removePropertyChangeListener
in class AccessibleContext
l
- the PropertyChangeListener
to be removedpublic void requestFocus()
public void setAccessibleDescription(String s)
setAccessibleDescription
in class AccessibleContext
s
- the new localized description of the objectpublic void setAccessibleName(String s)
setAccessibleName
in class AccessibleContext
s
- the new localized name of the objectpublic void setBackground(Color c)
c
- the new Color
for the backgroundpublic void setBounds(Rectangle r)
r
public void setCursor(Cursor c)
Cursor
of this object.
c
- the new Cursor
for the objectpublic void setEnabled(boolean b)
b
- if true, enables this object; otherwise, disables itpublic void setFont(Font f)
Font
of this object.
f
- the new Font
for the objectpublic void setForeground(Color c)
c
- the new Color
for the foregroundpublic void setLocation(Point p)
p
public void setSize(Dimension d)
d
public void setVisible(boolean b)
b
- if true, shows this object; otherwise, hides it
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |