uk.ac.rdg.resc.jstyx.gridservice.client
Class SGSInstanceGUI

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by uk.ac.rdg.resc.jstyx.gridservice.client.SGSInstanceGUI
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, SGSInstanceClientChangeListener

public class SGSInstanceGUI
extends javax.swing.JFrame
implements SGSInstanceClientChangeListener

GUI for interacting with an SGS instance. This class DOES NOT WORK at the moment! It's based on an older version of the SGS software and has not yet been updated.

Author:
Jon Blower $Revision: 589 $ $Date: 2006-02-20 17:35:01 +0000 (Mon, 20 Feb 2006) $ $Log$ Revision 1.30 2006/02/20 17:35:01 jonblower Implemented correct handling of output files/streams (not fully tested yet) Revision 1.29 2005/12/09 18:41:56 jonblower Continuing to simplify client interface to SGS instances Revision 1.28 2005/12/07 17:50:01 jonblower Changed gotCommandLine() to gotArguments() Revision 1.27 2005/12/07 08:56:32 jonblower Refactoring SGS client code Revision 1.25 2005/11/10 19:49:28 jonblower Renamed SGSInstanceChangeListener to SGSInstanceClientChangeListener Revision 1.24 2005/10/18 14:08:14 jonblower Removed inputfiles from namespace Revision 1.23 2005/10/14 18:09:40 jonblower Changed getInputMethods() to getInputStreams() and added synchronous and async versions Revision 1.21 2005/09/11 19:30:40 jonblower Changed call to readAllSteeringParams() to readAllSteeringParamsAsync() Revision 1.20 2005/09/09 16:34:03 jonblower Removed LBViewer as possible stream viewer Revision 1.19 2005/09/09 14:19:35 jonblower Created populatePanel() methods in panel implementations to send messages to get panel details Revision 1.18 2005/08/12 08:08:39 jonblower Developments to support web interface Revision 1.17 2005/08/04 16:49:18 jonblower Added and edited upload() methods in CStyxFile Revision 1.15 2005/08/01 16:38:05 jonblower Implemented simple parameter handling Revision 1.14 2005/07/29 16:55:49 jonblower Implementing reading command line asynchronously Revision 1.13 2005/06/14 07:45:16 jonblower Implemented setting of params and async notification of parameter changes Revision 1.12 2005/06/13 16:46:35 jonblower Implemented setting of parameter values via the GUI Revision 1.11 2005/06/10 07:54:40 jonblower Added code to convert event-based StreamViewer to InputStream-based one Revision 1.10 2005/06/07 16:44:45 jonblower Fixed problem with caching stream reader on client side Revision 1.9 2005/05/27 17:05:07 jonblower Changes to incorporate GeneralCachingStreamReader Revision 1.8 2005/05/27 07:44:07 jonblower Continuing to implement Stream viewers Revision 1.7 2005/05/26 21:33:40 jonblower Added method for viewing streams in a window Revision 1.6 2005/05/26 16:52:06 jonblower Implemented detection and viewing of output streams Revision 1.5 2005/05/25 16:59:31 jonblower Added uploadInputFile() Revision 1.4 2005/05/20 16:28:50 jonblower Continuing to implement GUI app
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Method Summary
 void allOutputDataDownloaded()
          Called when all the output data have been downloaded
 void error(java.lang.String message)
          Called when an error occurs.
static SGSInstanceGUI getGUI(SGSInstanceClient client)
           
 void gotArguments(java.lang.String newArgs)
          Called when we have a new set of command line arguments
 void gotExitCode(int exitCode)
          Called when the exit code from the service is received: this signals that the remote executable has completed.
 void gotParameterValue(java.lang.String name, java.lang.String value)
          Called when we have a new value for a parameter
 void gotServiceDataValue(java.lang.String sdName, java.lang.String newData)
          Called when the value of a service data element changes
 void gotSteerableParameterValue(java.lang.String name, java.lang.String value)
          Called when we have a new value for a steerable parameter
 void inputFilesUploaded()
          Called when the input files have been successfully uploaded.
 void serviceAborted()
          Called when the service is stopped before it has finished
 void serviceStarted()
          Called when the service is started
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods 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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, isOpaque, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Method Detail

getGUI

public static SGSInstanceGUI getGUI(SGSInstanceClient client)

gotServiceDataValue

public void gotServiceDataValue(java.lang.String sdName,
                                java.lang.String newData)
Called when the value of a service data element changes

Specified by:
gotServiceDataValue in interface SGSInstanceClientChangeListener

gotParameterValue

public void gotParameterValue(java.lang.String name,
                              java.lang.String value)
Called when we have a new value for a parameter

Specified by:
gotParameterValue in interface SGSInstanceClientChangeListener
Parameters:
name - Name of the parameter
value - The new value of the parameter

gotArguments

public void gotArguments(java.lang.String newArgs)
Called when we have a new set of command line arguments

Specified by:
gotArguments in interface SGSInstanceClientChangeListener
Parameters:
newArgs - The new command line arguments

gotSteerableParameterValue

public void gotSteerableParameterValue(java.lang.String name,
                                       java.lang.String value)
Called when we have a new value for a steerable parameter

Specified by:
gotSteerableParameterValue in interface SGSInstanceClientChangeListener
Parameters:
name - Name of the steerable parameter
value - The new value of the parameter

error

public void error(java.lang.String message)
Called when an error occurs. Shows a dialog box with the message

Specified by:
error in interface SGSInstanceClientChangeListener

serviceStarted

public void serviceStarted()
Called when the service is started

Specified by:
serviceStarted in interface SGSInstanceClientChangeListener

inputFilesUploaded

public void inputFilesUploaded()
Called when the input files have been successfully uploaded. This is our cue to start the service going

Specified by:
inputFilesUploaded in interface SGSInstanceClientChangeListener

serviceAborted

public void serviceAborted()
Called when the service is stopped before it has finished

Specified by:
serviceAborted in interface SGSInstanceClientChangeListener

allOutputDataDownloaded

public void allOutputDataDownloaded()
Called when all the output data have been downloaded

Specified by:
allOutputDataDownloaded in interface SGSInstanceClientChangeListener

gotExitCode

public void gotExitCode(int exitCode)
Called when the exit code from the service is received: this signals that the remote executable has completed.

Specified by:
gotExitCode in interface SGSInstanceClientChangeListener


Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.