|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jstatcom.component.CompSettings
public final class CompSettings
This class contains some publicly accessible fields that specify settings for components used throughout JStatCom.
Field Summary | |
---|---|
static java.awt.Color |
errorBackground
Default background color if error happened. |
static java.awt.Font |
smallFontDefault
Default for small font. |
Method Summary | |
---|---|
static void |
dispatchEvent(java.lang.Runnable runner)
Dispatches event in Swing EDT. |
static java.lang.String |
getDateString()
Gets a string with the formatted date and time. |
static java.text.DateFormat |
getDefaultDateFormat()
Gets a new instance of a default date formatter with the pattern "EEE, d MMM yyyy HH:mm:ss" . |
static java.text.DateFormat |
getSimpleDateFormat()
Gets a new instance of a simple date formatter with the pattern "HH:mm:ss" . |
static void |
syncWithSwing(java.lang.Runnable runner)
Later-Invokes the operation defined in runner within the
SWING event dispatching thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Color errorBackground
public static final java.awt.Font smallFontDefault
Method Detail |
---|
public static void syncWithSwing(java.lang.Runnable runner)
runner
within the
SWING event dispatching thread. If this method is already called within
the event dispatching thread, then simply runner.run
is
called.O Otherwise SwingUtilities.invokeLater(runner)
is
used.
runner
- wrapper for the method to be called within the SWING event
dispatching thread
java.lang.IllegalArgumentException
- if (runner == null)
public static void dispatchEvent(java.lang.Runnable runner)
runner
-
java.lang.IllegalArgumentException
- if (runner == null)
public static java.lang.String getDateString()
public static java.text.DateFormat getDefaultDateFormat()
"EEE, d MMM yyyy HH:mm:ss"
.
public static java.text.DateFormat getSimpleDateFormat()
"HH:mm:ss"
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |