be.six.reports
Class Application

java.lang.Object
  extended by 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.
 
Method Summary
static Application getInstance()
           
static void main(java.lang.String[] args)
           
 java.util.Vector<Query> queryList()
           
 void selectFolder(java.lang.String title, Configuration.ConfigurationKey key)
           
 void toggleWait()
          Sets the application to 'wait' if there is a task in the background, removes the wait state otherwise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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)