|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.accessibility.AccessibleContext javax.swing.text.html.AccessibleHTML.HTMLAccessibleContext
Field Summary | |
protected AccessibleHTML.ElementInfo |
elementInfo
|
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 | |
AccessibleHTML.HTMLAccessibleContext(AccessibleHTML.ElementInfo elementInfo)
|
Method Summary | |
void |
addFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this component. |
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. |
javax.accessibility.Accessible |
getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local coordinate Point. |
javax.accessibility.Accessible |
getAccessibleChild(int i)
Returns the specified Accessible child of the object. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children of the object. |
javax.accessibility.AccessibleComponent |
getAccessibleComponent()
|
javax.accessibility.AccessibleContext |
getAccessibleContext()
|
int |
getAccessibleIndexInParent()
Gets the 0-based index of this object in its accessible parent. |
javax.accessibility.AccessibleStateSet |
getAccessibleStateSet()
Gets the state set of this object. |
Color |
getBackground()
Gets the background color of this object. |
Rectangle |
getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Cursor |
getCursor()
Gets the Cursor of this object. |
private AccessibleHTML.ElementInfo |
getElementInfoAt(AccessibleHTML.ElementInfo elementInfo,
Point p)
|
Font |
getFont()
Gets the Font of this object. |
FontMetrics |
getFontMetrics(Font f)
Gets the FontMetrics of this object. |
Color |
getForeground()
Gets the foreground color of this object. |
Locale |
getLocale()
Gets the locale of the component. |
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. |
Point |
getLocationOnScreen()
Returns the location of the object on the screen. |
Dimension |
getSize()
Returns the size of this object in the form of a Dimension object. |
boolean |
isEnabled()
Determines if the object is enabled. |
boolean |
isFocusTraversable()
Returns whether this object can accept focus or not. |
boolean |
isShowing()
Determines if the object is showing. |
boolean |
isVisible()
Determines if the object is visible. |
void |
removeFocusListener(FocusListener l)
Removes the specified focus listener so it no longer receives focus events from this component. |
void |
requestFocus()
Requests focus for this object. |
void |
setBackground(Color c)
Sets the background color of this object. |
void |
setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
setCursor(Cursor cursor)
Sets the Cursor of this object. |
void |
setEnabled(boolean b)
Sets the enabled state of the object. |
void |
setFont(Font f)
Sets the Font of this object. |
void |
setForeground(Color c)
Sets the foreground color of this object. |
void |
setLocation(Point p)
Sets the location of the object relative to the parent. |
void |
setSize(Dimension d)
Resizes this object so that it has width and height. |
void |
setVisible(boolean b)
Sets the visible state of the object. |
Methods inherited from class javax.accessibility.AccessibleContext |
addPropertyChangeListener, firePropertyChange, getAccessibleAction, getAccessibleDescription, getAccessibleEditableText, getAccessibleIcon, getAccessibleName, getAccessibleParent, getAccessibleRelationSet, getAccessibleRole, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, removePropertyChangeListener, setAccessibleDescription, setAccessibleName, setAccessibleParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AccessibleHTML.ElementInfo elementInfo
Constructor Detail |
public AccessibleHTML.HTMLAccessibleContext(AccessibleHTML.ElementInfo elementInfo)
Method Detail |
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext
in interface javax.accessibility.Accessible
public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
AccessibleStateSet
public int getAccessibleIndexInParent()
AccessibleContext.getAccessibleParent()
,
getAccessibleChildrenCount()
,
getAccessibleChild(int)
public int getAccessibleChildrenCount()
public javax.accessibility.Accessible getAccessibleChild(int i)
i
- zero-based index of child
getAccessibleChildrenCount()
public Locale getLocale() throws IllegalComponentStateException
IllegalComponentStateException
- If the Component does not have its own locale and has not yet been
added to a containment hierarchy such that the locale can be
determined from the containing parent.public javax.accessibility.AccessibleComponent getAccessibleComponent()
public Color getBackground()
getBackground
in interface javax.accessibility.AccessibleComponent
setBackground(java.awt.Color)
public void setBackground(Color c)
setBackground
in interface javax.accessibility.AccessibleComponent
c
- the new Color for the backgroundsetBackground(java.awt.Color)
public Color getForeground()
getForeground
in interface javax.accessibility.AccessibleComponent
setForeground(java.awt.Color)
public void setForeground(Color c)
setForeground
in interface javax.accessibility.AccessibleComponent
c
- the new Color for the foregroundgetForeground()
public Cursor getCursor()
getCursor
in interface javax.accessibility.AccessibleComponent
setCursor(java.awt.Cursor)
public void setCursor(Cursor cursor)
setCursor
in interface javax.accessibility.AccessibleComponent
getCursor()
public Font getFont()
getFont
in interface javax.accessibility.AccessibleComponent
setFont(java.awt.Font)
public void setFont(Font f)
setFont
in interface javax.accessibility.AccessibleComponent
f
- the new Font for the objectgetFont()
public FontMetrics getFontMetrics(Font f)
getFontMetrics
in interface javax.accessibility.AccessibleComponent
f
- the Font
getFont()
public boolean isEnabled()
isEnabled
in interface javax.accessibility.AccessibleComponent
setEnabled(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.ENABLED
,
AccessibleStateSet
public void setEnabled(boolean b)
setEnabled
in interface javax.accessibility.AccessibleComponent
b
- if true, enables this object; otherwise, disables itisEnabled()
public boolean isVisible()
Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSets.
isVisible
in interface javax.accessibility.AccessibleComponent
setVisible(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.VISIBLE
,
AccessibleStateSet
public void setVisible(boolean b)
setVisible
in interface javax.accessibility.AccessibleComponent
b
- if true, shows this object; otherwise, hides itisVisible()
public boolean isShowing()
isShowing
in interface javax.accessibility.AccessibleComponent
public boolean contains(Point p)
contains
in interface javax.accessibility.AccessibleComponent
p
- the Point relative to the coordinate system of the object
getBounds()
public Point getLocationOnScreen()
getLocationOnScreen
in interface javax.accessibility.AccessibleComponent
getBounds()
,
getLocation()
public Point getLocation()
getLocation
in interface javax.accessibility.AccessibleComponent
getBounds()
,
getLocationOnScreen()
public void setLocation(Point p)
setLocation
in interface javax.accessibility.AccessibleComponent
p
- the new position for the top-left cornergetLocation()
public Rectangle getBounds()
getBounds
in interface javax.accessibility.AccessibleComponent
contains(java.awt.Point)
public void setBounds(Rectangle r)
setBounds
in interface javax.accessibility.AccessibleComponent
r
- rectangle indicating this component's boundsgetBounds()
public Dimension getSize()
getSize
in interface javax.accessibility.AccessibleComponent
setSize(java.awt.Dimension)
public void setSize(Dimension d)
setSize
in interface javax.accessibility.AccessibleComponent
d
- The dimension specifying the new size of the object.getSize()
public javax.accessibility.Accessible getAccessibleAt(Point p)
getAccessibleAt
in interface javax.accessibility.AccessibleComponent
p
- The point relative to the coordinate system of this object.
private AccessibleHTML.ElementInfo getElementInfoAt(AccessibleHTML.ElementInfo elementInfo, Point p)
public boolean isFocusTraversable()
isFocusTraversable
in interface javax.accessibility.AccessibleComponent
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.FOCUSABLE
,
AccessibleState.FOCUSED
,
AccessibleStateSet
public void requestFocus()
requestFocus
in interface javax.accessibility.AccessibleComponent
isFocusTraversable()
public void addFocusListener(FocusListener l)
addFocusListener
in interface javax.accessibility.AccessibleComponent
l
- the focus listenerremoveFocusListener(java.awt.event.FocusListener)
public void removeFocusListener(FocusListener l)
removeFocusListener
in interface javax.accessibility.AccessibleComponent
l
- the focus listeneraddFocusListener(java.awt.event.FocusListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |