GNU Classpath (0.20) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.accessibility.AccessibleContext
javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry
protected class JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry
extends AccessibleContext
implements Accessible, AccessibleComponent
Field Summary |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
boolean | |
AccessibleAction |
|
Accessible |
|
Accessible |
|
int |
|
AccessibleComponent |
|
AccessibleContext |
|
String |
|
int |
|
String |
|
AccessibleRole |
|
AccessibleSelection |
|
AccessibleStateSet |
|
AccessibleText |
|
AccessibleValue |
|
Color |
|
Rectangle |
|
Cursor |
|
Font |
|
FontMetrics |
|
Color |
|
Locale |
|
Point |
|
Point |
|
Dimension |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
|
void | |
void |
|
void |
|
void | |
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void addFocusListener(FocusListener l)
Adds the specified listener to this component.
- Specified by:
- addFocusListener in interface AccessibleComponent
- Parameters:
public void addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to the listener list. This listener will be notified of all property changes to the accessible object.
- Overrides:
- addPropertyChangeListener in interface AccessibleContext
- Parameters:
l
- the listener to add
- See Also:
AccessibleContext.ACCESSIBLE_NAME_PROPERTY
,AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY
,AccessibleContext.ACCESSIBLE_STATE_PROPERTY
,AccessibleContext.ACCESSIBLE_VALUE_PROPERTY
,AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY
,AccessibleContext.ACCESSIBLE_TEXT_PROPERTY
,AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
,AccessibleContext.removePropertyChangeListener(PropertyChangeListener)
public boolean contains(Point p)
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:
- Returns:
- true if the point is within this component
- Throws:
NullPointerException
- if point is null
- See Also:
AccessibleComponent.getBounds()
public AccessibleAction getAccessibleAction()
Get any supported accessible actions. The default implementation returns null.
- Overrides:
- getAccessibleAction in interface AccessibleContext
- Returns:
- the supported action, or null
- See Also:
AccessibleAction
public 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.
- Specified by:
- getAccessibleAt in interface AccessibleComponent
- Parameters:
- Returns:
- the accessible child object at that point, or null
public Accessible getAccessibleChild(int i)
Returns the specified accessible chile.
- Overrides:
- getAccessibleChild in interface AccessibleContext
- Parameters:
i
- the 0-based index to get
- Returns:
- the child, or null if out of bounds
public int getAccessibleChildrenCount()
Returns the number of accessible children of this object.
- Overrides:
- getAccessibleChildrenCount in interface AccessibleContext
- Returns:
- the number of accessible children
public AccessibleComponent getAccessibleComponent()
Get any supported accessible compoent. The default implementation returns null.
- Overrides:
- getAccessibleComponent in interface AccessibleContext
- Returns:
- the supported component, or null
- See Also:
AccessibleComponent
public AccessibleContext getAccessibleContext()
If a component supports the Accessibility API then this method should not returnnull
. Only classes which must extend an accessible class, but must not itself be accessible, may return null.
- Specified by:
- getAccessibleContext in interface Accessible
- Returns:
- the context associated with this accessible object
public String getAccessibleDescription()
Get the localized description of the object. For example, a 'Cancel' button may be described as "Ignore changes and close dialog box" in en_US.
- Overrides:
- getAccessibleDescription in interface AccessibleContext
- Returns:
- the accessible object's description, or null if there is none
public int getAccessibleIndexInParent()
Gets the index of this object within its accessible parent.
- Overrides:
- getAccessibleIndexInParent in interface AccessibleContext
- Returns:
- the 0-based index, or -1 if there is no accessible parent
public String getAccessibleName()
Get the localized name of the object. For example, a label may just return the text of the label, while an entry field for city may return "city" in en_US.
- Overrides:
- getAccessibleName in interface AccessibleContext
- Returns:
- the accessible object's name, or null if it is unnamed
public AccessibleRole getAccessibleRole()
Gets the role of this object. For example, a button serves the role of AccessibleRole.PUSH_BUTTON. This allows assistive technologies to funnel similar objects into the same assistance classes. Note that the class is extensible, to define new roles if necessary.
- Overrides:
- getAccessibleRole in interface AccessibleContext
- Returns:
- the role of the object
- See Also:
AccessibleRole
public AccessibleSelection getAccessibleSelection()
Get any supported accessible selection. The default implementation returns null.
- Overrides:
- getAccessibleSelection in interface AccessibleContext
- Returns:
- the supported selection, or null
- See Also:
AccessibleSelection
public AccessibleStateSet getAccessibleStateSet()
Gets the state set of this object. A change in the state of the object will fire a PropertyChangeEvent for ACCESSIBLE_STATE_PROPERTY.
- Overrides:
- getAccessibleStateSet in interface AccessibleContext
- Returns:
- the current state of the object
public AccessibleText getAccessibleText()
Get any supported accessible text. The default implementation returns null.
- Overrides:
- getAccessibleText in interface AccessibleContext
- Returns:
- the supported text, or null
- See Also:
AccessibleText
public AccessibleValue getAccessibleValue()
Get any supported accessible value. The default implementation returns null.
- Overrides:
- getAccessibleValue in interface AccessibleContext
- Returns:
- the supported value, or null
- See Also:
AccessibleValue
public Color getBackground()
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
public Rectangle getBounds()
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)
public Cursor getCursor()
Get the cursor of this component.
- Specified by:
- getCursor in interface AccessibleComponent
- Returns:
- the Cursor of this component, or null if not supported
public Font getFont()
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)
public FontMetrics getFontMetrics(Font f)
Get theFontMetrics
of the specified font in this component.
- Specified by:
- getFontMetrics in interface AccessibleComponent
- Parameters:
- Returns:
- the metrics for the specified font, or null if not supported
- Throws:
NullPointerException
- if font is null
- See Also:
AccessibleComponent.getFont()
public Color getForeground()
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
public Locale getLocale()
Gets the component locale, deferring to the parent if one is not declared.
- Overrides:
- getLocale in interface AccessibleContext
- Returns:
- the locale
- Throws:
IllegalComponentStateException
- if there is no locale or parent
public Point getLocation()
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
public Point getLocationOnScreen()
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
public Dimension getSize()
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
public boolean isEnabled()
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
public boolean isFocusTraversable()
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
public boolean isShowing()
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
public boolean isVisible()
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. CheckisShowing()
to see if the object is on screen.
- Specified by:
- isVisible in interface AccessibleComponent
- Returns:
- true if the component is visible
public void removeFocusListener(FocusListener l)
Removes the specified listener from this component.
- Specified by:
- removeFocusListener in interface AccessibleComponent
- Parameters:
public void removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list.
- Overrides:
- removePropertyChangeListener in interface AccessibleContext
- Parameters:
l
- the listener to remove
public void requestFocus()
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
public void setAccessibleDescription(String s)
Set the localized name of the object. This will fire a PropertyChangeEvent with ACCESSIBLE_DESCRIPTION_PROPERTY.
- Overrides:
- setAccessibleDescription in interface AccessibleContext
- Parameters:
s
- the new description
public void setAccessibleName(String s)
Set the localized name of the object. This will fire a PropertyChangeEvent with ACCESSIBLE_NAME_PROPERTY.
- Overrides:
- setAccessibleName in interface AccessibleContext
- Parameters:
s
- the new name
public void setBackground(Color c)
Set the background color of this component to the specified color.
- Specified by:
- setBackground in interface AccessibleComponent
- Parameters:
- See Also:
AccessibleComponent.getBackground()
public void setBounds(Rectangle r)
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:
- Throws:
NullPointerException
- if rectangle is null
public void setCursor(Cursor c)
Set the cursor of the component.
- Specified by:
- setCursor in interface AccessibleComponent
- Parameters:
- See Also:
AccessibleComponent.getCursor()
public void setEnabled(boolean b)
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()
public void setFont(Font f)
Set the font of this component.
- Specified by:
- setFont in interface AccessibleComponent
- Parameters:
- See Also:
AccessibleComponent.getFont()
public void setForeground(Color c)
Set the foreground color of this component.
- Specified by:
- setForeground in interface AccessibleComponent
- Parameters:
- See Also:
AccessibleComponent.getForeground()
public void setLocation(Point p)
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:
- Throws:
NullPointerException
- if point is null
- See Also:
AccessibleComponent.getLocation()
public void setSize(Dimension d)
Set the size of this component to the given dimensions.
- Specified by:
- setSize in interface AccessibleComponent
- Parameters:
- Throws:
NullPointerException
- if dimension is null
- See Also:
AccessibleComponent.getSize()
public void setVisible(boolean b)
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()
GNU Classpath (0.20) |