public class Mnemonic extends Object
Constructor and Description |
---|
Mnemonic(String s)
The constructor extracts the mnemonic character in the text string.
|
Modifier and Type | Method and Description |
---|---|
char |
getMnemonic()
Gets the mnemonic character of the string.
|
int |
getMnemonicIndex()
Gets the mnemonic index (-1 is no mnemonic).
|
String |
getText()
Gets the text without the mnemonic character.
|
void |
setMnemonic(AbstractButton b)
Sets the mnemonic for an abstract button.
|
char |
update(AbstractButton b)
Assigns mnemonic and text to a button.
|
public Mnemonic(String s)
public char getMnemonic()
public int getMnemonicIndex()
public String getText()
public void setMnemonic(AbstractButton b)
For JDK 1.4 the index will be used, otherwise the character itself.
public char update(AbstractButton b)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.