cct.grid.ui.gaussian
Class SubmitGaussianPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by cct.grid.ui.gaussian.SubmitGaussianPanel
All Implemented Interfaces:
ClientProgramInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class SubmitGaussianPanel
extends javax.swing.JPanel
implements ClientProgramInterface

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2006

Company: ANU

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private) static java.lang.String defaultScriptContent
           
(package private)  javax.swing.JButton editScriptButton
           
(package private)  javax.swing.JButton executableButton
           
(package private) static java.lang.String executableKey
           
(package private)  javax.swing.JLabel executableLabel
           
(package private)  javax.swing.JTextField executableTextField
           
(package private) static java.lang.String gaussianExecutable
           
(package private) static java.lang.String gaussianOutputFileTag
           
(package private)  java.awt.GridBagLayout gridBagLayout1
           
(package private)  javax.swing.JButton inputButton
           
(package private)  javax.swing.JCheckBox InputCheckBox
           
(package private)  javax.swing.JLabel inputFileLabel
           
(package private) static java.lang.String inputFilePattern
           
(package private)  javax.swing.JTextField inputFileTextField
           
(package private)  javax.swing.JLabel jobNameLabel
           
(package private)  javax.swing.JTextField jobNameTextField
           
(package private)  javax.swing.JButton localDirButton
           
(package private) static java.lang.String localDirKey
           
(package private)  javax.swing.JLabel LocalDirLabel
           
(package private)  javax.swing.JTextField LocalDirTextField
           
(package private)  javax.swing.JLabel OutputFileLabel
           
(package private) static java.lang.String outputFilePattern
           
(package private)  javax.swing.JTextField OutputFileTextField
           
(package private) static java.util.ArrayList<java.lang.String> PreprocessDirectives
           
(package private)  javax.swing.JButton remoteDirButton
           
(package private) static java.lang.String remoteDirKey
           
(package private)  javax.swing.JLabel RemoteDirLabel
           
(package private)  javax.swing.JTextField RemoteDirTextField
           
(package private) static java.lang.String scriptContent
           
(package private) static java.lang.String scriptContentKey
           
(package private)  javax.swing.JLabel ScriptLabel
           
(package private)  javax.swing.JTextField ScriptTextField
           
(package private) static java.lang.String softwareName
           
(package private)  javax.swing.JButton StderrButton
           
(package private)  javax.swing.JCheckBox StderrCheckBox
           
(package private)  javax.swing.JLabel StderrLabel
           
(package private)  javax.swing.JTextField StderrTextField
           
(package private)  javax.swing.JButton StdoutButton
           
(package private)  javax.swing.JCheckBox StdoutCheckBox
           
(package private)  javax.swing.JLabel StdoutLabel
           
(package private)  javax.swing.JTextField StdoutTextField
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SubmitGaussianPanel()
           
 
Method Summary
 void editScriptButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void enableInputFile(boolean enable)
           
 void enableLocalDir(boolean enable)
           
 void executableButton_actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.String getCommandsAsString()
           
 java.lang.String getExecutable()
           
 java.lang.String getInputFile()
           
 java.lang.String getInputFileName()
           
 java.lang.String getJobName()
           
 java.lang.String getLocalDirectory()
           
 java.lang.String getOutputFile()
           
 java.lang.String getOutputFileName()
           
 java.lang.String getProgramName()
           
 java.lang.String getRemoteDirectory()
           
 java.lang.String getScriptContents()
           
 java.lang.String getScriptFile()
           
 java.lang.String getScriptName()
           
 java.lang.String getSoftwareName()
           
 java.lang.String getStderrFileName()
           
 java.lang.String getStdoutFileName()
           
 java.awt.Component getVisualComponent()
           
 void InputCheckBox_itemStateChanged(java.awt.event.ItemEvent e)
           
 void localDirButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void remoteDirButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void RemoteDirTextField_actionPerformed(java.awt.event.ActionEvent e)
           
 void saveCurrentSettings()
           
 void ScriptButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void setCheckPointFile(CheckPoint chkp)
           
 void setInputFile(java.lang.String fileName)
           
 void setJobDescription(JobDescription job)
           
 void setLocalDirectory(java.lang.String localDir)
           
 void setRemoteDirectory(java.lang.String remoteDir)
           
 void setRemoteFileChooser(FileChooserInterface rFC)
           
 void setResourcesInterface(ResourcesProviderInterface resources)
           
 void setTaskProviderInterface(GridProviderInterface provider)
           
 void StdoutCheckBox_itemStateChanged(java.awt.event.ItemEvent e)
           
 void validateScript(java.lang.String text)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

