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