|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lapetus_ltd.api.TLptsMainDatabase
public class TLptsMainDatabase
Class Description : This is the main module for dbJAPI, and it is responsible for initialising the system.
The init()
function needs to be called at the beginning of every application that uses dbJAPI.
Method Summary | |
---|---|
static void |
cursorNormal()
Shows a normal cursor if the main application frame has been set. |
static void |
cursorWait()
Shows a wait cursor if the main application frame has been set. |
static javax.swing.JFrame |
getApplicationMainFrame()
Gets the main application frame set by setApplicationMainFrame(javax.swing.JFrame) . |
static void |
init()
Initiates all the static modules of dbJAPI. |
static void |
init(java.lang.String appPath)
Initiates all the static modules of dbJAPI. |
static void |
setApplicationMainFrame(javax.swing.JFrame frame)
Sets the application main frame to be used for cursor changing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void cursorNormal()
setApplicationMainFrame(javax.swing.JFrame)
.
static public void main(String[] args) { TLptsMainDatabase.init(); .. // init application data TLptsMainDatabase.setApplicationMainFrame(new MyDbJAPIApplicationFrame()); } private class MyDbJAPIApplicationFrame { private MyDbJAPIApplicationFrame() { } public void myGreatFunction() { TLptsMainDatabase.cursorWait(); // ... do all the magic stuff while the user waits TLptsMainDatabase.cursorNormal(); } }
public static void cursorWait()
setApplicationMainFrame(javax.swing.JFrame)
.
static public void main(String[] args) { TLptsMainDatabase.init(); .. // init application data TLptsMainDatabase.setApplicationMainFrame(new MyDbJAPIApplicationFrame()); } private class MyDbJAPIApplicationFrame { private MyDbJAPIApplicationFrame() { } public void myGreatFunction() { TLptsMainDatabase.cursorWait(); // ... do all the stuff while the user waits TLptsMainDatabase.cursorNormal(); } }
public static javax.swing.JFrame getApplicationMainFrame()
setApplicationMainFrame(javax.swing.JFrame)
.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : N/A
Notes :
public static void init()
static public void main(String[] args) { TLptsMainDatabase.init(); ... }
public static void init(java.lang.String appPath)
static public void main(String[] args) { TLptsMainDatabase.init(appPath); ... }
appPath
- path to the application or plugin.public static void setApplicationMainFrame(javax.swing.JFrame frame)
static public void main(String[] args) { TLptsMainDatabase.init(); .. // init application data TLptsMainDatabase.setApplicationMainFrame(new MyDbJAPIApplicationFrame()); }
frame
- The frame to set as the main application frame.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |