com.novell.utility.localization
Class Loc
java.lang.Object
|
+--com.novell.utility.localization.Loc
- public class Loc
- extends java.lang.Object
|
Constructor Summary |
Loc()
|
|
Method Summary |
static char |
getHotChar(java.lang.String str)
Returns the hot char specified in the string using the '&' character. |
static java.lang.String |
removeHotChar(java.lang.String str)
Returns the string with the hot char key '&' removed. |
static void |
setText(javax.swing.AbstractButton item,
java.lang.String str)
Sets the text and mnemonic for an AbstractButton using the passed in string. |
static void |
setText(javax.swing.JLabel label,
java.awt.Component comp,
java.lang.String str)
Sets the text and mnemonic for a label and sets the component to receive focus
when the mnemonic for the label is pressed. |
static void |
setText(javax.swing.text.JTextComponent textComponent,
java.lang.String str)
Sets the focus accelerator for a text component from the mnemonic specified
in a string. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Loc
public Loc()
removeHotChar
public static java.lang.String removeHotChar(java.lang.String str)
- Returns the string with the hot char key '&' removed.
getHotChar
public static char getHotChar(java.lang.String str)
- Returns the hot char specified in the string using the '&' character.
If there is not hot char, -1 is returned.
setText
public static void setText(javax.swing.AbstractButton item,
java.lang.String str)
- Sets the text and mnemonic for an AbstractButton using the passed in string.
Use the '&' char to specify the mnemonic. Note that this
works with AbstractButtons, JButtons, JMenuItems, JCheckBoxMenuItems, JMenus,
JRadioButtonMenuItems, JToggleButtons, JCheckBoxes and JRadioButtons since they
all are derived from AbstractButton.
setText
public static void setText(javax.swing.JLabel label,
java.awt.Component comp,
java.lang.String str)
- Sets the text and mnemonic for a label and sets the component to receive focus
when the mnemonic for the label is pressed.
setText
public static void setText(javax.swing.text.JTextComponent textComponent,
java.lang.String str)
- Sets the focus accelerator for a text component from the mnemonic specified
in a string. The string is only used to get the mnemonic char from.
API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.