java.awt
protected class: Scrollbar.AccessibleAWTScrollBar [javadoc |
source]
java.lang.Object
AccessibleAWTComponent
java.awt.Scrollbar$AccessibleAWTScrollBar
All Implemented Interfaces:
AccessibleValue
This class implements accessibility support for the
Scrollbar class. It provides an implementation of
the Java Accessibility API appropriate to scrollbar
user-interface elements.
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.awt.Scrollbar$AccessibleAWTScrollBar Detail: |
public AccessibleRole getAccessibleRole() {
return AccessibleRole.SCROLL_BAR;
}
Get the role of this object. |
public AccessibleStateSet getAccessibleStateSet() {
AccessibleStateSet states = super.getAccessibleStateSet();
if (getValueIsAdjusting()) {
states.add(AccessibleState.BUSY);
}
if (getOrientation() == VERTICAL) {
states.add(AccessibleState.VERTICAL);
} else {
states.add(AccessibleState.HORIZONTAL);
}
return states;
}
Get the state set of this object. |
public AccessibleValue getAccessibleValue() {
return this;
}
Get the AccessibleValue associated with this
object. In the implementation of the Java Accessibility
API for this class, return this object, which is
responsible for implementing the
AccessibleValue interface on behalf of itself. |
public Number getCurrentAccessibleValue() {
return Integer.valueOf(getValue());
}
Get the accessible value of this object. |
public Number getMaximumAccessibleValue() {
return Integer.valueOf(getMaximum());
}
Get the maximum accessible value of this object. |
public Number getMinimumAccessibleValue() {
return Integer.valueOf(getMinimum());
}
Get the minimum accessible value of this object. |
public boolean setCurrentAccessibleValue(Number n) {
if (n instanceof Integer) {
setValue(n.intValue());
return true;
} else {
return false;
}
}
Set the value of this object as a Number. |