javax.swing
protected class JTable.AccessibleJTable.AccessibleJTableCell extends AccessibleContext implements Accessible, AccessibleComponent
| Constructor Summary | |
|---|---|
| AccessibleJTableCell(JTable t, int r, int c, int i)
Creates a new AccessibleJTableCell.
| |
| Method Summary | |
|---|---|
| void | addFocusListener(FocusListener listener)
Adds a focus listener to this cell. |
| boolean | contains(Point point)
Returns true if this table cell contains the location
at point, false otherwise.
|
| Accessible | getAccessibleAt(Point point)
Table cells have no children, so we return null here.
|
| Accessible | getAccessibleChild(int i)
Returns the accessible child at index i. |
| int | getAccessibleChildrenCount()
Returns the number of children of this object. |
| AccessibleContext | getAccessibleContext()
Returns the accessible context of this table cell. |
| int | getAccessibleIndexInParent()
Returns the index of this cell in the parent object.
|
| AccessibleRole | getAccessibleRole()
Returns the accessible row for the table cell.
|
| AccessibleStateSet | getAccessibleStateSet()
Returns the accessible state set of this accessible table cell.
|
| Color | getBackground()
Returns the background color of this cell.
|
| Rectangle | getBounds()
Returns the bounds of the cell relative to its table.
|
| Cursor | getCursor()
Returns the cursor for this table cell.
|
| Font | getFont()
Returns the font of the table cell.
|
| FontMetrics | getFontMetrics(Font font)
Returns the font metrics for a specified font.
|
| Color | getForeground()
Returns the foreground color of the table cell.
|
| Locale | getLocale()
Returns the locale setting for this accessible table cell.
|
| Point | getLocation()
Returns the location of this cell relative to the table's bounds.
|
| Point | getLocationOnScreen()
Returns the screen location of the table cell.
|
| Dimension | getSize()
Returns the size of the table cell.
|
| boolean | isEnabled()
Returns true if this table cell is enabled,
false otherwise.
|
| boolean | isFocusTraversable()
Returns true if this table cell is focus traversable,
false otherwise.
|
| boolean | isShowing()
Returns true if this table cell is currently showing on
screen.
|
| boolean | isVisible()
Returns true if this cell is visible, false
otherwise.
|
| void | removeFocusListener(FocusListener listener)
Removes a focus listener from the cell. |
| void | requestFocus()
Requests that this table cell gets the keyboard focus. |
| void | setBackground(Color color)
Sets the background of the cell. |
| void | setBounds(Rectangle rectangle)
The bounds of the table cells cannot be manipulated directly, so
this method does nothing.
|
| void | setCursor(Cursor cursor)
Sets the cursor of the cell. |
| void | setEnabled(boolean b)
Table cells cannot be disabled or enabled individually, so this method
does nothing. |
| void | setFont(Font font)
Sets the font of the cell. |
| void | setForeground(Color color)
Sets the foreground of the cell. |
| void | setLocation(Point point)
The location of the table cells cannot be manipulated directly, so
this method does nothing.
|
| void | setSize(Dimension dimension)
The size cannot be set on table cells directly, so this method does
nothing.
|
| void | setVisible(boolean b)
The visibility cannot be set on individual table cells, so this method
does nothing. |
AccessibleJTableCell.
Parameters: t the table r the row c the column i the index of this cell inside the accessible table parent
Parameters: listener the focus listener to add
true if this table cell contains the location
at point, false otherwise.
point is interpreted as relative to the coordinate system
of the table cell.
Returns: true if this table cell contains the location
at point, false otherwise
null here.
Returns: null
i. Table cells
don't have children, so we return null here.
Returns: null
0 here.
Returns: 0
this.
Returns: the accessible context of this table cell
Returns: the index of this cell in the parent object
Returns: the accessible row for the table cell
Returns: the accessible state set of this accessible table cell
Returns: the background color of this cell
Returns: the bounds of the cell relative to its table
Returns: the cursor for this table cell
Returns: the font of the table cell
Parameters: font the font for which we return the metrics
Returns: the font metrics for a specified font
Returns: the foreground color of the table cell
Returns: the locale setting for this accessible table cell
Returns: the location of this cell relative to the table's bounds
Returns: the screen location of the table cell
Returns: the size of the table cell
true if this table cell is enabled,
false otherwise.
Returns: true if this table cell is enabled,
false otherwise
true if this table cell is focus traversable,
false otherwise.
Returns: true if this table cell is focus traversable,
false otherwise
true if this table cell is currently showing on
screen.
Returns: true if this table cell is currently showing on
screen
true if this cell is visible, false
otherwise.
Returns: true if this cell is visible, false
otherwise
Parameters: listener the listener to remove
Parameters: color not used
Parameters: rectangle not used
Parameters: cursor not used
Parameters: b not used here
Parameters: font not used
Parameters: color not used
Parameters: point not used
Parameters: dimension not used
Parameters: b not used