|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.upenn.gloDB.gui.GUIUtils
public class GUIUtils
Static methods used throughout the GUI.
Field Summary | |
---|---|
private static javax.swing.JFileChooser |
fileChooser
|
private static boolean |
SHOW_ALL_FILES
By using global static variables, these values will persist across instances of the open/save fileChoosers. |
private static boolean |
USE_FILE_EXTENSIONS
|
Constructor Summary | |
---|---|
GUIUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getFilename(java.io.File file)
On Windows machines the path contains "\\", however, when converted to a String, this becomes "\". |
static void |
newSequenceLoader(java.lang.String id)
Present a dialog box for changing sequence loader. |
static java.util.HashMap |
openFileChooser(int type,
javax.swing.filechooser.FileFilter filter)
Create a file chooser for opening files. |
static java.lang.String |
renameTrack(java.lang.String id)
Present a dialog box for renaming a particular Track. |
static void |
resetGUIDefaults()
RE-set GUI user defaults. |
static java.util.HashMap |
saveFileChooser(int type,
javax.swing.filechooser.FileFilter filter)
Use a JFileChooser the get the file info for saving a Sequence. |
static java.lang.String |
sequenceSelector()
Present a dialog box for selecting a particular Sequence. |
static void |
setShowAllFiles(boolean showAllFiles)
Set the SHOW_ALL_FILES flag. |
static void |
setUseFileExtensions(boolean useFileExtensions)
Set the USE_FILE_EXTENSIONS flag. |
static boolean |
showAllFiles()
|
static java.lang.String |
trackSelector()
Present a dialog box for selecting a particular Track. |
static boolean |
useFileExtensions()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static javax.swing.JFileChooser fileChooser
private static boolean SHOW_ALL_FILES
private static boolean USE_FILE_EXTENSIONS
Constructor Detail |
---|
public GUIUtils()
Method Detail |
---|
public static void setShowAllFiles(boolean showAllFiles)
public static boolean showAllFiles()
public static void setUseFileExtensions(boolean useFileExtensions)
public static boolean useFileExtensions()
public static void resetGUIDefaults()
public static java.lang.String getFilename(java.io.File file)
public static java.lang.String renameTrack(java.lang.String id)
public static void newSequenceLoader(java.lang.String id)
public static java.lang.String trackSelector()
public static java.lang.String sequenceSelector()
public static java.util.HashMap openFileChooser(int type, javax.swing.filechooser.FileFilter filter)
public static java.util.HashMap saveFileChooser(int type, javax.swing.filechooser.FileFilter filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |