javax.swing

Class JSplitPane.AccessibleJSplitPane

protected class JSplitPane.AccessibleJSplitPane extends JComponent.AccessibleJComponent implements AccessibleValue

Provides the accessibility features for the JSplitPane component.
Constructor Summary
protected AccessibleJSplitPane()
Creates a new AccessibleJSplitPane instance.
Method Summary
AccessibleRolegetAccessibleRole()
Returns the accessible role for the JSplitPane component.
AccessibleStateSetgetAccessibleStateSet()
Returns a set containing the current state of the {@link JSplitPane} component.
AccessibleValuegetAccessibleValue()
Returns an object that provides access to the current, minimum and maximum values for the {@link JSplitPane}.
NumbergetCurrentAccessibleValue()
Returns the current divider location for the {@link JSplitPane} component, as an {@link Integer}.
NumbergetMaximumAccessibleValue()
Returns the maximum divider location for the {@link JSplitPane} component, as an {@link Integer}.
NumbergetMinimumAccessibleValue()
Returns the minimum divider location for the {@link JSplitPane} component, as an {@link Integer}.
booleansetCurrentAccessibleValue(Number value)
Sets the divider location for the {@link JSplitPane} component and sends a {@link PropertyChangeEvent} (with the property name {@link AccessibleContext#ACCESSIBLE_VALUE_PROPERTY}) to all registered listeners.

Constructor Detail

AccessibleJSplitPane

protected AccessibleJSplitPane()
Creates a new AccessibleJSplitPane instance.

Method Detail

getAccessibleRole

public AccessibleRole getAccessibleRole()
Returns the accessible role for the JSplitPane component.

Returns: {@link AccessibleRole#SPLIT_PANE}.

getAccessibleStateSet

public AccessibleStateSet getAccessibleStateSet()
Returns a set containing the current state of the {@link JSplitPane} component.

Returns: The accessible state set.

getAccessibleValue

public AccessibleValue getAccessibleValue()
Returns an object that provides access to the current, minimum and maximum values for the {@link JSplitPane}. Since this class implements {@link AccessibleValue}, it returns itself.

Returns: The accessible value.

getCurrentAccessibleValue

public Number getCurrentAccessibleValue()
Returns the current divider location for the {@link JSplitPane} component, as an {@link Integer}.

Returns: The current divider location.

getMaximumAccessibleValue

public Number getMaximumAccessibleValue()
Returns the maximum divider location for the {@link JSplitPane} component, as an {@link Integer}.

Returns: The maximum divider location.

getMinimumAccessibleValue

public Number getMinimumAccessibleValue()
Returns the minimum divider location for the {@link JSplitPane} component, as an {@link Integer}.

Returns: The minimum divider location.

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(Number value)
Sets the divider location for the {@link JSplitPane} component and sends a {@link PropertyChangeEvent} (with the property name {@link AccessibleContext#ACCESSIBLE_VALUE_PROPERTY}) to all registered listeners. If the supplied value is null, this method does nothing and returns false.

Parameters: value the new divider location (null permitted).

Returns: true if the divider location value is updated, and false otherwise.