Package eu.isas.searchgui.gui
Class SoftwareLocationDialog
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
eu.isas.searchgui.gui.SoftwareLocationDialog
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,RootPaneContainer,WindowConstants
The search engines settings dialog.
- Author:
- Harald Barsnes
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialogNested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPEFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionSoftwareLocationDialog(SearchGUI searchGUIMainFrame, boolean modal) Creates a new SearchEnginesSettingsDialog. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method should be called whenever 'browse' has been pressed for the Andromeda location.voidThis method should be called whenever 'browse' has been pressed for the Comet location.voidThis method should be called whenever 'browse' has been pressed for the DirecTag location.voidThis method should be called whenever 'browse' has been pressed for the MetaMorpheus location.voidThis method should be called whenever 'browse' has been pressed for the MS Amanda location.voidThis method should be called whenever 'browse' has been pressed for the MS-GF+ location.voidThis method should be called whenever 'browse' has been pressed for the MyriMatch location.voidThis method should be called whenever 'browse' has been pressed for the Novor location.voidThis method should be called whenever 'browse' has been pressed for the OMSSA location.voidThis method should be called whenever 'browse' has been pressed for the Sage location.voidbrowseSearchEngineLocationPressed(com.compomics.util.experiment.identification.Advocate advocate, String firstTargetName, String secondTargetName, JTextField searchEngineLocationTxt) This method should be called whenever 'browse' has been pressed for a search engine location.voidbrowseSearchEngineLocationPressed(com.compomics.util.experiment.identification.Advocate advocate, String firstTargetName, JTextField searchEngineLocationTxt) This method should be called whenever 'browse' has been pressed for a search engine location.voidThis method should be called whenever 'browse' has been pressed for the Tide location.voidThis method should be called whenever 'browse' has been pressed for the X!Tandem location.Returns the Andromeda location.Returns the Comet location.Returns the DirecTag location.Returns the makeblastdb location.Returns the MetaMorpheus location.Returns the MS Amanda location.Returns the MS-GF+ location.Returns the MyriMatch location.Returns the Novor location.Returns the OMSSA location.Returns the Sage location.Returns the Tide location.Returns the X! Tandem location.booleanReturns whether Andromeda is enabled.booleanReturns whether Comet is enabled.booleanReturns whether DirecTag is enabled.booleanReturns whether MetaMorpheus is enabled.booleanReturns whether MS Amanda is enabled.booleanReturns whether MS-GF+ is enabled.booleanReturns whether MyriMatch is enabled.booleanReturns whether Novor is enabled.booleanReturns whether OMSSA is enabled.booleanReturns whether Sage is enabled.booleanReturns whether Tide is enabled.booleanReturns whether X! Tandem is enabled.booleanvalidateSearchEngineFolder(File aFile, String targetFile) This method validates whether the specified folder is the root folder if the given search engine.booleanvalidateSearchEngineFolder(File aFile, String targetFile, String secondTargetFile) This method validates whether the specified folder is the root folder of the given search engine.Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
SoftwareLocationDialog
Creates a new SearchEnginesSettingsDialog.- Parameters:
searchGUIMainFrame- reference to the SearchGUI main framemodal- if the dialog is to be modal
-
-
Method Details
-
browseOMSSALocationPressed
public void browseOMSSALocationPressed()This method should be called whenever 'browse' has been pressed for the OMSSA location. It auto-validates the OMSSA location. -
browseXTandemLocationPressed
public void browseXTandemLocationPressed()This method should be called whenever 'browse' has been pressed for the X!Tandem location. It auto-validates the X!Tandem location. -
browseMsgfLocationPressed
public void browseMsgfLocationPressed()This method should be called whenever 'browse' has been pressed for the MS-GF+ location. It auto-validates the MS-GF+ location. -
browseMsAmandaLocationPressed
public void browseMsAmandaLocationPressed()This method should be called whenever 'browse' has been pressed for the MS Amanda location. It auto-validates the MS Amanda location. -
browseMyriMatchLocationPressed
public void browseMyriMatchLocationPressed()This method should be called whenever 'browse' has been pressed for the MyriMatch location. It auto-validates the MyriMatch location. -
browseCometLocationPressed
public void browseCometLocationPressed()This method should be called whenever 'browse' has been pressed for the Comet location. It auto-validates the Comet location. -
browseTideLocationPressed
public void browseTideLocationPressed()This method should be called whenever 'browse' has been pressed for the Tide location. It auto-validates the Tide location. -
browseAndromedaLocationPressed
public void browseAndromedaLocationPressed()This method should be called whenever 'browse' has been pressed for the Andromeda location. It auto-validates the Andromeda location. -
browseMetaMorpheusLocationPressed
public void browseMetaMorpheusLocationPressed()This method should be called whenever 'browse' has been pressed for the MetaMorpheus location. It auto-validates the MetaMorpheus location. -
browseSageLocationPressed
public void browseSageLocationPressed()This method should be called whenever 'browse' has been pressed for the Sage location. It auto-validates the Sage location. -
browseNovorLocationPressed
public void browseNovorLocationPressed()This method should be called whenever 'browse' has been pressed for the Novor location. It auto-validates the Novor location. -
browseDirecTagLocationPressed
public void browseDirecTagLocationPressed()This method should be called whenever 'browse' has been pressed for the DirecTag location. It auto-validates the DirecTag location. -
browseSearchEngineLocationPressed
public void browseSearchEngineLocationPressed(com.compomics.util.experiment.identification.Advocate advocate, String firstTargetName, JTextField searchEngineLocationTxt) This method should be called whenever 'browse' has been pressed for a search engine location. It auto-validates the location.- Parameters:
advocate- the search engine advocatefirstTargetName- the name of the first targetsearchEngineLocationTxt- the text file displaying the search engine location
-
browseSearchEngineLocationPressed
public void browseSearchEngineLocationPressed(com.compomics.util.experiment.identification.Advocate advocate, String firstTargetName, String secondTargetName, JTextField searchEngineLocationTxt) This method should be called whenever 'browse' has been pressed for a search engine location. It auto-validates the location.- Parameters:
advocate- the search engine advocatefirstTargetName- the name of the first targetsecondTargetName- the name of the second target, can be nullsearchEngineLocationTxt- the text file displaying the search engine location
-
validateSearchEngineFolder
This method validates whether the specified folder is the root folder if the given search engine.- Parameters:
aFile- file with the search engine root foldertargetFile- the file required in the search engine root folder- Returns:
- boolean to indicate whether the correct search engine root folder has been selected.
-
validateSearchEngineFolder
This method validates whether the specified folder is the root folder of the given search engine.- Parameters:
aFile- file with the search engine root foldertargetFile- the file required in the search engine root foldersecondTargetFile- the second file required in the search engine root folder, can be null- Returns:
- boolean to indicate whether the correct search engine root folder has been selected.
-
isOmssaEnabled
public boolean isOmssaEnabled()Returns whether OMSSA is enabled.- Returns:
- a boolean indicating if OMSSA is enabled
-
isXtandemEnabled
public boolean isXtandemEnabled()Returns whether X! Tandem is enabled.- Returns:
- a boolean indicating if X! Tandem is enabled
-
isMsgfEnabled
public boolean isMsgfEnabled()Returns whether MS-GF+ is enabled.- Returns:
- a boolean indicating if MS-GF+ is enabled
-
isMsAmandaEnabled
public boolean isMsAmandaEnabled()Returns whether MS Amanda is enabled.- Returns:
- a boolean indicating if MS Amanda is enabled
-
isMyriMatchEnabled
public boolean isMyriMatchEnabled()Returns whether MyriMatch is enabled.- Returns:
- a boolean indicating if MyriMatch is enabled
-
isCometEnabled
public boolean isCometEnabled()Returns whether Comet is enabled.- Returns:
- a boolean indicating if Comet is enabled
-
isTideEnabled
public boolean isTideEnabled()Returns whether Tide is enabled.- Returns:
- a boolean indicating if Tide is enabled
-
isAndromedaEnabled
public boolean isAndromedaEnabled()Returns whether Andromeda is enabled.- Returns:
- a boolean indicating if Andromeda is enabled
-
isMetaMorpheusEnabled
public boolean isMetaMorpheusEnabled()Returns whether MetaMorpheus is enabled.- Returns:
- a boolean indicating if MetaMorpheus is enabled
-
isSageEnabled
public boolean isSageEnabled()Returns whether Sage is enabled.- Returns:
- a boolean indicating if sage is enabled
-
isNovorEnabled
public boolean isNovorEnabled()Returns whether Novor is enabled.- Returns:
- a boolean indicating if Novor is enabled
-
isDirecTagEnabled
public boolean isDirecTagEnabled()Returns whether DirecTag is enabled.- Returns:
- a boolean indicating if DirecTag is enabled
-
getOmssaLocation
Returns the OMSSA location.- Returns:
- the OMSSA location
-
getXtandemLocation
Returns the X! Tandem location.- Returns:
- the X! Tandem location
-
getMsgfLocation
Returns the MS-GF+ location.- Returns:
- the MS-GF+ location
-
getMsAmandaLocation
Returns the MS Amanda location.- Returns:
- the MS Amanda location
-
getMyriMatchLocation
Returns the MyriMatch location.- Returns:
- the MyriMatch location
-
getCometLocation
Returns the Comet location.- Returns:
- the Comet location
-
getTideLocation
Returns the Tide location.- Returns:
- the Tide location
-
getAndromedaLocation
Returns the Andromeda location.- Returns:
- the Andromeda location
-
getMetaMorpheusLocation
Returns the MetaMorpheus location.- Returns:
- the MetaMorpheus location
-
getSageLocation
Returns the Sage location.- Returns:
- the Sage location
-
getNovorLocation
Returns the Novor location.- Returns:
- the Novor location
-
getDirecTagLocation
Returns the DirecTag location.- Returns:
- the DirecTag location
-
getMakeblastdbLocation
Returns the makeblastdb location.- Returns:
- the makeblastdb location
-