cct.grid.ui
Class PBSPanel

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.PBSPanel
All Implemented Interfaces:
SchedulerInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PBSPanel
extends javax.swing.JPanel
implements SchedulerInterface

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Call validateValues() before querying for values Setup ResourcesProviderInterface and ClientProgramInterface before calling getCommandsAsString()

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)  java.awt.BorderLayout borderLayout1
           
(package private)  ClientProgramInterface clientProgram
           
(package private) static java.lang.String cpuKey
           
(package private) static java.lang.String CUSTOM_PROPERTY_FILE
           
(package private) static java.lang.String DEFAULT_QUEUE
           
(package private) static java.lang.String DIVIDER
           
(package private) static java.lang.String ENABLE_EDIT_EXTENSIONS
           
(package private) static java.lang.String ENABLE_EDIT_QUEUE
           
(package private) static java.lang.String ENABLE_EXTENSIONS
           
 javax.swing.JCheckBox extCheckBox
           
(package private)  javax.swing.JPanel extensionsPanel
           
(package private)  java.awt.FlowLayout flowLayout1
           
(package private)  java.awt.GridBagLayout gridBagLayout1
           
(package private) static java.lang.String jobfsKey
           
(package private)  javax.swing.JLabel jobfsLabel
           
 javax.swing.JTextField JobfsTextField
           
(package private)  javax.swing.JPanel jPanel1
           
(package private)  javax.swing.JPanel jPanel2
           
(package private)  javax.swing.JTabbedPane jTabbedPane1
           
(package private) static java.lang.String memoryKey
           
(package private)  java.util.prefs.Preferences prefs
           
(package private) static java.lang.String projectKey
           
(package private)  javax.swing.JLabel projectLabel
           
 javax.swing.JTextField ProjectTextField
           
(package private) static java.lang.String queueKey
           
(package private)  javax.swing.JLabel queueLabel
           
 javax.swing.JTextField QueueTextField
           
(package private)  ResourcesProviderInterface resourcesProvider
           
(package private)  javax.swing.JLabel softLabel
           
(package private) static java.lang.String softwareKey
           
 javax.swing.JTextField SoftwareTextField
           
(package private) static java.lang.String timeKey
           
 
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
PBSPanel()
           
PBSPanel(java.lang.String project, java.lang.String queue, int time, int memory, int jobfs, java.lang.String software)
           
 
Method Summary
 boolean areExtensionsEnabled()
           
 java.lang.String getCommandsAsString()
           
 int getJobFS()
           
static java.lang.String getMaxWallTimeFormatted(int timeInSeconds)
          Returns time in the format [[hours:]minutes:]seconds
 java.lang.Object getOption(java.lang.String option)
           
 java.lang.String getProject()
           
 java.lang.String getQueue()
           
 java.lang.String getSoftware()
           
 java.awt.Component getVisualComponent()
           
 void ProjectTextField_actionPerformed(java.awt.event.ActionEvent e)
           
 void saveCurrentSettings()
           
 void setClientProgram(ClientProgramInterface client)
           
 void setDefaultProject()
           
 void setJobDescription(JobDescription job)
           
 void setResourcesProvider(ResourcesProviderInterface resources)
           
 void validateValues()
           
 
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

CUSTOM_PROPERTY_FILE

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

DIVIDER

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

ENABLE_EXTENSIONS

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

ENABLE_EDIT_EXTENSIONS

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

DEFAULT_QUEUE

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

ENABLE_EDIT_QUEUE

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

resourcesProvider

ResourcesProviderInterface resourcesProvider

clientProgram

ClientProgramInterface clientProgram

prefs

java.util.prefs.Preferences prefs

queueLabel

javax.swing.JLabel queueLabel

jobfsLabel

javax.swing.JLabel jobfsLabel

softLabel

javax.swing.JLabel softLabel

projectLabel

javax.swing.JLabel projectLabel

ProjectTextField

public javax.swing.JTextField ProjectTextField

QueueTextField

public javax.swing.JTextField QueueTextField

JobfsTextField

public javax.swing.JTextField JobfsTextField

SoftwareTextField

public javax.swing.JTextField SoftwareTextField

extCheckBox

public javax.swing.JCheckBox extCheckBox

projectKey

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

queueKey

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

timeKey

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

memoryKey

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

jobfsKey

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

softwareKey

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

cpuKey

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

jPanel1

javax.swing.JPanel jPanel1

gridBagLayout1

java.awt.GridBagLayout gridBagLayout1

borderLayout1

java.awt.BorderLayout borderLayout1

jTabbedPane1

javax.swing.JTabbedPane jTabbedPane1

jPanel2

javax.swing.JPanel jPanel2

extensionsPanel

javax.swing.JPanel extensionsPanel

flowLayout1

java.awt.FlowLayout flowLayout1
Constructor Detail

PBSPanel

public PBSPanel()

PBSPanel

public PBSPanel(java.lang.String project,
                java.lang.String queue,
                int time,
                int memory,
                int jobfs,
                java.lang.String software)
Method Detail

saveCurrentSettings

public void saveCurrentSettings()

setDefaultProject

public void setDefaultProject()

getProject

public java.lang.String getProject()
Specified by:
getProject in interface SchedulerInterface

getQueue

public java.lang.String getQueue()

getSoftware

public java.lang.String getSoftware()

getJobFS

public int getJobFS()

areExtensionsEnabled

public boolean areExtensionsEnabled()

ProjectTextField_actionPerformed

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

setResourcesProvider

public void setResourcesProvider(ResourcesProviderInterface resources)
Specified by:
setResourcesProvider in interface SchedulerInterface

setClientProgram

public void setClientProgram(ClientProgramInterface client)

getMaxWallTimeFormatted

public static java.lang.String getMaxWallTimeFormatted(int timeInSeconds)
Returns time in the format [[hours:]minutes:]seconds

Returns:
String

getCommandsAsString

public java.lang.String getCommandsAsString()
Specified by:
getCommandsAsString in interface SchedulerInterface

validateValues

public void validateValues()
                    throws java.lang.Exception
Throws:
java.lang.Exception

getVisualComponent

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

getOption

public java.lang.Object getOption(java.lang.String option)
Specified by:
getOption in interface SchedulerInterface

setJobDescription

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