Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.JProgressBar.AccessibleJProgressBar
protected class JProgressBar.AccessibleJProgressBar
extends JComponent.AccessibleJComponent
implements AccessibleValue
JProgressBar
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 |
protected AccessibleJProgressBar()
Creates a newAccessibleJProgressBar
instance.
public AccessibleRole getAccessibleRole()
Returns the accessible role for theJProgressBar
component.
- Overrides:
- getAccessibleRole in interface JComponent.AccessibleJComponent
- Returns:
AccessibleRole.PROGRESS_BAR
.
public AccessibleStateSet getAccessibleStateSet()
Returns a set containing the current state of theJProgressBar
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 theJProgressBar
component, as anInteger
.
- Specified by:
- getCurrentAccessibleValue in interface AccessibleValue
- Returns:
- The current value of the
JProgressBar
component.
public Number getMaximumAccessibleValue()
Returns the maximum value of theJProgressBar
component, as anInteger
.
- Specified by:
- getMaximumAccessibleValue in interface AccessibleValue
- Returns:
- The maximum value of the
JProgressBar
component.
public Number getMinimumAccessibleValue()
Returns the minimum value of theJProgressBar
component, as anInteger
.
- Specified by:
- getMinimumAccessibleValue in interface AccessibleValue
- Returns:
- The minimum value of the
JProgressBar
component.
public boolean setCurrentAccessibleValue(Number value)
Sets the current value of theJProgressBar
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 progress bar value (null
permitted).
- Returns:
true
if the slider value is updated, andfalse
otherwise.