- /** Job is Queued */
- public static final int STATE_QUEUING = 0;
-
- /** Job is Running */
- public static final int STATE_RUNNING = 1;
-
- /** Job has finished with no errors */
- public static final int STATE_STOPPED_OK = 2;
-
- /** Job has been cancelled with no errors */
- public static final int STATE_CANCELLED_OK = 3;
-
- /** job has stopped because of some error */
- public static final int STATE_STOPPED_ERROR = 4;
-
- /** job has failed because of some unavoidable service interruption */
- public static final int STATE_STOPPED_SERVERERROR = 5;
- int currentStatus = STATE_QUEUING;
- Image image;
- int angle = 0;
- String title = "";
- jalview.ws.WSClientI thisService;
- boolean serviceIsCancellable;
- JInternalFrame frame;
- JTabbedPane subjobs=null;
- java.util.Vector jobPanes = null;
- // tabbed or not
- public synchronized int addJobPane() {
- JScrollPane jobpane = new JScrollPane();
- JTextArea progressText = new JTextArea();
- progressText.setFont(new java.awt.Font("Verdana", 0, 10));
- progressText.setBorder(null);
- progressText.setEditable(false);
- progressText.setText("WS Job");
- progressText.setLineWrap(true);
- progressText.setWrapStyleWord(true);
- jobpane.setName("JobPane");
- jobpane.getViewport().add(progressText, null);
- jobpane.setBorder(null);
- if (jobPanes==null) {
- jobPanes = new Vector();
- }
- int newpane = jobPanes.size();
- jobPanes.add(jobpane);