javax.swing.table
Class JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry

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

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

This class provides an implementation of the Java Accessibility API appropropriate for JTableHeader entries.


Field Summary
private  int column
           
private  JTableHeader parent
           
private  JTable table
           
 
Fields inherited from class javax.accessibility.AccessibleContext
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, 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_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent
 
Constructor Summary
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t)
          Constructs an AccessiblJTableHeaaderEntry
 
Method Summary
 void addFocusListener(FocusListener l)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 boolean contains(Point p)
           
 javax.accessibility.AccessibleAction getAccessibleAction()
           
 javax.accessibility.Accessible getAccessibleAt(Point p)
           
 javax.accessibility.Accessible getAccessibleChild(int i)
           
 int getAccessibleChildrenCount()
           
 javax.accessibility.AccessibleComponent getAccessibleComponent()
          Get the AccessibleComponent associated with this object.
 javax.accessibility.AccessibleContext getAccessibleContext()
          Get the AccessibleContext associated with this object.
 String getAccessibleDescription()
           
 int getAccessibleIndexInParent()
           
 String getAccessibleName()
           
 javax.accessibility.AccessibleRole getAccessibleRole()
           
 javax.accessibility.AccessibleSelection getAccessibleSelection()
           
 javax.accessibility.AccessibleStateSet getAccessibleStateSet()
           
 javax.accessibility.AccessibleText getAccessibleText()
           
 javax.accessibility.AccessibleValue getAccessibleValue()
           
 Color getBackground()
           
 Rectangle getBounds()
           
private  javax.accessibility.AccessibleContext getCurrentAccessibleContext()
           
private  Component getCurrentComponent()
           
 Cursor getCursor()
           
 Font getFont()
           
 FontMetrics getFontMetrics(Font f)
           
 Color getForeground()
           
 Locale getLocale()
           
 Point getLocation()
           
 Point getLocationOnScreen()
           
 Dimension getSize()
           
 boolean isEnabled()
           
 boolean isFocusTraversable()
           
 boolean isShowing()
           
 boolean isVisible()
           
 void removeFocusListener(FocusListener l)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void requestFocus()
           
 void setAccessibleDescription(String s)
           
 void setAccessibleName(String s)
           
 void setBackground(Color c)
           
 void setBounds(Rectangle r)
           
 void setCursor(Cursor c)
           
 void setEnabled(boolean b)
           
 void setFont(Font f)
           
 void setForeground(Color c)
           
 void setLocation(Point p)
           
 void setSize(Dimension d)
           
 void setVisible(boolean b)
           
 
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
 

Field Detail

parent

private JTableHeader parent

column

private int column

table

private JTable table
Constructor Detail

JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry

public JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry(int c,
                                                                       JTableHeader p,
                                                                       JTable t)
Constructs an AccessiblJTableHeaaderEntry

Method Detail

getAccessibleContext

public javax.accessibility.AccessibleContext getAccessibleContext()
Get the AccessibleContext associated with this object. In the implementation of the Java Accessibility API for this class, returns this object, which serves as its own AccessibleContext.

Specified by:
getAccessibleContext in interface javax.accessibility.Accessible
Returns:
this object

getCurrentAccessibleContext

private javax.accessibility.AccessibleContext getCurrentAccessibleContext()

getCurrentComponent

private Component getCurrentComponent()

getAccessibleName

public String getAccessibleName()

setAccessibleName

public void setAccessibleName(String s)

getAccessibleDescription

public String getAccessibleDescription()

setAccessibleDescription

public void setAccessibleDescription(String s)

getAccessibleRole

public javax.accessibility.AccessibleRole getAccessibleRole()

getAccessibleStateSet

public javax.accessibility.AccessibleStateSet getAccessibleStateSet()

getAccessibleIndexInParent

public int getAccessibleIndexInParent()

getAccessibleChildrenCount

public int getAccessibleChildrenCount()

getAccessibleChild

public javax.accessibility.Accessible getAccessibleChild(int i)

getLocale

public Locale getLocale()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

getAccessibleAction

public javax.accessibility.AccessibleAction getAccessibleAction()

getAccessibleComponent

public javax.accessibility.AccessibleComponent getAccessibleComponent()
Get the AccessibleComponent associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleComponent interface on behalf of itself.

Returns:
this object

getAccessibleSelection

public javax.accessibility.AccessibleSelection getAccessibleSelection()

getAccessibleText

public javax.accessibility.AccessibleText getAccessibleText()

getAccessibleValue

public javax.accessibility.AccessibleValue getAccessibleValue()

getBackground

public Color getBackground()
Specified by:
getBackground in interface javax.accessibility.AccessibleComponent

setBackground

public void setBackground(Color c)
Specified by:
setBackground in interface javax.accessibility.AccessibleComponent

getForeground

public Color getForeground()
Specified by:
getForeground in interface javax.accessibility.AccessibleComponent

setForeground

public void setForeground(Color c)
Specified by:
setForeground in interface javax.accessibility.AccessibleComponent

getCursor

public Cursor getCursor()
Specified by:
getCursor in interface javax.accessibility.AccessibleComponent

setCursor

public void setCursor(Cursor c)
Specified by:
setCursor in interface javax.accessibility.AccessibleComponent

getFont

public Font getFont()
Specified by:
getFont in interface javax.accessibility.AccessibleComponent

setFont

public void setFont(Font f)
Specified by:
setFont in interface javax.accessibility.AccessibleComponent

getFontMetrics

public FontMetrics getFontMetrics(Font f)
Specified by:
getFontMetrics in interface javax.accessibility.AccessibleComponent

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface javax.accessibility.AccessibleComponent

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface javax.accessibility.AccessibleComponent

isVisible

public boolean isVisible()
Specified by:
isVisible in interface javax.accessibility.AccessibleComponent

setVisible

public void setVisible(boolean b)
Specified by:
setVisible in interface javax.accessibility.AccessibleComponent

isShowing

public boolean isShowing()
Specified by:
isShowing in interface javax.accessibility.AccessibleComponent

contains

public boolean contains(Point p)
Specified by:
contains in interface javax.accessibility.AccessibleComponent

getLocationOnScreen

public Point getLocationOnScreen()
Specified by:
getLocationOnScreen in interface javax.accessibility.AccessibleComponent

getLocation

public Point getLocation()
Specified by:
getLocation in interface javax.accessibility.AccessibleComponent

setLocation

public void setLocation(Point p)
Specified by:
setLocation in interface javax.accessibility.AccessibleComponent

getBounds

public Rectangle getBounds()
Specified by:
getBounds in interface javax.accessibility.AccessibleComponent

setBounds

public void setBounds(Rectangle r)
Specified by:
setBounds in interface javax.accessibility.AccessibleComponent

getSize

public Dimension getSize()
Specified by:
getSize in interface javax.accessibility.AccessibleComponent

setSize

public void setSize(Dimension d)
Specified by:
setSize in interface javax.accessibility.AccessibleComponent

getAccessibleAt

public javax.accessibility.Accessible getAccessibleAt(Point p)
Specified by:
getAccessibleAt in interface javax.accessibility.AccessibleComponent

isFocusTraversable

public boolean isFocusTraversable()
Specified by:
isFocusTraversable in interface javax.accessibility.AccessibleComponent

requestFocus

public void requestFocus()
Specified by:
requestFocus in interface javax.accessibility.AccessibleComponent

addFocusListener

public void addFocusListener(FocusListener l)
Specified by:
addFocusListener in interface javax.accessibility.AccessibleComponent

removeFocusListener

public void removeFocusListener(FocusListener l)
Specified by:
removeFocusListener in interface javax.accessibility.AccessibleComponent