public class MnemonicString
extends java.lang.Object
Constructor and Description |
---|
MnemonicString(java.lang.String label)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRawLabel()
Get the raw (uncolored) string.
|
int |
getScreenShortcutIdx()
Get the screen location of the highlighted character.
|
int |
getShortcut()
Get the keyboard shortcut character.
|
int |
getShortcutIdx()
Get location of the highlighted character.
|
public MnemonicString(java.lang.String label)
label
- widget label or title. Label must contain a keyboard
shortcut, denoted by prefixing a letter with "&", e.g. "&File"public int getShortcut()
public int getShortcutIdx()
public int getScreenShortcutIdx()
public java.lang.String getRawLabel()
Copyright © 2019 Kevin Lamonte. Licensed MIT.