javax.swing.table
Class JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry

java.lang.Object
  extended by javax.accessibility.AccessibleContext
      extended by javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry
All Implemented Interfaces:
Accessible, AccessibleComponent
Enclosing class:
JTableHeader.AccessibleJTableHeader

protected class JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry
extends AccessibleContext
implements Accessible, AccessibleComponent


Field Summary
 
Fields inherited from class javax.accessibility.AccessibleContext
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 Summary
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t)
           
 
Method Summary
 void addFocusListener(FocusListener l)
          Adds the specified listener to this component.
 void addPropertyChangeListener(PropertyChangeListener l)
          Add a PropertyChangeListener to the listener list.
 boolean contains(Point p)
          Tests whether or not the specified point is contained within this component.
 AccessibleAction getAccessibleAction()
          Get any supported accessible actions.
 Accessible getAccessibleAt(Point p)
          If an object exists at the specified point which is a child of this parent component, and it is accessible, then it is returned.
 Accessible getAccessibleChild(int i)
          Returns null as the header entry has no accessible children.
 int getAccessibleChildrenCount()
          Returns the number of accessible children, zero in this case.
 AccessibleComponent getAccessibleComponent()
          Returns the accessible component for this header entry.
 AccessibleContext getAccessibleContext()
          Returns the accessible context for this header entry.
 String getAccessibleDescription()
          Returns the accessible description.
 int getAccessibleIndexInParent()
          Returns the index of this header entry.
 String getAccessibleName()
          Returns the accessible name.
 AccessibleRole getAccessibleRole()
          Returns the accessible role for the header entry.
 AccessibleSelection getAccessibleSelection()
          Get any supported accessible selection.
 AccessibleStateSet getAccessibleStateSet()
          Gets the state set of this object.
 AccessibleText getAccessibleText()
          Get any supported accessible text.
 AccessibleValue getAccessibleValue()
          Get any supported accessible value.
 Color getBackground()
          Get the background color of this component.
 Rectangle getBounds()
          Get the bounds of this component relative to its parent - it's width, height, and relative location to its parent.
 Cursor getCursor()
          Get the cursor of this component.
 Font getFont()
          Get the font of this component
 FontMetrics getFontMetrics(Font f)
          Get the FontMetrics of the specified font in this component.
 Color getForeground()
          Get the foreground color of this component.
 Locale getLocale()
          Gets the component locale, deferring to the parent if one is not declared.
 Point getLocation()
          Get the location of this component in the parent's coordinate system.
 Point getLocationOnScreen()
          Get the location of this component in the screen's coordinate space.
 Dimension getSize()
          Get the size of this component - it's width and height.
 boolean isEnabled()
          Indicates whether or not this component is enabled.
 boolean isFocusTraversable()
          Indicates whether or not this component can accept focus.
 boolean isShowing()
          Indicates whether or not this component is visible by checking the visibility of this component and its ancestors.
 boolean isVisible()
          Indicates whether or not this component is visible or intends to be visible although one of its ancestors may not be.
 void removeFocusListener(FocusListener l)
          Removes the specified listener from this component.
 void removePropertyChangeListener(PropertyChangeListener l)
          Remove a PropertyChangeListener from the listener list.
 void requestFocus()
          If this method is called this component will attempt to gain focus, but if it cannot accept focus nothing happens.
 void setAccessibleDescription(String s)
          Set the localized name of the object.
 void setAccessibleName(String s)
          Set the localized name of the object.
 void setBackground(Color c)
          Set the background color of this component to the specified color.
 void setBounds(Rectangle r)
          Set the bounds of this component to the specified height and width, and relative location to its parent.
 void setCursor(Cursor c)
          Set the cursor of the component.
 void setEnabled(boolean b)
          Set this component to an enabled or disabled state.
 void setFont(Font f)
          Set the font of this component.
 void setForeground(Color c)
          Set the foreground color of this component.
 void setLocation(Point p)
          Set the location of this component relative to its parent.
 void setSize(Dimension d)
          Set the size of this component to the given dimensions.
 void setVisible(boolean b)
          Set the visible state of this component.
 
Methods inherited from class javax.accessibility.AccessibleContext
firePropertyChange, getAccessibleEditableText, getAccessibleIcon, getAccessibleParent, getAccessibleRelationSet, getAccessibleTable, setAccessibleParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry

public JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry(int c,
                                                                       JTableHeader p,
                                                                       JTable t)
Method Detail

addFocusListener

public void addFocusListener(FocusListener l)
Description copied from interface: AccessibleComponent
Adds the specified listener to this component.

