This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing
class JTable.AccessibleJTable.AccessibleJTableCell

java.lang.Object extended by javax.accessibility.AccessibleContext extended by javax.swing.JTable.AccessibleJTable.AccessibleJTableCell
All Implemented Interfaces:
Accessible, AccessibleComponent
Enclosing class:
JTable.AccessibleJTable

protected class JTable.AccessibleJTable.AccessibleJTableCell
extends AccessibleContext
implements Accessible, AccessibleComponent

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


Field Summary
 
Fields inherited from class javax.accessibility.AccessibleContext
accessibleDescription, accessibleName, accessibleParent, 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
 
Constructor Summary

          Constructs an AccessibleJTableHeaderEntry.
 
Method Summary
 void

          
 void

          Adds a PropertyChangeListener to the listener list.
 boolean

          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.
 AccessibleAction

          Gets the AccessibleAction associated with this object if one exists.
 Accessible

          
 Accessible

          Returns the specified Accessible child of the object.
 int

          Returns the number of accessible children in the object.
 AccessibleComponent

          Gets the AccessibleComponent associated with this object if one exists.
 AccessibleContext

          Gets the AccessibleContext associated with this component.
 String

          Gets the accessible description of this object.
 int

          Gets the index of this object in its accessible parent.
 String

          Gets the accessible name of this object.
 Accessible

          Gets the Accessible parent of this object.
 AccessibleRole

          Gets the role of this object.
 AccessibleSelection

          Gets the AccessibleSelection associated with this object if one exists.
 AccessibleStateSet

          Gets the state set of this object.
 AccessibleText

          Gets the AccessibleText associated with this object if one exists.
 AccessibleValue

          Gets the AccessibleValue associated with this object if one exists.
 Color

          Gets the background color of this object.
 Rectangle

          
protected AccessibleContext

          Gets the AccessibleContext for the table cell renderer.
protected Component

          Gets the table cell renderer component.
 Cursor

          Gets the Cursor of this object.
 Font

          Gets the Font of this object.
 FontMetrics

          Gets the FontMetrics of this object.
 Color

          Gets the foreground color of this object.
 Locale

          Gets the locale of the component.
 Point

          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.
 Point

          Returns the location of the object on the screen.
 Dimension

          
 boolean

          Determines if the object is enabled.
 boolean

          
 boolean

          Determines if the object is showing.
 boolean

          Determines if this object is visible.
 void

          
 void

          Removes a PropertyChangeListener from the listener list.
 void

          
 void

          Sets the accessible description of this object.
 void

          Sets the localized accessible name of this object.
 void

          Sets the background color of this object.
 void

          
 void

          Sets the Cursor of this object.
 void
setEnabled(boolean b)

          Sets the enabled state of the object.
 void

          Sets the Font of this object.
 void

          Sets the foreground color of this object.
 void

          Sets the location of the object relative to the parent.
 void

          
 void
setVisible(boolean b)

          Sets the visible state of the object.
 
Methods inherited from class javax.accessibility.AccessibleContext
addPropertyChangeListener, firePropertyChange, getAccessibleAction, getAccessibleChild, getAccessibleChildrenCount, getAccessibleComponent, getAccessibleDescription, getAccessibleEditableText, getAccessibleIcon, getAccessibleIndexInParent, getAccessibleName, getAccessibleParent, getAccessibleRelationSet, getAccessibleRole, getAccessibleSelection, getAccessibleStateSet, getAccessibleTable, getAccessibleText, getAccessibleValue, getLocale, removePropertyChangeListener, setAccessibleDescription, setAccessibleName, setAccessibleParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTable.AccessibleJTable.AccessibleJTableCell

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

Parameters:
t
r
c
i
Method Detail

addFocusListener

public void addFocusListener(FocusListener l)
Parameters:
l

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties.

Overrides:
addPropertyChangeListener in class AccessibleContext
Parameters:
l - the PropertyChangeListener to be added

contains

public boolean contains(Point p)
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.

Parameters:
p - the Point relative to the coordinate system of the object
Returns:
true if object contains Point; otherwise false

getAccessibleAction

public AccessibleAction getAccessibleAction()
Gets the AccessibleAction associated with this object if one exists. Otherwise returns null.

Overrides:
getAccessibleAction in class AccessibleContext
Returns:
the AccessibleAction, or null

getAccessibleAt

public Accessible getAccessibleAt(Point p)
Parameters:
p

getAccessibleChild

public Accessible getAccessibleChild(int i)
Returns the specified Accessible child of the object.

Overrides:
getAccessibleChild in class AccessibleContext
Parameters:
i - zero-based index of child
Returns:
the Accessible child of the object

getAccessibleChildrenCount

public int getAccessibleChildrenCount()
Returns the number of accessible children in the object.

Overrides:
getAccessibleChildrenCount in class AccessibleContext
Returns:
the number of accessible children in the object

getAccessibleComponent

public AccessibleComponent getAccessibleComponent()
Gets the AccessibleComponent associated with this object if one exists. Otherwise returns null.

Overrides:
getAccessibleComponent in class AccessibleContext
Returns:
the AccessibleComponent, or null

getAccessibleContext

public AccessibleContext getAccessibleContext()
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.

Returns:
this object

getAccessibleDescription

public String getAccessibleDescription()
Gets the accessible description of this object.

Overrides:
getAccessibleDescription in class AccessibleContext
Returns:
the localized description of the object; null if this object does not have a description

getAccessibleIndexInParent

