|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.accessibility.AccessibleContext
javax.swing.JTable.AccessibleJTable.AccessibleJTableCell
protected class JTable.AccessibleJTable.AccessibleJTableCell
Provides accessibility support for table cells.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JTable.AccessibleJTable.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. |
| 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)
AccessibleJTableCell.
t - the tabler - the rowc - the columni - the index of this cell inside the accessible table parent| Method Detail |
|---|
public AccessibleRole getAccessibleRole()
getAccessibleRole in class AccessibleContextAccessibleRolepublic AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet in class AccessibleContextAccessibleState,
AccessibleStateSet,
AccessibleContext.addPropertyChangeListener(PropertyChangeListener)public int getAccessibleIndexInParent()
getAccessibleIndexInParent in class AccessibleContextAccessibleContext.getAccessibleParent(),
AccessibleContext.getAccessibleChildrenCount(),
AccessibleContext.getAccessibleChild(int)public int getAccessibleChildrenCount()
0 here.
getAccessibleChildrenCount in class AccessibleContext0AccessibleContext.getAccessibleChild(int)public Accessible getAccessibleChild(int i)
i. Table cells
don't have children, so we return null here.
getAccessibleChild in class AccessibleContexti - the 0-based index to get
nullAccessibleContext.getAccessibleChildrenCount()public Locale getLocale()
getLocale in class AccessibleContextpublic AccessibleContext getAccessibleContext()
this.
getAccessibleContext in interface Accessiblepublic Color getBackground()
getBackground in interface AccessibleComponentAccessibleComponent.setBackground(Color)public void setBackground(Color color)
setBackground in interface AccessibleComponentcolor - not usedAccessibleComponent.getBackground()public Color getForeground()
getForeground in interface AccessibleComponentAccessibleComponent.setForeground(Color)public void setForeground(Color color)
setForeground in interface AccessibleComponentcolor - not usedAccessibleComponent.getForeground()public Cursor getCursor()
getCursor in interface AccessibleComponentAccessibleComponent.setCursor(Cursor)public void setCursor(Cursor cursor)
setCursor in interface AccessibleComponentcursor - not usedAccessibleComponent.getCursor()public Font getFont()
getFont in interface AccessibleComponentAccessibleComponent.setFont(Font)public void setFont(Font font)
setFont in interface AccessibleComponentfont - not usedAccessibleComponent.getFont()public FontMetrics getFontMetrics(Font font)
getFontMetrics in interface AccessibleComponentfont - the font for which we return the metrics
AccessibleComponent.getFont()public boolean isEnabled()
true if this table cell is enabled,
false otherwise.
isEnabled in interface AccessibleComponenttrue if this table cell is enabled,
false otherwiseAccessibleComponent.setEnabled(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.ENABLEDpublic void setEnabled(boolean b)
setEnabled in interface AccessibleComponentb - not used hereAccessibleComponent.isEnabled()public boolean isVisible()
true if this cell is visible, false
otherwise.
isVisible in interface AccessibleComponenttrue if this cell is visible, false
otherwiseAccessibleComponent.setVisible(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.VISIBLEpublic void setVisible(boolean b)
setVisible in interface AccessibleComponentb - not usedAccessibleComponent.isVisible()public boolean isShowing()
true if this table cell is currently showing on
screen.
isShowing in interface AccessibleComponenttrue if this table cell is currently showing on
screenAccessibleComponent.isVisible(),
AccessibleComponent.setVisible(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.SHOWINGpublic boolean contains(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 AccessibleComponentpoint - the Point to locate
true if this table cell contains the location
at point, false otherwiseAccessibleComponent.getBounds()public Point getLocationOnScreen()
getLocationOnScreen in interface AccessibleComponentAccessibleComponent.getBounds(),
AccessibleComponent.getLocation()public Point getLocation()
getLocation in interface AccessibleComponentAccessibleComponent.getBounds(),
AccessibleComponent.getLocationOnScreen(),
AccessibleComponent.setLocation(Point)public void setLocation(Point point)
setLocation in interface AccessibleComponentpoint - not usedAccessibleComponent.getLocation()public Rectangle getBounds()
getBounds in interface AccessibleComponentAccessibleComponent.contains(Point)public void setBounds(Rectangle rectangle)
setBounds in interface AccessibleComponentrectangle - not usedpublic Dimension getSize()
getSize in interface AccessibleComponentAccessibleComponent.setSize(Dimension)public void setSize(Dimension dimension)
setSize in interface AccessibleComponentdimension - not usedAccessibleComponent.getSize()public Accessible getAccessibleAt(Point point)
null here.
getAccessibleAt in interface AccessibleComponentpoint - the location within this component's coordinate system
nullpublic boolean isFocusTraversable()
true if this table cell is focus traversable,
false otherwise.
isFocusTraversable in interface AccessibleComponenttrue if this table cell is focus traversable,
false otherwiseAccessibleContext.getAccessibleStateSet(),
AccessibleState.FOCUSABLE,
AccessibleState.FOCUSEDpublic void requestFocus()
requestFocus in interface AccessibleComponentAccessibleComponent.isFocusTraversable(),
AccessibleState.FOCUSEDpublic void addFocusListener(FocusListener listener)
addFocusListener in interface AccessibleComponentlistener - the focus listener to addAccessibleComponent.removeFocusListener(FocusListener)public void removeFocusListener(FocusListener listener)
removeFocusListener in interface AccessibleComponentlistener - the listener to removeAccessibleComponent.addFocusListener(FocusListener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||