APIdia Launch Partner
Top Fields Constructors Methods
sun.swing

public final Class MnemonicHandler

extends Object
Class Inheritance
Imports
java.awt.Component, .Container, .Window, javax.swing.AbstractButton, .JLabel, .UIManager

Field Summary

Modifier and TypeField and Description
private static boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if mnemonics are hidden, otherwise, false
isMnemonicHidden
()

Gets the state of the hide mnemonic flag.

private static void
repaintMnemonicsInContainer(final Container cont)

Repaints all the components with the mnemonics in container.

public static void
repaintMnemonicsInWindow(final Window w)

Repaints all the components with the mnemonics in the given window and all its owned windows.

public static void
setMnemonicHidden(final boolean
true if mnemonics should be hidden
hide
)

Sets the state of the hide mnemonic flag.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isMnemonicHiddenback to summary
private static boolean isMnemonicHidden

Constructor Detail

MnemonicHandlerback to summary
private MnemonicHandler()

Method Detail

isMnemonicHiddenback to summary
public static boolean isMnemonicHidden()

Gets the state of the hide mnemonic flag. This only has meaning if this feature is supported by the underlying OS.

Returns:boolean

true if mnemonics are hidden, otherwise, false

repaintMnemonicsInContainerback to summary
private static void repaintMnemonicsInContainer(final Container cont)

Repaints all the components with the mnemonics in container. Recursively searches for all the subcomponents.

repaintMnemonicsInWindowback to summary
public static void repaintMnemonicsInWindow(final Window w)

Repaints all the components with the mnemonics in the given window and all its owned windows.

setMnemonicHiddenback to summary
public static void setMnemonicHidden(final boolean hide)

Sets the state of the hide mnemonic flag. This flag is used by the component UI delegates to determine if the mnemonic should be rendered. This method is a non operation if the underlying operating system does not support the mnemonic hiding feature.

Parameters
hide:boolean

true if mnemonics should be hidden