be.six.reports
Class Application
java.lang.Object
be.six.reports.Application
public class Application
- extends java.lang.Object
Singleton used to start the application and to maintain state.
- Author:
- Joren Six
Constructor Summary |
Application()
Create the GUI and show it. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Application
public Application()
- Create the GUI and show it. For thread safety, this constructor uses the
event-dispatching thread to initialize and show the JFrame.
toggleWait
public void toggleWait()
- Sets the application to 'wait' if there is a task in the background,
removes the wait state otherwise. In wait state the application shows a
wait cursor.
queryList
public java.util.Vector<Query> queryList()
- Returns:
- a list with the Query objects represented by the .sql files in
the queriesdirectory.
main
public static void main(java.lang.String[] args)
- Parameters:
args
- an empty list
getInstance
public static Application getInstance()
- Returns:
- the only application instance
selectFolder
public void selectFolder(java.lang.String title,
Configuration.ConfigurationKey key)