Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
protected class JScrollBar.AccessibleJScrollBar
extends JComponent.AccessibleJComponent
implements AccessibleValue
JScrollBar
component.
Nested Class Summary |
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent | |
JComponent.AccessibleJComponent.AccessibleContainerHandler , JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Container.AccessibleAWTContainer | |
Container.AccessibleAWTContainer.AccessibleContainerHandler |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent | |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler , Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
Fields inherited from class javax.swing.JComponent.AccessibleJComponent | |
accessibleContainerHandler , accessibleFocusHandler |
Fields inherited from class java.awt.Container.AccessibleAWTContainer | |
accessibleContainerHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent | |
accessibleAWTComponentHandler , accessibleAWTFocusHandler |
Constructor Summary | |
|
Method Summary | |
AccessibleRole |
|
AccessibleStateSet |
|
AccessibleValue |
|
Number |
|
Number |
|
Number |
|
boolean |
|
Methods inherited from class java.awt.Container.AccessibleAWTContainer | |
getAccessibleAt , getAccessibleChild , getAccessibleChildrenCount |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public AccessibleRole getAccessibleRole()
Returns the accessible role for theJScrollBar
component.
- Overrides:
- getAccessibleRole in interface JComponent.AccessibleJComponent
- Returns:
AccessibleRole.SCROLL_BAR
.
public AccessibleStateSet getAccessibleStateSet()
Returns a set containing the current state of theJScrollBar
component.
- Overrides:
- getAccessibleStateSet in interface JComponent.AccessibleJComponent
- Returns:
- The accessible state set.
public AccessibleValue getAccessibleValue()
Returns an object that provides access to the current, minimum and maximum values.
- Overrides:
- getAccessibleValue in interface AccessibleContext
- Returns:
- The accessible value.
public Number getCurrentAccessibleValue()
Returns the current value of theJScrollBar
component, as anInteger
.
- Specified by:
- getCurrentAccessibleValue in interface AccessibleValue
- Returns:
- The current value of the
JScrollBar
component.
public Number getMaximumAccessibleValue()
Returns the maximum value of theJScrollBar
component, as anInteger
.
- Specified by:
- getMaximumAccessibleValue in interface AccessibleValue
- Returns:
- The maximum value of the
JScrollBar
component.
public Number getMinimumAccessibleValue()
Returns the minimum value of theJScrollBar
component, as anInteger
.
- Specified by:
- getMinimumAccessibleValue in interface AccessibleValue
- Returns:
- The minimum value of the
JScrollBar
component.
public boolean setCurrentAccessibleValue(Number value)
Sets the current value of theJScrollBar
component and sends aPropertyChangeEvent
(with the property nameAccessibleContext.ACCESSIBLE_VALUE_PROPERTY
) to all registered listeners. If the supplied value isnull
, this method does nothing and returnsfalse
.
- Specified by:
- setCurrentAccessibleValue in interface AccessibleValue
- Parameters:
value
- the new slider value (null
permitted).
- Returns:
true
if the slider value is updated, andfalse
otherwise.