javax.swing

Class JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon

protected class JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon extends AccessibleJComponent implements AccessibleValue

Provides the accessibility features for the JDesktopIcon component.
Constructor Summary
protected AccessibleJDesktopIcon()
Creates a new AccessibleJDesktopIcon instance.
Method Summary
AccessibleRolegetAccessibleRole()
Returns the accessible role for the JDesktopIcon component.
AccessibleValuegetAccessibleValue()
Returns an object that provides access to the current, minimum and maximum values for the {@link JDesktopIcon}.
NumbergetCurrentAccessibleValue()
Returns the current layer for the {@link JInternalFrame} component represented by this JDesktopIcon, 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 represented by this JDesktopIcon component.

Constructor Detail

AccessibleJDesktopIcon

protected AccessibleJDesktopIcon()
Creates a new AccessibleJDesktopIcon instance.

Method Detail

getAccessibleRole

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

Returns: {@link AccessibleRole#DESKTOP_ICON}.

getAccessibleValue

public AccessibleValue getAccessibleValue()
Returns an object that provides access to the current, minimum and maximum values for the {@link JDesktopIcon}. 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 represented by this JDesktopIcon, as an {@link Integer}.

Returns: The layer.

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 represented by this JDesktopIcon component.

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.