|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcon.util.GenLib
public class GenLib
General library methods. These are all static. Those methods that many classes commonly call should be in this class, so that they only have to import GenLib. Note - Some commented out since not yet used, may be moved.
| Constructor Summary | |
|---|---|
GenLib()
|
|
| Method Summary | |
|---|---|
static void |
beep()
|
static java.awt.Font |
createBoldFont(java.awt.Component comp,
boolean isBold)
Returns a new Font like the component's font in either bold or plain style. |
static java.lang.Object |
createInstance(java.lang.String className)
Creates and returns a class instance given className. |
static void |
error(java.lang.String method,
java.lang.String message)
This method is used for logical coding errors, such as attempts to pass invalid arguments. |
static java.lang.String |
getClassLastName(java.lang.Object instance)
|
static java.lang.String |
getPackageName(java.lang.String className)
Returns the package name from the full className, for example "COM.hjac.beans.TestBean" returns "COM.hjac.beans". |
static java.awt.Font |
makeBold(java.awt.Font font)
|
static java.lang.String |
readInputLine(java.lang.String prompt)
For prompted pause in DOS window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenLib()
| Method Detail |
|---|
public static void beep()
public static void error(java.lang.String method,
java.lang.String message)
method - should be of the format "ClassName.methodName()".message - should describe the problem in a manner useful to both user
and developer;public static java.lang.String getPackageName(java.lang.String className)
public static java.lang.Object createInstance(java.lang.String className)
public static java.lang.String readInputLine(java.lang.String prompt)
public static java.lang.String getClassLastName(java.lang.Object instance)
public static java.awt.Font createBoldFont(java.awt.Component comp,
boolean isBold)
public static java.awt.Font makeBold(java.awt.Font font)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||