org.qriterium.dogma.gui
Class GUILib

java.lang.Object
  extended by org.qriterium.dogma.gui.GUILib

public class GUILib
extends java.lang.Object

Library class for different gui-items used in Dogma.


Constructor Summary
GUILib()
           
 
Method Summary
static void showAbout()
          Creates the about - window
static java.lang.String showDBChooser(java.lang.String lastPath)
          Creates the window for choosing the database-file.
static void showDialog(java.lang.String text)
          Creates a pop-up window with given text.
static java.lang.String showFileChooser(java.lang.String text, java.lang.String lastPath, java.lang.String[] filterExtensions)
          Creates a window for choosing a file.
static java.lang.String showSQLQueryWindow()
          Creates a new window for a sql-query and returns the user input as a string.
static java.lang.String showTextFileChooser(java.lang.String lastPath)
          Creates the window for choosing the text-dump file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUILib

public GUILib()
Method Detail

showAbout

public static void showAbout()
Creates the about - window


showDialog

public static void showDialog(java.lang.String text)
Creates a pop-up window with given text.


showDBChooser

public static java.lang.String showDBChooser(java.lang.String lastPath)
Creates the window for choosing the database-file.

Parameters:
lastPath - previous path used
Returns:
Returns path to the chosen database-file.

showTextFileChooser

public static java.lang.String showTextFileChooser(java.lang.String lastPath)
Creates the window for choosing the text-dump file.

Parameters:
lastPath - previous path used
Returns:
Returns path to the chosen database-file.

showFileChooser

public static java.lang.String showFileChooser(java.lang.String text,
                                               java.lang.String lastPath,
                                               java.lang.String[] filterExtensions)
Creates a window for choosing a file.

Parameters:
text - text shown in the window
lastPath - previous path used
Returns:
Returns path to the chosen.

showSQLQueryWindow

public static java.lang.String showSQLQueryWindow()
Creates a new window for a sql-query and returns the user input as a string.