| Method from java.awt.Component$AccessibleAWTComponent Detail: |
public void addFocusListener(FocusListener l) {
Component.this.addFocusListener(l);
}
|
public void addPropertyChangeListener(PropertyChangeListener l) {
Component.this.addPropertyChangeListener(l);
super.addPropertyChangeListener(l);
}
Adds a global property change listener to the accessible component. |
public boolean contains(Point p) {
return Component.this.contains(p.x, p.y);
}
Tests if the point is contained in this component. |
public Accessible getAccessibleAt(Point p) {
return null;
}
Returns the Accessible child at a point relative to the coordinate
system of this component, if one exists, or null. Since components
have no children, subclasses must override this to get anything besides
null. |
public Accessible getAccessibleChild(int i) {
return null;
}
Returns the ith accessible child. Subclasses must override this if
they can have children. |
public int getAccessibleChildrenCount() {
return 0;
}
Returns the number of children of this component which implement
Accessible. Subclasses must override this if they can have children. |
public AccessibleComponent getAccessibleComponent() {
return this;
}
Returns this, since it is an accessible component. |
public String getAccessibleDescription() {
return accessibleDescription;
}
Returns a brief description of this accessible context. This should
be localized. |
public int getAccessibleIndexInParent() {
if (getAccessibleParent() == null)
return -1;
AccessibleContext context
= ((Component) accessibleParent).getAccessibleContext();
if (context == null)
return -1;
for (int i = context.getAccessibleChildrenCount(); --i >= 0; )
if (context.getAccessibleChild(i) == Component.this)
return i;
return -1;
}
Returns the index of this component in its accessible parent. |
public String getAccessibleName() {
return accessibleName;
}
Returns the accessible name of this component. It is almost always
wrong to return getName(), since it is not localized. In fact, for
things like buttons, this should be the text of the button, not the
name of the object. The tooltip text might also be appropriate. |
public Accessible getAccessibleParent() {
if (accessibleParent == null)
{
Container parent = getParent();
accessibleParent = parent instanceof Accessible
? (Accessible) parent : null;
}
return accessibleParent;
}
Returns the parent of this component, if it is accessible. |
public AccessibleRole getAccessibleRole() {
return AccessibleRole.AWT_COMPONENT;
}
Returns the role of this component. |
public AccessibleStateSet getAccessibleStateSet() {
AccessibleStateSet s = new AccessibleStateSet();
if (Component.this.isEnabled())
s.add(AccessibleState.ENABLED);
if (isFocusable())
s.add(AccessibleState.FOCUSABLE);
if (isFocusOwner())
s.add(AccessibleState.FOCUSED);
// Note: While the java.awt.Component has an 'opaque' property, it
// seems that it is not added to the accessible state set here, even
// if this property is true. However, it is handled for
// javax.swing.JComponent, so we add it there.
if (Component.this.isShowing())
s.add(AccessibleState.SHOWING);
if (Component.this.isVisible())
s.add(AccessibleState.VISIBLE);
return s;
}
Returns a state set describing this component's state. |
public Color getBackground() {
return Component.this.getBackground();
}
Gets the background color. |
public Rectangle getBounds() {
return Component.this.getBounds();
}
Gets the bounds of this component, or null if it is not on screen. |
public Cursor getCursor() {
return Component.this.getCursor();
}
|
public Font getFont() {
return Component.this.getFont();
}
|
public FontMetrics getFontMetrics(Font f) {
return Component.this.getFontMetrics(f);
}
Gets the font metrics for a font. |
public Color getForeground() {
return Component.this.getForeground();
}
Gets the foreground color. |
public Locale getLocale() {
return Component.this.getLocale();
}
Returns the locale of this component. |
public Point getLocation() {
return Component.this.getLocation();
}
Returns the location of this object relative to its parent's coordinate
system, or null if it is not showing. |
public Point getLocationOnScreen() {
return Component.this.isShowing() ? Component.this.getLocationOnScreen()
: null;
}
Returns the location of this object on the screen, or null if it is
not showing. |
public Dimension getSize() {
return Component.this.getSize();
}
Gets the size of this component, or null if it is not showing. |
public boolean isEnabled() {
return Component.this.isEnabled();
}
Tests if the component is enabled. |
public boolean isFocusTraversable() {
return Component.this.isFocusTraversable ();
}
Tests whether this component can accept focus. |
public boolean isShowing() {
return Component.this.isShowing();
}
Tests if the component is showing. |
public boolean isVisible() {
return Component.this.isVisible();
}
Test whether the component is visible (not necesarily showing). |
public void removeFocusListener(FocusListener l) {
Component.this.removeFocusListener(l);
}
Removes a focus listener. |
public void removePropertyChangeListener(PropertyChangeListener l) {
Component.this.removePropertyChangeListener(l);
super.removePropertyChangeListener(l);
}
Removes a global property change listener from this accessible
component. |
public void requestFocus() {
Component.this.requestFocus ();
}
Requests focus for this component. |
public void setBackground(Color c) {
Component.this.setBackground(c);
}
Sets the background color. |
public void setBounds(Rectangle r) {
Component.this.setBounds(r.x, r.y, r.width, r.height);
}
Sets the bounds of this component. |
public void setCursor(Cursor cursor) {
Component.this.setCursor(cursor);
}
|
public void setEnabled(boolean b) {
Component.this.setEnabled(b);
}
Set whether the component is enabled. |
public void setFont(Font f) {
Component.this.setFont(f);
}
|
public void setForeground(Color c) {
Component.this.setForeground(c);
}
Sets the foreground color. |
public void setLocation(Point p) {
Component.this.setLocation(p.x, p.y);
}
Sets the location of this relative to its parent's coordinate system. |
public void setSize(Dimension d) {
Component.this.setSize(d.width, d.height);
}
Sets the size of this component. |
public void setVisible(boolean b) {
Component.this.setVisible(b);
}
Sets the visibility of this component. |