public int getAccessibleIndexInParent()
Gets the index of this object in its accessible parent.

Overrides:
getAccessibleIndexInParent in class AccessibleContext
Returns:
the index of this object in its parent; -1 if this object does not have an accessible parent

getAccessibleName

public String getAccessibleName()
Gets the accessible name of this object.

Overrides:
getAccessibleName in class AccessibleContext
Returns:
the localized name of the object; null if this object does not have a name

getAccessibleParent

public Accessible getAccessibleParent()
Gets the Accessible parent of this object.

Overrides:
getAccessibleParent in class AccessibleContext
Returns:
the Accessible parent of this object; null if this object does not have an Accessible parent

getAccessibleRole

public AccessibleRole getAccessibleRole()
Gets the role of this object.

Overrides:
getAccessibleRole in class AccessibleContext
Returns:
an instance of AccessibleRole describing the role of the object

getAccessibleSelection

public AccessibleSelection getAccessibleSelection()
Gets the AccessibleSelection associated with this object if one exists. Otherwise returns null.

Overrides:
getAccessibleSelection in class AccessibleContext
Returns:
the AccessibleSelection, or null

getAccessibleStateSet

public AccessibleStateSet getAccessibleStateSet()
Gets the state set of this object.

Overrides:
getAccessibleStateSet in class AccessibleContext
Returns:
an instance of AccessibleStateSet containing the current state set of the object

getAccessibleText

public AccessibleText getAccessibleText()
Gets the AccessibleText associated with this object if one exists. Otherwise returns null.

Overrides:
getAccessibleText in class AccessibleContext
Returns:
the AccessibleText, or null

getAccessibleValue

public AccessibleValue getAccessibleValue()
Gets the AccessibleValue associated with this object if one exists. Otherwise returns null.

Overrides:
getAccessibleValue in class AccessibleContext
Returns:
the AccessibleValue, or null

getBackground

public Color getBackground()
Gets the background color of this object.

Returns:
the background color, if supported, of the object; otherwise, null

getBounds

public Rectangle getBounds()

getCurrentAccessibleContext

protected AccessibleContext getCurrentAccessibleContext()
Gets the AccessibleContext for the table cell renderer.

Returns:
the AccessibleContext for the table cell renderer if one exists; otherwise, returns null.

getCurrentComponent

protected Component getCurrentComponent()
Gets the table cell renderer component.

Returns:
the table cell renderer component if one exists; otherwise, returns null.

getCursor

public Cursor getCursor()
Gets the Cursor of this object.

Returns:
the Cursor, if supported, of the object; otherwise, null

getFont

public Font getFont()
Gets the Font of this object.

Returns:
the Font,if supported, for the object; otherwise, null

getFontMetrics

public FontMetrics getFontMetrics(Font f)
Gets the FontMetrics of this object.

Parameters:
f - the Font
Returns:
the FontMetrics object, if supported; otherwise null

getForeground

public Color getForeground()
Gets the foreground color of this object.

Returns:
the foreground color, if supported, of the object; otherwise, null

getLocale

public Locale getLocale()
Gets the locale of the component. If the component does not have a locale, then the locale of its parent is returned.

Overrides:
getLocale in class AccessibleContext
Returns:
this component's locale; if this component does not have a locale, the locale of its parent is returned

getLocation

public Point getLocation()
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.

Returns:
an 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

getLocationOnScreen

public Point getLocationOnScreen()
Returns the location of the object on the screen.

Returns:
location of object on screen -- can be null if this object is not on the screen

getSize

public Dimension getSize()

isEnabled

public boolean isEnabled()
Determines if the object is enabled.

Returns:
true if object is enabled; otherwise, false

isFocusTraversable

public boolean isFocusTraversable()

isShowing

public boolean isShowing()
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).

Returns:
true if the object is showing; otherwise, false

isVisible

public boolean isVisible()
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.

Returns:
true if object is visible; otherwise, false

removeFocusListener

public void removeFocusListener(FocusListener l)
Parameters:
l

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.

Overrides:
removePropertyChangeListener in class AccessibleContext
Parameters:
l - the PropertyChangeListener to be removed

requestFocus

public void requestFocus()

setAccessibleDescription

public void setAccessibleDescription(String s)
Sets the accessible description of this object.

Overrides:
setAccessibleDescription in class AccessibleContext
Parameters:
s - the new localized description of the object

setAccessibleName

public void setAccessibleName(String s)
Sets the localized accessible name of this object.

Overrides:
setAccessibleName in class AccessibleContext
Parameters:
s - the new localized name of the object

setBackground

public void setBackground(Color c)
Sets the background color of this object.

Parameters:
c - the new Color for the background

setBounds

public void setBounds(Rectangle r)
Parameters:
r

setCursor

public void setCursor(Cursor c)
Sets the Cursor of this object.

Parameters:
c - the new Cursor for the object

setEnabled

public void setEnabled(boolean b)
Sets the enabled state of the object.

Parameters:
b - if true, enables this object; otherwise, disables it

setFont

public void setFont(Font f)
Sets the Font of this object.

Parameters:
f - the new Font for the object

setForeground

public void setForeground(Color c)
Sets the foreground color of this object.

Parameters:
c - the new Color for the foreground

setLocation

public void setLocation(Point p)
Sets the location of the object relative to the parent.

Parameters:
p

setSize

public void setSize(Dimension d)
Parameters:
d

setVisible

public void setVisible(boolean b)
Sets the visible state of the object.

Parameters:
b - if true, shows this object; otherwise, hides it


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.