|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectQETools
public class QETools
Contains tools like outputting debug messages for other classes to use. Basically, if code is going to be written over and over in different classes, this is the place to consolidate and write it once.
Field Summary | |
---|---|
static boolean |
m_debug
Set to true if basic (non-db) debug messages should be written to std out |
private static java.lang.String |
m_key
|
static java.lang.String |
m_lookAndFeel
Attempted look and feel for the application |
Constructor Summary | |
---|---|
QETools()
Constructor, though most of this class is static |
Method Summary | |
---|---|
static void |
debugMsg(java.lang.String msg)
If basic debugging is turned on, output the message |
static java.lang.String |
decrypt(java.lang.String in)
Decrypt a string to save to file |
static java.lang.String |
encrypt(java.lang.String in)
Encrypt a string to save to file |
private static byte[] |
getDesKeyData()
Generate key base for encryption |
static java.awt.Point |
getNewLocation(java.awt.Dialog p)
Determine a reasonable location for a new dialog given the parent it will belong to. |
static java.awt.Point |
getNewLocation(java.awt.Frame p)
Determine a reasonable location for a new dialog given the parent it will belong to. |
static void |
msg(java.lang.String val,
java.awt.Dialog parent)
Do pop-up to display the message Do pop-up to display the message |
static void |
msg(java.lang.String val,
java.awt.Frame parent)
Do pop-up to display the message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean m_debug
public static final java.lang.String m_lookAndFeel
private static final java.lang.String m_key
Constructor Detail |
---|
public QETools()
Method Detail |
---|
public static void debugMsg(java.lang.String msg)
msg
- Debug message to outputpublic static java.awt.Point getNewLocation(java.awt.Frame p)
p
- Parent frame of a new dialog or frame
public static java.awt.Point getNewLocation(java.awt.Dialog p)
p
- Parent dialog of a new dialog or frame
public static void msg(java.lang.String val, java.awt.Frame parent)
val
- Message to displayparent
- Parent frame to hold dialogpublic static void msg(java.lang.String val, java.awt.Dialog parent)
val
- Message to displayparent
- Parent dialog to hold dialogpublic static java.lang.String encrypt(java.lang.String in)
in
- String to encrypt
public static java.lang.String decrypt(java.lang.String in)
in
- String to encrypt
private static byte[] getDesKeyData()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |