public abstract class MainApp
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
COLOR_BLUISH
The Constant COLOR_BLUISH.
|
static java.util.HashMap<java.lang.String,java.lang.Object> |
globalValues
The global values.
|
static com.strategyquant.core.app.MainAppIface |
instance
The instance.
|
Constructor and Description |
---|
MainApp() |
Modifier and Type | Method and Description |
---|---|
static void |
drawSplashProgress(java.lang.String text)
Draw splash progress.
|
static int |
getAppVersion()
Gets the app version.
|
static java.lang.String |
getDataPath()
Gets the data path.
|
static long |
getDateID()
Gets the date id.
|
static com.strategyquant.core.db.BaseDb |
getDb()
Gets the db.
|
static java.lang.String |
getDiskSN()
Gets the disk sn.
|
static javax.swing.JFrame |
getFrame()
Gets the frame.
|
static java.lang.String |
getHardwareID()
Gets the hardware id.
|
static java.lang.String |
getHelpFile()
Gets the help file.
|
static javax.swing.ImageIcon |
getHelpIcon()
Gets the help icon.
|
static java.lang.String |
getLicenseCode()
Gets the license code.
|
static java.lang.String |
getLicenseOwner()
Gets the license owner.
|
static int |
getLicenseType()
Gets the license type.
|
static java.lang.String |
getMACaddress()
Gets the MA caddress.
|
static java.lang.String |
getProduct()
Gets the product.
|
static javax.swing.ImageIcon |
getSmallHelpIcon()
Gets the small help icon.
|
static com.strategyquant.core.gui.panels.SQSplashScreen |
getSplashScreen()
Gets the splash screen.
|
static com.strategyquant.core.gui.panels.TaskFrame |
getTaskFrame()
Gets the task frame.
|
static java.lang.String |
getUniqID()
Gets the uniq id.
|
static java.lang.Object |
getValue(java.lang.String key)
Gets the value.
|
static java.lang.Object |
getValue(java.lang.String key,
java.lang.Object defaultValue)
Gets the value.
|
static boolean |
isRelease()
Checks if is release.
|
static void |
openAboutDialog()
Open about dialog.
|
static void |
printAppStatus(java.lang.String text)
Prints the app status.
|
static java.lang.String |
printAppVersion()
Prints the app version.
|
static void |
printStatusBarValue(java.lang.String key,
java.lang.String value)
Prints the status bar value.
|
static void |
setValue(java.lang.String key,
java.lang.Object value)
Sets the value.
|
static void |
start()
Start.
|
public static final java.awt.Color COLOR_BLUISH
public static java.util.HashMap<java.lang.String,java.lang.Object> globalValues
public static com.strategyquant.core.app.MainAppIface instance
public static void start()
public static java.lang.String getDataPath()
public static int getAppVersion()
public static javax.swing.JFrame getFrame()
public static java.lang.String getHelpFile()
public static java.lang.String getProduct()
public static javax.swing.ImageIcon getHelpIcon()
public static javax.swing.ImageIcon getSmallHelpIcon()
public static com.strategyquant.core.gui.panels.SQSplashScreen getSplashScreen()
public static void drawSplashProgress(java.lang.String text)
text
- the textpublic static com.strategyquant.core.gui.panels.TaskFrame getTaskFrame()
public static boolean isRelease()
public static com.strategyquant.core.db.BaseDb getDb()
public static void printAppStatus(java.lang.String text)
text
- the textpublic static void printStatusBarValue(java.lang.String key, java.lang.String value)
key
- the keyvalue
- the valuepublic static int getLicenseType()
public static java.lang.String getLicenseOwner()
public static java.lang.String getLicenseCode()
public static java.lang.String getHardwareID()
public static java.lang.String getMACaddress()
public static java.lang.String getDiskSN()
public static java.lang.String getUniqID()
public static long getDateID()
public static void openAboutDialog()
public static java.lang.String printAppVersion()
public static java.lang.Object getValue(java.lang.String key)
key
- the keypublic static java.lang.Object getValue(java.lang.String key, java.lang.Object defaultValue)
key
- the keydefaultValue
- the default valuepublic static void setValue(java.lang.String key, java.lang.Object value)
key
- the keyvalue
- the value