Specified by:
addFocusListener in interface AccessibleComponent
Parameters:
l - the listener to add to this component
See Also:
removeFocusListener(FocusListener)

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Description copied from class: AccessibleContext
Add a PropertyChangeListener to the listener list. This listener will be notified of all property changes to the accessible object.

Overrides:
addPropertyChangeListener in class AccessibleContext
Parameters:
l - the listener to add
See Also:
removePropertyChangeListener(PropertyChangeListener)

contains

public boolean contains(Point p)
Description copied from interface: AccessibleComponent
Tests whether or not the specified point is contained within this component. The coordinates are specified relative to this component's coordinate system.

Specified by:
contains in interface AccessibleComponent
Parameters:
p - the Point to locate
Returns:
true if the point is within this component
See Also:
AccessibleComponent.getBounds()

getAccessibleAction

public AccessibleAction getAccessibleAction()
Description copied from class: AccessibleContext
Get any supported accessible actions. The default implementation returns null.

Overrides:
getAccessibleAction in class AccessibleContext
Returns:
the supported action, or null
See Also:
AccessibleAction

getAccessibleAt

public Accessible getAccessibleAt(Point p)
Description copied from interface: AccessibleComponent
If an object exists at the specified point which is a child of this parent component, and it is accessible, then it is returned.

Specified by:
getAccessibleAt in interface AccessibleComponent
Parameters:
p - the location within this component's coordinate system
Returns:
the accessible child object at that point, or null

getAccessibleChild

public Accessible getAccessibleChild(int i)
Returns null as the header entry has no accessible children.

Specified by:
getAccessibleChild in class AccessibleContext
Parameters:
i - the 0-based index to get
Returns:
null.
See Also:
AccessibleContext.getAccessibleChildrenCount()

getAccessibleChildrenCount

public int getAccessibleChildrenCount()
Returns the number of accessible children, zero in this case.

Specified by:
getAccessibleChildrenCount in class AccessibleContext
Returns:
0
See Also:
AccessibleContext.getAccessibleChild(int)

getAccessibleComponent

public AccessibleComponent getAccessibleComponent()
Returns the accessible component for this header entry.

Overrides:
getAccessibleComponent in class AccessibleContext
Returns:
this.
See Also:
AccessibleComponent

getAccessibleContext

public AccessibleContext getAccessibleContext()
Returns the accessible context for this header entry.

Specified by:
getAccessibleContext in interface Accessible
Returns:
this.

getAccessibleDescription

public String getAccessibleDescription()
Returns the accessible description.

Overrides:
getAccessibleDescription in class AccessibleContext
Returns:
The accessible description.
See Also:
setAccessibleDescription(String)

getAccessibleIndexInParent

public int getAccessibleIndexInParent()
Returns the index of this header entry.

Specified by:
getAccessibleIndexInParent in class AccessibleContext
Returns:
The index of this header entry.
See Also:
AccessibleContext.getAccessibleParent(), AccessibleContext.getAccessibleChildrenCount(), AccessibleContext.getAccessibleChild(int)

getAccessibleName

public String getAccessibleName()
Returns the accessible name.

Overrides:
getAccessibleName in class AccessibleContext
Returns:
The accessible name.
See Also:
setAccessibleName(String)

getAccessibleRole

public AccessibleRole getAccessibleRole()
Returns the accessible role for the header entry.

Specified by:
getAccessibleRole in class AccessibleContext
Returns:
The accessible role.
See Also:
AccessibleRole

getAccessibleSelection

public AccessibleSelection getAccessibleSelection()
Description copied from class: AccessibleContext
Get any supported accessible selection. The default implementation returns null.

Overrides:
getAccessibleSelection in class AccessibleContext
Returns:
the supported selection, or null
See Also:
AccessibleSelection

getAccessibleStateSet

public AccessibleStateSet getAccessibleStateSet()
Description copied from class: AccessibleContext
Gets the state set of this object. A change in the state of the object will fire a PropertyChangeEvent for ACCESSIBLE_STATE_PROPERTY.

Specified by:
getAccessibleStateSet in class AccessibleContext
Returns:
the current state of the object
See Also:
AccessibleState, AccessibleStateSet, AccessibleContext.addPropertyChangeListener(PropertyChangeListener)

getAccessibleText

public AccessibleText getAccessibleText()
Description copied from class: AccessibleContext
Get any supported accessible text. The default implementation returns null.

Overrides:
getAccessibleText in class AccessibleContext
Returns:
the supported text, or null
See Also:
AccessibleText

getAccessibleValue

public AccessibleValue getAccessibleValue()
Description copied from class: AccessibleContext
Get any supported accessible value. The default implementation returns null.

