|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.Application
databionics.GraphicalApplication
public class GraphicalApplication
Base class for graphical applications. Adds a variable for the main window and handles hiding the window if the program is stopped from within the frontend.
for more information how to use it.
Field Summary | |
---|---|
protected BaseMainFrame |
frame
main program window |
protected static org.apache.log4j.Logger |
log
interface to log4j system |
Fields inherited from class databionics.Application |
---|
banner, cmd, conf, done, env, exitCode, home, messages, msgfile, name, nf, options, project, standalone, thread, workdir |
Constructor Summary | |
---|---|
GraphicalApplication()
Standard constructor. |
|
GraphicalApplication(boolean standalone)
Constructor with flag for standalone mode. |
Method Summary | |
---|---|
void |
exit(int exitCode)
Really exit if run in standalone mode, otherwise only set done flag for frontend and hide mai window. |
BaseMainFrame |
getFrame()
Get main program window. |
void |
sleepAndExit()
Things to be done after main window is displayed. |
Methods inherited from class databionics.Application |
---|
exitOnInterruption, getBanner, getColorGradient, getColorPath, getConfigPath, getExitCode, getHelpFile, getHome, getLibPath, getMessage, getName, getProject, getThread, getWorkDir, init, init, interrupt, interrupted, isDone, main, printHelp, printVersion, run, setProject, setStandAlone, setWorkDir, sleep, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger log
protected BaseMainFrame frame
Constructor Detail |
---|
public GraphicalApplication()
public GraphicalApplication(boolean standalone)
standalone
- flag whether app is run in stand alone mode from own main
methodMethod Detail |
---|
public BaseMainFrame getFrame()
public void sleepAndExit()
public void exit(int exitCode)
exit
in class Application
exitCode
- exit code for System.exit() in standalone mode.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |