|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.modeler.ModelerUtil
Field Summary | |
private static char[] |
CLOSE_BRACES
|
static String |
CORE_URI
|
static String |
DIR_URI
|
private static int |
MAXDIALOGH
|
private static int |
MAXDIALOGW
|
private static char[] |
OPEN_BRACES
|
private static Hashtable |
rbKeys
|
private static ResourceBundle |
resource
|
Constructor Summary | |
ModelerUtil()
|
Method Summary | |
static void |
beep()
play an audible beep Toolkit.getDefaultToolkit().beep() doesn't make a sound? |
private static int |
braceIndex(char[] array,
char c)
search through a character array for a match |
static String |
getCurrentTaskProcessor()
|
static String |
getResource(String key)
retrieve a simple string from the UI resource bundle |
static String |
getResource(String key,
Object[] inserts)
retrieve a string from the UI resource bundle and process inserts java.text.MessageFormat.format() used to process inserts. |
static JTextComponent |
getSourceTextComponent()
|
static void |
initializeComboBox(JComboBox box,
String value,
String[] items)
initialize a combo box with a set of items and an optional selected value. |
private static void |
initRb()
uses reflection to find all fields and their associated values so that nice string identifiers can be used to localize the UI. |
static boolean |
isBraceChar(char c)
test character to see if it's an open or close brace |
static boolean |
isCloseBraceChar(char c)
test character to see if it's a close brace |
static boolean |
isEmpty(String s)
equates null and empty string |
static boolean |
isOpenBraceChar(char c)
test character to see if it's an open brace |
static boolean |
isSpaceChar(char c)
test c to see if it's a standard space char, CR or LF. |
static boolean |
isSpaceString(String s)
|
static void |
Localize(Container c)
recursively localize a java Container uses reflection to find get/setText, get/setTitle and get/setToolTipText methods to localize the Container and its children. |
static char |
matchBraceChar(char c)
find the character matching a brace character |
private static void |
playSound(String sound)
play a sound file |
static void |
sizeDialog(JDialog d)
resize a dialog if it's oversized |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CORE_URI
public static final String DIR_URI
private static Hashtable rbKeys
private static ResourceBundle resource
private static int MAXDIALOGW
private static int MAXDIALOGH
private static char[] OPEN_BRACES
private static char[] CLOSE_BRACES
Constructor Detail |
public ModelerUtil()
Method Detail |
private static void initRb()
public static void initializeComboBox(JComboBox box, String value, String[] items)
box
- - JComboBox to initializevalue
- - the selected value (if there is one)items
- - the items to place in the JComboBoxpublic static boolean isSpaceChar(char c)
c
- - character to test
public static boolean isSpaceString(String s)
public static boolean isEmpty(String s)
s
- - string to test
public static String getResource(String key)
key
- - key into resource bundle
public static String getResource(String key, Object[] inserts)
key
- - key into resource bundleinserts
- - list of objects to insert into the resource
public static void Localize(Container c)
c
- - the Container to localizepublic static void sizeDialog(JDialog d)
private static int braceIndex(char[] array, char c)
array
- - array to searchc
- - character to search forpublic static boolean isOpenBraceChar(char c)
c
- - character to test
public static boolean isCloseBraceChar(char c)
c
- - character to test
public static boolean isBraceChar(char c)
c
- - character to test
public static char matchBraceChar(char c)
c
- - character to match with the corresponding bracepublic static void beep()
private static void playSound(String sound)
sound
- - sound file from classpath to playpublic static JTextComponent getSourceTextComponent()
public static String getCurrentTaskProcessor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |