javax.swing
Class JTable.AccessibleJTable.AccessibleJTableCell
- JTable.AccessibleJTable
- Accessible, AccessibleComponent
Provides accessibility support for table cells.
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 |
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.
|
addPropertyChangeListener , firePropertyChange , getAccessibleAction , getAccessibleChild , getAccessibleChildrenCount , getAccessibleComponent , getAccessibleDescription , getAccessibleEditableText , getAccessibleIcon , getAccessibleIndexInParent , getAccessibleName , getAccessibleParent , getAccessibleRelationSet , getAccessibleRole , getAccessibleSelection , getAccessibleStateSet , getAccessibleTable , getAccessibleText , getAccessibleValue , getLocale , removePropertyChangeListener , setAccessibleDescription , setAccessibleName , setAccessibleParent |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
AccessibleJTableCell
public AccessibleJTableCell(JTable t,
int r,
int c,
int i)
Creates a new AccessibleJTableCell
.
t
- the tabler
- the rowc
- the columni
- the index of this cell inside the accessible table parent
contains
public boolean contains(Point point)
Returns 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.
- contains in interface AccessibleComponent
true
if this table cell contains the location
at point
, false
otherwise
isEnabled
public boolean isEnabled()
Returns true
if this table cell is enabled,
false
otherwise.
- isEnabled in interface AccessibleComponent
true
if this table cell is enabled,
false
otherwise
isShowing
public boolean isShowing()
Returns true
if this table cell is currently showing on
screen.
- isShowing in interface AccessibleComponent
true
if this table cell is currently showing on
screen
setBackground
public void setBackground(Color color)
Sets the background of the cell. Since table cells cannot have
individual background colors, this method does nothing. Set the
background directly on the table instead.
- setBackground in interface AccessibleComponent
setCursor
public void setCursor(Cursor cursor)
Sets the cursor of the cell. Since table cells cannot have
individual cursors, this method does nothing. Set the
cursor directly on the table instead.
- setCursor in interface AccessibleComponent
setEnabled
public void setEnabled(boolean b)
Table cells cannot be disabled or enabled individually, so this method
does nothing. Set the enabled flag on the table itself.
- setEnabled in interface AccessibleComponent
setFont
public void setFont(Font font)
Sets the font of the cell. Since table cells cannot have
individual fonts, this method does nothing. Set the
font directly on the table instead.
- setFont in interface AccessibleComponent
setForeground
public void setForeground(Color color)
Sets the foreground of the cell. Since table cells cannot have
individual foreground colors, this method does nothing. Set the
foreground directly on the table instead.
- setForeground in interface AccessibleComponent
setVisible
public void setVisible(boolean b)
The visibility cannot be set on individual table cells, so this method
does nothing. Set the visibility on the table itself.
- setVisible in interface AccessibleComponent
JTable.java --
Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.