Overrides:
getAccessibleValue in class AccessibleContext
Returns:
the supported value, or null
See Also:
AccessibleValue

getBackground

public Color getBackground()
Description copied from interface: AccessibleComponent
Get the background color of this component.

Specified by:
getBackground in interface AccessibleComponent
Returns:
the background color of this component, or null if not supported
See Also:
AccessibleComponent.setBackground(Color)

getBounds

public Rectangle getBounds()
Description copied from interface: AccessibleComponent
Get the bounds of this component relative to its parent - it's width, height, and relative location to its parent.

Specified by:
getBounds in interface AccessibleComponent
Returns:
the bounds of this component, or null if not on screen
See Also:
AccessibleComponent.contains(Point)

getCursor

public Cursor getCursor()
Description copied from interface: AccessibleComponent
Get the cursor of this component.

Specified by:
getCursor in interface AccessibleComponent
Returns:
the Cursor of this component, or null if not supported
See Also:
AccessibleComponent.setCursor(Cursor)

getFont

public Font getFont()
Description copied from interface: AccessibleComponent
Get the font of this component

Specified by:
getFont in interface AccessibleComponent
Returns:
the font of the component, or null if not supported
See Also:
AccessibleComponent.setFont(Font)

getFontMetrics

public FontMetrics getFontMetrics(Font f)
Description copied from interface: AccessibleComponent
Get the FontMetrics of the specified font in this component.

Specified by:
getFontMetrics in interface AccessibleComponent
Parameters:
f - the specified font
Returns:
the metrics for the specified font, or null if not supported
See Also:
AccessibleComponent.getFont()

getForeground

public Color getForeground()
Description copied from interface: AccessibleComponent
Get the foreground color of this component.

Specified by:
getForeground in interface AccessibleComponent
Returns:
the foreground color of this component, or null if not supported
See Also:
AccessibleComponent.setForeground(Color)

getLocale

public Locale getLocale()
Description copied from class: AccessibleContext
Gets the component locale, deferring to the parent if one is not declared.

Specified by:
getLocale in class AccessibleContext
Returns:
the locale

getLocation

public Point getLocation()
Description copied from interface: AccessibleComponent
Get the location of this component in the parent's coordinate system. The point specified is the top-left corner of this component.

Specified by:
getLocation in interface AccessibleComponent
Returns:
the location in the parent on screen, or null if off-screen
See Also:
AccessibleComponent.getBounds(), AccessibleComponent.getLocationOnScreen(), AccessibleComponent.setLocation(Point)

getLocationOnScreen

public Point getLocationOnScreen()
Description copied from interface: AccessibleComponent
Get the location of this component in the screen's coordinate space. The point specified is the top-left corner of this component.

Specified by:
getLocationOnScreen in interface AccessibleComponent
Returns:
the location on screen, or null if off-screen
See Also:
AccessibleComponent.getBounds(), AccessibleComponent.getLocation()

getSize

public Dimension getSize()
Description copied from interface: AccessibleComponent
Get the size of this component - it's width and height.

Specified by:
getSize in interface AccessibleComponent
Returns:
the dimensions of this component, or null if not on screen
See Also:
AccessibleComponent.setSize(Dimension)

isEnabled

public boolean isEnabled()
Description copied from interface: AccessibleComponent
Indicates whether or not this component is enabled. An object which is enabled also has AccessibleState.ENABLED in its StateSet.

Specified by:
isEnabled in interface AccessibleComponent
Returns:
true if the component is enabled
See Also:
AccessibleComponent.setEnabled(boolean), AccessibleContext.getAccessibleStateSet(), AccessibleState.ENABLED

isFocusTraversable

public boolean isFocusTraversable()
Description copied from interface: AccessibleComponent
Indicates whether or not this component can accept focus. An object which can accept focus also has AccessibleState.FOCUSABLE in its StateSet.

Specified by:
isFocusTraversable in interface AccessibleComponent
Returns:
true if the component can accept focus
See Also:
AccessibleContext.getAccessibleStateSet(), AccessibleState.FOCUSABLE, AccessibleState.FOCUSED

isShowing

public boolean isShowing()
Description copied from interface: AccessibleComponent
Indicates whether or not this component is visible by checking the visibility of this component and its ancestors. The component may be hidden on screen by another component like pop-up help. An object which is showing on screen also has AccessibleState.SHOWING in its StateSet.

Specified by:
isShowing in interface AccessibleComponent
Returns:
true if component and ancestors are visible
See Also:
AccessibleComponent.isVisible(), AccessibleComponent.setVisible(boolean), AccessibleContext.getAccessibleStateSet(), AccessibleState.SHOWING

