javax.swing

Class JInternalFrame.AccessibleJInternalFrame

protected class JInternalFrame.AccessibleJInternalFrame extends AccessibleJComponent implements AccessibleValue

Provides the accessibility features for the JInternalFrame component.
Constructor Summary
protected AccessibleJInternalFrame()
Creates a new AccessibleJInternalFrame instance.
Method Summary
StringgetAccessibleName()
Returns the frame title.
AccessibleRolegetAccessibleRole()
Returns the accessible role for the JInternalFrame component.
AccessibleValuegetAccessibleValue()
Returns an object that provides access to the current, minimum and maximum values for the {@link JInternalFrame}.
NumbergetCurrentAccessibleValue()
Returns the current layer for the {@link JInternalFrame} component, as an {@link Integer}.
NumbergetMaximumAccessibleValue()
Returns the maximum permitted accessible value.
NumbergetMinimumAccessibleValue()
Returns the minimum permitted accessible value.
booleansetCurrentAccessibleValue(Number n)
Sets the layer for the internal frame.

Constructor Detail

AccessibleJInternalFrame

protected AccessibleJInternalFrame()
Creates a new AccessibleJInternalFrame instance.

Method Detail

getAccessibleName

public String getAccessibleName()
Returns the frame title.

Returns: The frame title.

getAccessibleRole

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

Returns: {@link AccessibleRole#INTERNAL_FRAME}.

getAccessibleValue

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

Returns: The accessible value.

getCurrentAccessibleValue

public Number getCurrentAccessibleValue()
Returns the current layer for the {@link JInternalFrame} component, as an {@link Integer}.

Returns: The layer for the {@link JInternalFrame} component.

getMaximumAccessibleValue

public Number getMaximumAccessibleValue()
Returns the maximum permitted accessible value.

Returns: Integer(Integer.MAX_VALUE).

getMinimumAccessibleValue

public Number getMinimumAccessibleValue()
Returns the minimum permitted accessible value.

Returns: Integer(Integer.MIN_VALUE).

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(Number n)
Sets the layer for the internal frame.

Parameters: n the layer (see the constants defined in {@link JLayeredPane}).

Returns: true if the value is set, and false if it was not set.