gaussianOutputFileTag

static final java.lang.String gaussianOutputFileTag
See Also:
Constant Field Values

softwareName

static final java.lang.String softwareName
See Also:
Constant Field Values

localDirKey

static final java.lang.String localDirKey
See Also:
Constant Field Values

remoteDirKey

static final java.lang.String remoteDirKey
See Also:
Constant Field Values

executableKey

static final java.lang.String executableKey
See Also:
Constant Field Values

scriptContentKey

static final java.lang.String scriptContentKey
See Also:
Constant Field Values

inputFilePattern

static final java.lang.String inputFilePattern
See Also:
Constant Field Values

outputFilePattern

static final java.lang.String outputFilePattern
See Also:
Constant Field Values

gaussianExecutable

static final java.lang.String gaussianExecutable
See Also:
Constant Field Values

PreprocessDirectives

static final java.util.ArrayList<java.lang.String> PreprocessDirectives

defaultScriptContent

static java.lang.String defaultScriptContent

scriptContent

static java.lang.String scriptContent

ScriptLabel

javax.swing.JLabel ScriptLabel

ScriptTextField

javax.swing.JTextField ScriptTextField

InputCheckBox

javax.swing.JCheckBox InputCheckBox

inputButton

javax.swing.JButton inputButton

remoteDirButton

javax.swing.JButton remoteDirButton

executableButton

javax.swing.JButton executableButton

localDirButton

javax.swing.JButton localDirButton

editScriptButton

javax.swing.JButton editScriptButton

RemoteDirLabel

javax.swing.JLabel RemoteDirLabel

RemoteDirTextField

javax.swing.JTextField RemoteDirTextField

LocalDirLabel

javax.swing.JLabel LocalDirLabel

LocalDirTextField

javax.swing.JTextField LocalDirTextField

StderrLabel

javax.swing.JLabel StderrLabel

executableLabel

javax.swing.JLabel executableLabel

StderrTextField

javax.swing.JTextField StderrTextField

executableTextField

javax.swing.JTextField executableTextField

StdoutLabel

javax.swing.JLabel StdoutLabel

StdoutTextField

javax.swing.JTextField StdoutTextField

StderrCheckBox

javax.swing.JCheckBox StderrCheckBox

StdoutCheckBox

javax.swing.JCheckBox StdoutCheckBox

StdoutButton

javax.swing.JButton StdoutButton

StderrButton

javax.swing.JButton StderrButton

OutputFileTextField

javax.swing.JTextField OutputFileTextField

OutputFileLabel

javax.swing.JLabel OutputFileLabel

jobNameLabel

javax.swing.JLabel jobNameLabel

jobNameTextField

javax.swing.JTextField jobNameTextField

inputFileLabel

javax.swing.JLabel inputFileLabel

inputFileTextField

javax.swing.JTextField inputFileTextField

gridBagLayout1

java.awt.GridBagLayout gridBagLayout1
Constructor Detail

SubmitGaussianPanel

public SubmitGaussianPanel()
Method Detail

getSoftwareName

public java.lang.String getSoftwareName()
Specified by:
getSoftwareName in interface ClientProgramInterface

getProgramName

public java.lang.String getProgramName()
Specified by:
getProgramName in interface ClientProgramInterface

setRemoteFileChooser

public void setRemoteFileChooser(FileChooserInterface rFC)
Specified by:
setRemoteFileChooser in interface ClientProgramInterface

setResourcesInterface

public void setResourcesInterface(ResourcesProviderInterface resources)
Specified by:
setResourcesInterface in interface ClientProgramInterface