isVisible

public boolean isVisible()
Description copied from interface: AccessibleComponent
Indicates whether or not this component is visible or intends to be visible although one of its ancestors may not be. An object which is visible also has AccessibleState.VISIBLE in its StateSet. Check isShowing() to see if the object is on screen.

Specified by:
isVisible in interface AccessibleComponent
Returns:
true if the component is visible
See Also:
AccessibleComponent.setVisible(boolean), AccessibleContext.getAccessibleStateSet(), AccessibleState.VISIBLE

removeFocusListener

public void removeFocusListener(FocusListener l)
Description copied from interface: AccessibleComponent
Removes the specified listener from this component.

Specified by:
removeFocusListener in interface AccessibleComponent
Parameters:
l - the listener to remove
See Also:
addFocusListener(FocusListener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Description copied from class: AccessibleContext
Remove a PropertyChangeListener from the listener list.

Overrides:
removePropertyChangeListener in class AccessibleContext
Parameters:
l - the listener to remove
See Also:
addPropertyChangeListener(PropertyChangeListener)

requestFocus

public void requestFocus()
Description copied from interface: AccessibleComponent
If this method is called this component will attempt to gain focus, but if it cannot accept focus nothing happens. On success, the StateSet will contain AccessibleState.FOCUSED

Specified by:
requestFocus in interface AccessibleComponent
See Also:
addFocusListener(FocusListener)

setAccessibleDescription

public void setAccessibleDescription(String s)
Description copied from class: AccessibleContext
Set the localized name of the object. This will fire a PropertyChangeEvent with ACCESSIBLE_DESCRIPTION_PROPERTY.

Overrides:
setAccessibleDescription in class AccessibleContext
Parameters:
s - the new description
See Also:
getAccessibleDescription()

setAccessibleName

public void setAccessibleName(String s)
Description copied from class: AccessibleContext
Set the localized name of the object. This will fire a PropertyChangeEvent with ACCESSIBLE_NAME_PROPERTY.

Overrides:
setAccessibleName in class AccessibleContext
Parameters:
s - the new name
See Also:
getAccessibleName()

setBackground

public void setBackground(Color c)
Description copied from interface: AccessibleComponent
Set the background color of this component to the specified color.

Specified by:
setBackground in interface AccessibleComponent
Parameters:
c - the color to set the background to
See Also:
AccessibleComponent.getBackground()

setBounds

public void setBounds(Rectangle r)
Description copied from interface: AccessibleComponent
Set the bounds of this component to the specified height and width, and relative location to its parent.

Specified by:
setBounds in interface AccessibleComponent
Parameters:
r - the new height, width, and relative location

setCursor

public void setCursor(Cursor c)
Description copied from interface: AccessibleComponent
Set the cursor of the component.

Specified by:
setCursor in interface AccessibleComponent
Parameters:
c - the graphical representation of the cursor to use
See Also:
AccessibleComponent.getCursor()

setEnabled

public void setEnabled(boolean b)
Description copied from interface: AccessibleComponent
Set this component to an enabled or disabled state.

Specified by:
setEnabled in interface AccessibleComponent
Parameters:
b - true to enable the component, else disable it
See Also:
AccessibleComponent.isEnabled()

setFont

public void setFont(Font f)
Description copied from interface: AccessibleComponent
Set the font of this component.

Specified by:
setFont in interface AccessibleComponent
Parameters:
f - the font to use
See Also:
AccessibleComponent.getFont()

setForeground

public void setForeground(Color c)
Description copied from interface: AccessibleComponent
Set the foreground color of this component.

Specified by:
setForeground in interface AccessibleComponent
Parameters:
c - the color to set the foreground to
See Also:
AccessibleComponent.getForeground()

setLocation

public void setLocation(Point p)
Description copied from interface: AccessibleComponent
Set the location of this component relative to its parent. The point specified represents the top-left corner of this component.

Specified by:
setLocation in interface AccessibleComponent
Parameters:
p - the top-left corner of this component relative to the parent
See Also:
AccessibleComponent.getLocation()

setSize

public void setSize(Dimension d)
Description copied from interface: AccessibleComponent
Set the size of this component to the given dimensions.

Specified by:
setSize in interface AccessibleComponent
Parameters:
d - the new size of the component
See Also:
AccessibleComponent.getSize()

setVisible

public void setVisible(boolean b)
Description copied from interface: AccessibleComponent
Set the visible state of this component.

Specified by:
setVisible in interface AccessibleComponent
Parameters:
b - true to make the component visible, else hide it
See Also:
AccessibleComponent.isVisible()