protected class javax.swing
JTable.AccessibleJTable.AccessibleJTableCell


Show All Login
Java SE 6
  
Extends: AccessibleContext
Implements: Accessible, AccessibleComponent
Contained within: JTable.AccessibleJTable

The class provides an implementation of the Java Accessibility API appropriate to table cells.

Constructors
public JTable.AccessibleJTable.AccessibleJTableCell(JTable t, int r, int c, int i) Details
Constructs an AccessibleJTableHeaderEntry.
since1.4

Methods
public void addFocusListener(FocusListener l)
public void addPropertyChangeListener(PropertyChangeListener l) Details
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties.
lthe PropertyChangeListener to be added
public boolean contains(Point p) Details
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.
pthe Point relative to the coordinate system of the object
returntrue if object contains Point; otherwise false
public void removeFocusListener(FocusListener l)
public void removePropertyChangeListener(PropertyChangeListener l) Details
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
lthe PropertyChangeListener to be removed
public void requestFocus()

Properties
public AccessibleAction getAccessibleAction() Details
Gets the AccessibleAction associated with this object if one exists. Otherwise returns null.
returnthe AccessibleAction, or null
public Accessible getAccessibleAt(Point p)
public Accessible getAccessibleChild(int i) Details
Returns the specified Accessible child of the object.
izero-based index of child
returnthe Accessible child of the object
public int getAccessibleChildrenCount() Details
Returns the number of accessible children in the object.
returnthe number of accessible children in the object
public AccessibleComponent getAccessibleComponent() Details
Gets the AccessibleComponent associated with this object if one exists. Otherwise returns null.
returnthe AccessibleComponent, or null
public AccessibleContext getAccessibleContext() Details
Gets the AccessibleContext associated with this component. In the implementation of the Java Accessibility API for this class, return this object, which is its own AccessibleContext.
returnthis object
public void setAccessibleDescription(String s) Details
Sets the accessible description of this object.
sthe new localized description of the object
public String getAccessibleDescription() Details
Gets the accessible description of this object.
returnthe localized description of the object; null if this object does not have a description
public int getAccessibleIndexInParent() Details
Gets the index of this object in its accessible parent.
returnthe index of this object in its parent; -1 if this object does not have an accessible parent
See also getAccessibleParent
public void setAccessibleName(String s) Details
Sets the localized accessible name of this object.
sthe new localized name of the object
public String getAccessibleName() Details
Gets the accessible name of this object.
returnthe localized name of the object; null if this object does not have a name
public Accessible getAccessibleParent() Details
Gets the Accessible parent of this object.
returnthe Accessible parent of this object; null if this object does not have an Accessible parent
public AccessibleRole getAccessibleRole() Details
Gets the role of this object.
returnan instance of AccessibleRole describing the role of the object
See also javax.accessibility.AccessibleRole
public AccessibleSelection getAccessibleSelection() Details
Gets the AccessibleSelection associated with this object if one exists. Otherwise returns null.
returnthe AccessibleSelection, or null
public AccessibleStateSet getAccessibleStateSet() Details
Gets the state set of this object.
returnan instance of AccessibleStateSet containing the current state set of the object
See also javax.accessibility.AccessibleState
public AccessibleText getAccessibleText() Details
Gets the AccessibleText associated with this object if one exists. Otherwise returns null.
returnthe AccessibleText, or null
public AccessibleValue getAccessibleValue() Details
Gets the AccessibleValue associated with this object if one exists. Otherwise returns null.
returnthe AccessibleValue, or null
public void setBackground(Color c) Details
Sets the background color of this object.
cthe new Color for the background
public Color getBackground() Details
Gets the background color of this object.
returnthe background color, if supported, of the object; otherwise, null
public void setBounds(Rectangle r)
public Rectangle getBounds()
protected AccessibleContext getCurrentAccessibleContext() Details
Gets the AccessibleContext for the table cell renderer.
returnthe AccessibleContext for the table cell renderer if one exists; otherwise, returns null.
since1.6
protected Component getCurrentComponent() Details
Gets the table cell renderer component.
returnthe table cell renderer component if one exists; otherwise, returns null.
since1.6
public void setCursor(Cursor c) Details
Sets the Cursor of this object.
cthe new Cursor for the object
public Cursor getCursor() Details
Gets the Cursor of this object.
returnthe Cursor, if supported, of the object; otherwise, null
public void setEnabled(boolean b) Details
Sets the enabled state of the object.
bif true, enables this object; otherwise, disables it
public boolean isEnabled() Details
Determines if the object is enabled.
returntrue if object is enabled; otherwise, false
public boolean isFocusTraversable()
public void setFont(Font f) Details
Sets the Font of this object.
fthe new Font for the object
public Font getFont() Details
Gets the Font of this object.
returnthe Font,if supported, for the object; otherwise, null
public FontMetrics getFontMetrics(Font f) Details
Gets the FontMetrics of this object.
fthe Font
returnthe FontMetrics object, if supported; otherwise null
See also getFont
public void setForeground(Color c) Details
Sets the foreground color of this object.
cthe new Color for the foreground
public Color getForeground() Details
Gets the foreground color of this object.
returnthe foreground color, if supported, of the object; otherwise, null
public Locale getLocale() Details
Gets the locale of the component. If the component does not have a locale, then the locale of its parent is returned.
returnthis component's locale; if this component does not have a locale, the locale of its parent is returned
ThrowsIllegalComponentStateException: 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 parent
See also setLocale
public void setLocation(Point p)
Sets the location of the object relative to the parent.
public Point getLocation() Details
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.
returnan instance of 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 screen
public Point getLocationOnScreen() Details
Returns the location of the object on the screen.
returnlocation of object on screen -- can be null if this object is not on the screen
public boolean isShowing() Details
Determines if the object is showing. This is determined by checking the visibility of the object and ancestors of the object. Note: this will return true even if the object is obscured by another (for example, it happens to be underneath a menu that was pulled down).
returntrue if the object is showing; otherwise, false
public void setSize(Dimension d)
public Dimension getSize()
public void setVisible(boolean b) Details
Sets the visible state of the object.
bif true, shows this object; otherwise, hides it
public boolean isVisible() Details
Determines if this object is visible. Note: this means that the object intends to be visible; however, it may not in fact be showing on the screen because one of the objects that this object is contained by is not visible. To determine if an object is showing on the screen, use isShowing.
returntrue if object is visible; otherwise, false