setTaskProviderInterface

public void setTaskProviderInterface(GridProviderInterface provider)
Specified by:
setTaskProviderInterface in interface ClientProgramInterface

getCommandsAsString

public java.lang.String getCommandsAsString()
                                     throws java.lang.Exception
Specified by:
getCommandsAsString in interface ClientProgramInterface
Throws:
java.lang.Exception

saveCurrentSettings

public void saveCurrentSettings()

getLocalDirectory

public java.lang.String getLocalDirectory()
Specified by:
getLocalDirectory in interface ClientProgramInterface

ScriptButton_actionPerformed

public void ScriptButton_actionPerformed(java.awt.event.ActionEvent e)

setInputFile

public void setInputFile(java.lang.String fileName)
Specified by:
setInputFile in interface ClientProgramInterface

getJobName

public java.lang.String getJobName()
Specified by:
getJobName in interface ClientProgramInterface

getOutputFileName

public java.lang.String getOutputFileName()

getStdoutFileName

public java.lang.String getStdoutFileName()
Specified by:
getStdoutFileName in interface ClientProgramInterface

getStderrFileName

public java.lang.String getStderrFileName()
Specified by:
getStderrFileName in interface ClientProgramInterface

getScriptName

public java.lang.String getScriptName()

getRemoteDirectory

public java.lang.String getRemoteDirectory()
Specified by:
getRemoteDirectory in interface ClientProgramInterface

RemoteDirTextField_actionPerformed

public void RemoteDirTextField_actionPerformed(java.awt.event.ActionEvent e)

editScriptButton_actionPerformed

public void editScriptButton_actionPerformed(java.awt.event.ActionEvent e)

validateScript

public void validateScript(java.lang.String text)
                    throws java.lang.NullPointerException,
                           java.lang.IllegalArgumentException
Throws:
java.lang.NullPointerException
java.lang.IllegalArgumentException

getScriptContents

public java.lang.String getScriptContents()

getInputFileName

public java.lang.String getInputFileName()

StdoutCheckBox_itemStateChanged

public void StdoutCheckBox_itemStateChanged(java.awt.event.ItemEvent e)

getExecutable

public java.lang.String getExecutable()

InputCheckBox_itemStateChanged

public void InputCheckBox_itemStateChanged(java.awt.event.ItemEvent e)

remoteDirButton_actionPerformed

public void remoteDirButton_actionPerformed(java.awt.event.ActionEvent e)

localDirButton_actionPerformed

public void localDirButton_actionPerformed(java.awt.event.ActionEvent e)

enableInputFile

public void enableInputFile(boolean enable)
Specified by:
enableInputFile in interface ClientProgramInterface

enableLocalDir

public void enableLocalDir(boolean enable)
Specified by:
enableLocalDir in interface ClientProgramInterface

getInputFile

public java.lang.String getInputFile()
Specified by:
getInputFile in interface ClientProgramInterface

getOutputFile

public java.lang.String getOutputFile()
Specified by:
getOutputFile in interface ClientProgramInterface

getScriptFile

public java.lang.String getScriptFile()
Specified by:
getScriptFile in interface ClientProgramInterface

getVisualComponent

public java.awt.Component getVisualComponent()
Specified by:
getVisualComponent in interface ClientProgramInterface

setLocalDirectory

public void setLocalDirectory(java.lang.String localDir)
Specified by:
setLocalDirectory in interface ClientProgramInterface

setRemoteDirectory

public void setRemoteDirectory(java.lang.String remoteDir)
Specified by:
setRemoteDirectory in interface ClientProgramInterface

setCheckPointFile

public void setCheckPointFile(CheckPoint chkp)
Specified by:
setCheckPointFile in interface ClientProgramInterface

setJobDescription

public void setJobDescription(JobDescription job)
                       throws java.lang.Exception
Specified by:
setJobDescription in interface ClientProgramInterface
Throws:
java.lang.Exception

executableButton_actionPerformed

public void executableButton_actionPerformed(java.awt.event.ActionEvent e)