javax.swing.table
protected class JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry extends AccessibleContext implements Accessible, AccessibleComponent
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 and Description |
---|
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry(int c,
JTableHeader p,
JTable t) |
Modifier and Type | Method and Description |
---|---|
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.
|
firePropertyChange, getAccessibleEditableText, getAccessibleIcon, getAccessibleParent, getAccessibleRelationSet, getAccessibleTable, setAccessibleParent
public JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t)
public void addFocusListener(FocusListener l)
AccessibleComponent
addFocusListener
in interface AccessibleComponent
l
- the listener to add to this componentremoveFocusListener(FocusListener)
public void addPropertyChangeListener(PropertyChangeListener l)
AccessibleContext
addPropertyChangeListener
in class AccessibleContext
l
- the listener to addremovePropertyChangeListener(PropertyChangeListener)
public boolean contains(Point p)
AccessibleComponent
contains
in interface AccessibleComponent
p
- the Point to locateAccessibleComponent.getBounds()
public AccessibleAction getAccessibleAction()
AccessibleContext
getAccessibleAction
in class AccessibleContext
AccessibleAction
public Accessible getAccessibleAt(Point p)
AccessibleComponent
getAccessibleAt
in interface AccessibleComponent
p
- the location within this component's coordinate systempublic Accessible getAccessibleChild(int i)
null
as the header entry has no accessible
children.getAccessibleChild
in class AccessibleContext
i
- the 0-based index to getnull
.AccessibleContext.getAccessibleChildrenCount()
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class AccessibleContext
AccessibleContext.getAccessibleChild(int)
public AccessibleComponent getAccessibleComponent()
getAccessibleComponent
in class AccessibleContext
this
.AccessibleComponent
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
this
.public String getAccessibleDescription()
getAccessibleDescription
in class AccessibleContext
setAccessibleDescription(String)
public int getAccessibleIndexInParent()
getAccessibleIndexInParent
in class AccessibleContext
AccessibleContext.getAccessibleParent()
,
AccessibleContext.getAccessibleChildrenCount()
,
AccessibleContext.getAccessibleChild(int)
public String getAccessibleName()
getAccessibleName
in class AccessibleContext
setAccessibleName(String)
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class AccessibleContext
AccessibleRole
public AccessibleSelection getAccessibleSelection()
AccessibleContext
getAccessibleSelection
in class AccessibleContext
AccessibleSelection
public AccessibleStateSet getAccessibleStateSet()
AccessibleContext
getAccessibleStateSet
in class AccessibleContext
AccessibleState
,
AccessibleStateSet
,
AccessibleContext.addPropertyChangeListener(PropertyChangeListener)
public AccessibleText getAccessibleText()
AccessibleContext
getAccessibleText
in class AccessibleContext
AccessibleText
public AccessibleValue getAccessibleValue()
AccessibleContext
getAccessibleValue
in class AccessibleContext
AccessibleValue
public Color getBackground()
AccessibleComponent
getBackground
in interface AccessibleComponent
AccessibleComponent.setBackground(Color)
public Rectangle getBounds()
AccessibleComponent
getBounds
in interface AccessibleComponent
AccessibleComponent.contains(Point)
public Cursor getCursor()
AccessibleComponent
getCursor
in interface AccessibleComponent
AccessibleComponent.setCursor(Cursor)
public Font getFont()
AccessibleComponent
getFont
in interface AccessibleComponent
AccessibleComponent.setFont(Font)
public FontMetrics getFontMetrics(Font f)
AccessibleComponent
FontMetrics
of the specified font in this component.getFontMetrics
in interface AccessibleComponent
f
- the specified fontAccessibleComponent.getFont()
public Color getForeground()
AccessibleComponent
getForeground
in interface AccessibleComponent
AccessibleComponent.setForeground(Color)
public Locale getLocale()
AccessibleContext
getLocale
in class AccessibleContext
public Point getLocation()
AccessibleComponent
getLocation
in interface AccessibleComponent
AccessibleComponent.getBounds()
,
AccessibleComponent.getLocationOnScreen()
,
AccessibleComponent.setLocation(Point)
public Point getLocationOnScreen()
AccessibleComponent
getLocationOnScreen
in interface AccessibleComponent
AccessibleComponent.getBounds()
,
AccessibleComponent.getLocation()
public Dimension getSize()
AccessibleComponent
getSize
in interface AccessibleComponent
AccessibleComponent.setSize(Dimension)
public boolean isEnabled()
AccessibleComponent
isEnabled
in interface AccessibleComponent
AccessibleComponent.setEnabled(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.ENABLED
public boolean isFocusTraversable()
AccessibleComponent
isFocusTraversable
in interface AccessibleComponent
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.FOCUSABLE
,
AccessibleState.FOCUSED
public boolean isShowing()
AccessibleComponent
isShowing
in interface AccessibleComponent
AccessibleComponent.isVisible()
,
AccessibleComponent.setVisible(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.SHOWING
public boolean isVisible()
AccessibleComponent
isShowing()
to see if the object is on screen.isVisible
in interface AccessibleComponent
AccessibleComponent.setVisible(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.VISIBLE
public void removeFocusListener(FocusListener l)
AccessibleComponent
removeFocusListener
in interface AccessibleComponent
l
- the listener to removeaddFocusListener(FocusListener)
public void removePropertyChangeListener(PropertyChangeListener l)
AccessibleContext
removePropertyChangeListener
in class AccessibleContext
l
- the listener to removeaddPropertyChangeListener(PropertyChangeListener)
public void requestFocus()
AccessibleComponent
requestFocus
in interface AccessibleComponent
addFocusListener(FocusListener)
public void setAccessibleDescription(String s)
AccessibleContext
setAccessibleDescription
in class AccessibleContext
s
- the new descriptiongetAccessibleDescription()
public void setAccessibleName(String s)
AccessibleContext
setAccessibleName
in class AccessibleContext
s
- the new namegetAccessibleName()
public void setBackground(Color c)
AccessibleComponent
setBackground
in interface AccessibleComponent
c
- the color to set the background toAccessibleComponent.getBackground()
public void setBounds(Rectangle r)
AccessibleComponent
setBounds
in interface AccessibleComponent
r
- the new height, width, and relative locationpublic void setCursor(Cursor c)
AccessibleComponent
setCursor
in interface AccessibleComponent
c
- the graphical representation of the cursor to useAccessibleComponent.getCursor()
public void setEnabled(boolean b)
AccessibleComponent
setEnabled
in interface AccessibleComponent
b
- true to enable the component, else disable itAccessibleComponent.isEnabled()
public void setFont(Font f)
AccessibleComponent
setFont
in interface AccessibleComponent
f
- the font to useAccessibleComponent.getFont()
public void setForeground(Color c)
AccessibleComponent
setForeground
in interface AccessibleComponent
c
- the color to set the foreground toAccessibleComponent.getForeground()
public void setLocation(Point p)
AccessibleComponent
setLocation
in interface AccessibleComponent
p
- the top-left corner of this component relative to the parentAccessibleComponent.getLocation()
public void setSize(Dimension d)
AccessibleComponent
setSize
in interface AccessibleComponent
d
- the new size of the componentAccessibleComponent.getSize()
public void setVisible(boolean b)
AccessibleComponent
setVisible
in interface AccessibleComponent
b
- true to make the component visible, else hide itAccessibleComponent.isVisible()