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 JSplitPane component.
AccessibleValuegetAccessibleValue()
Returns an object that provides access to the current, minimum and maximum values for the JSplitPane.
NumbergetCurrentAccessibleValue()
Returns the current divider location for the JSplitPane component, as an Integer.
NumbergetMaximumAccessibleValue()
Returns the maximum divider location for the JSplitPane component, as an Integer.
NumbergetMinimumAccessibleValue()
Returns the minimum divider location for the JSplitPane component, as an Integer.
booleansetCurrentAccessibleValue(Number value)
Sets the divider location for the JSplitPane component and sends a PropertyChangeEvent (with the property name 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: SPLIT_PANE.

getAccessibleStateSet

public AccessibleStateSet getAccessibleStateSet()
Returns a set containing the current state of the 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 JSplitPane. Since this class implements AccessibleValue, it returns itself.

Returns: The accessible value.

getCurrentAccessibleValue

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

Returns: The current divider location.

getMaximumAccessibleValue

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

Returns: The maximum divider location.

getMinimumAccessibleValue

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

Returns: The minimum divider location.

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(Number value)
Sets the divider location for the JSplitPane component and sends a PropertyChangeEvent (with the property name 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.