protected class JTable.AccessibleJTable.AccessibleJTableCell extends javax.accessibility.AccessibleContext implements javax.accessibility.Accessible, javax.accessibility.AccessibleComponent
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| Constructor and Description |
|---|
JTable.AccessibleJTable.AccessibleJTableCell(JTable t,
int r,
int c,
int i)
Creates a new
AccessibleJTableCell. |
| Modifier and Type | Method and Description |
|---|---|
void |
addFocusListener(java.awt.event.FocusListener listener)
Adds a focus listener to this cell.
|
boolean |
contains(java.awt.Point point)
Returns
true if this table cell contains the location
at point, false otherwise. |
javax.accessibility.Accessible |
getAccessibleAt(java.awt.Point point)
Table cells have no children, so we return
null here. |
javax.accessibility.Accessible |
getAccessibleChild(int i)
Returns the accessible child at index
i. |
int |
getAccessibleChildrenCount()
Returns the number of children of this object.
|
javax.accessibility.AccessibleContext |
getAccessibleContext()
Returns the accessible context of this table cell.
|
int |
getAccessibleIndexInParent()
Returns the index of this cell in the parent object.
|
javax.accessibility.AccessibleRole |
getAccessibleRole()
Returns the accessible row for the table cell.
|
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Returns the accessible state set of this accessible table cell.
|
java.awt.Color |
getBackground()
Returns the background color of this cell.
|
java.awt.Rectangle |
getBounds()
Returns the bounds of the cell relative to its table.
|
java.awt.Cursor |
getCursor()
Returns the cursor for this table cell.
|
java.awt.Font |
getFont()
Returns the font of the table cell.
|
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
Returns the font metrics for a specified font.
|
java.awt.Color |
getForeground()
Returns the foreground color of the table cell.
|
java.util.Locale |
getLocale()
Returns the locale setting for this accessible table cell.
|
java.awt.Point |
getLocation()
Returns the location of this cell relative to the table's bounds.
|
java.awt.Point |
getLocationOnScreen()
Returns the screen location of the table cell.
|
java.awt.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(java.awt.event.FocusListener listener)
Removes a focus listener from the cell.
|
void |
requestFocus()
Requests that this table cell gets the keyboard focus.
|
void |
setBackground(java.awt.Color color)
Sets the background of the cell.
|
void |
setBounds(java.awt.Rectangle rectangle)
The bounds of the table cells cannot be manipulated directly, so
this method does nothing.
|
void |
setCursor(java.awt.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(java.awt.Font font)
Sets the font of the cell.
|
void |
setForeground(java.awt.Color color)
Sets the foreground of the cell.
|
void |
setLocation(java.awt.Point point)
The location of the table cells cannot be manipulated directly, so
this method does nothing.
|
void |
setSize(java.awt.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, getAccessibleComponent, getAccessibleDescription, getAccessibleEditableText, getAccessibleIcon, getAccessibleName, getAccessibleParent, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, removePropertyChangeListener, setAccessibleDescription, setAccessibleName, setAccessibleParentpublic JTable.AccessibleJTable.AccessibleJTableCell(JTable t, int r, int c, int i)
AccessibleJTableCell.t - the tabler - the rowc - the columni - the index of this cell inside the accessible table parentpublic javax.accessibility.AccessibleRole getAccessibleRole()
getAccessibleRole in class javax.accessibility.AccessibleContextAccessibleRolepublic javax.accessibility.AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet in class javax.accessibility.AccessibleContextAccessibleState,
AccessibleStateSet,
AccessibleContext.addPropertyChangeListener(PropertyChangeListener)public int getAccessibleIndexInParent()
getAccessibleIndexInParent in class javax.accessibility.AccessibleContextAccessibleContext.getAccessibleParent(),
AccessibleContext.getAccessibleChildrenCount(),
AccessibleContext.getAccessibleChild(int)public int getAccessibleChildrenCount()
0 here.getAccessibleChildrenCount in class javax.accessibility.AccessibleContext0AccessibleContext.getAccessibleChild(int)public javax.accessibility.Accessible getAccessibleChild(int i)
i. Table cells
don't have children, so we return null here.getAccessibleChild in class javax.accessibility.AccessibleContexti - the 0-based index to getnullAccessibleContext.getAccessibleChildrenCount()public java.util.Locale getLocale()
getLocale in class javax.accessibility.AccessibleContextpublic javax.accessibility.AccessibleContext getAccessibleContext()
this.getAccessibleContext in interface javax.accessibility.Accessiblepublic java.awt.Color getBackground()
getBackground in interface javax.accessibility.AccessibleComponentAccessibleComponent.setBackground(Color)public void setBackground(java.awt.Color color)
setBackground in interface javax.accessibility.AccessibleComponentcolor - not usedAccessibleComponent.getBackground()public java.awt.Color getForeground()
getForeground in interface javax.accessibility.AccessibleComponentAccessibleComponent.setForeground(Color)public void setForeground(java.awt.Color color)
setForeground in interface javax.accessibility.AccessibleComponentcolor - not usedAccessibleComponent.getForeground()public java.awt.Cursor getCursor()
getCursor in interface javax.accessibility.AccessibleComponentAccessibleComponent.setCursor(Cursor)public void setCursor(java.awt.Cursor cursor)
setCursor in interface javax.accessibility.AccessibleComponentcursor - not usedAccessibleComponent.getCursor()public java.awt.Font getFont()
getFont in interface javax.accessibility.AccessibleComponentAccessibleComponent.setFont(Font)public void setFont(java.awt.Font font)
setFont in interface javax.accessibility.AccessibleComponentfont - not usedAccessibleComponent.getFont()public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
getFontMetrics in interface javax.accessibility.AccessibleComponentfont - the font for which we return the metricsAccessibleComponent.getFont()public boolean isEnabled()
true if this table cell is enabled,
false otherwise.isEnabled in interface javax.accessibility.AccessibleComponenttrue if this table cell is enabled,
false otherwiseAccessibleComponent.setEnabled(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.ENABLEDpublic void setEnabled(boolean b)
setEnabled in interface javax.accessibility.AccessibleComponentb - not used hereAccessibleComponent.isEnabled()public boolean isVisible()
true if this cell is visible, false
otherwise.isVisible in interface javax.accessibility.AccessibleComponenttrue if this cell is visible, false
otherwiseAccessibleComponent.setVisible(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.VISIBLEpublic void setVisible(boolean b)
setVisible in interface javax.accessibility.AccessibleComponentb - not usedAccessibleComponent.isVisible()public boolean isShowing()
true if this table cell is currently showing on
screen.isShowing in interface javax.accessibility.AccessibleComponenttrue if this table cell is currently showing on
screenAccessibleComponent.isVisible(),
AccessibleComponent.setVisible(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.SHOWINGpublic boolean contains(java.awt.Point point)
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 javax.accessibility.AccessibleComponentpoint - the Point to locatetrue if this table cell contains the location
at point, false otherwiseAccessibleComponent.getBounds()public java.awt.Point getLocationOnScreen()
getLocationOnScreen in interface javax.accessibility.AccessibleComponentAccessibleComponent.getBounds(),
AccessibleComponent.getLocation()public java.awt.Point getLocation()
getLocation in interface javax.accessibility.AccessibleComponentAccessibleComponent.getBounds(),
AccessibleComponent.getLocationOnScreen(),
AccessibleComponent.setLocation(Point)public void setLocation(java.awt.Point point)
setLocation in interface javax.accessibility.AccessibleComponentpoint - not usedAccessibleComponent.getLocation()public java.awt.Rectangle getBounds()
getBounds in interface javax.accessibility.AccessibleComponentAccessibleComponent.contains(Point)public void setBounds(java.awt.Rectangle rectangle)
setBounds in interface javax.accessibility.AccessibleComponentrectangle - not usedpublic java.awt.Dimension getSize()
getSize in interface javax.accessibility.AccessibleComponentAccessibleComponent.setSize(Dimension)public void setSize(java.awt.Dimension dimension)
setSize in interface javax.accessibility.AccessibleComponentdimension - not usedAccessibleComponent.getSize()public javax.accessibility.Accessible getAccessibleAt(java.awt.Point point)
null here.getAccessibleAt in interface javax.accessibility.AccessibleComponentpoint - the location within this component's coordinate systemnullpublic boolean isFocusTraversable()
true if this table cell is focus traversable,
false otherwise.isFocusTraversable in interface javax.accessibility.AccessibleComponenttrue if this table cell is focus traversable,
false otherwiseAccessibleContext.getAccessibleStateSet(),
AccessibleState.FOCUSABLE,
AccessibleState.FOCUSEDpublic void requestFocus()
requestFocus in interface javax.accessibility.AccessibleComponentAccessibleComponent.isFocusTraversable(),
AccessibleState.FOCUSEDpublic void addFocusListener(java.awt.event.FocusListener listener)
addFocusListener in interface javax.accessibility.AccessibleComponentlistener - the focus listener to addAccessibleComponent.removeFocusListener(FocusListener)public void removeFocusListener(java.awt.event.FocusListener listener)
removeFocusListener in interface javax.accessibility.AccessibleComponentlistener - the listener to removeAccessibleComponent.addFocusListener(FocusListener)