View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5    */
6   package net.kwfgrid.gwui.gui;
7   
8   import net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject;
9   import net.kwfgrid.gworkflowdl.protocol.structure.ProtocolWorkflow;
10  
11  import java.util.List;
12  /***
13     A view for the version number of a workflow.
14   */
15  public class WorkflowVersionNumberView extends AbstractJTextFieldView {
16      /***
17         Constructor.
18         Adds this view as a <code>IStructureListener</code> to the specified workflow.
19         @param target The workflow.
20       */
21      public WorkflowVersionNumberView(ProtocolWorkflow target) {
22  	super(target, target);
23      }
24  
25      protected String getLabel() {
26  	return ""+getWorkflow().getVersionNumber();
27      }
28  
29      protected String getTitle() {
30  	return "Protocol Version Number";
31      }
32  
33      protected boolean affectsLabel(IStructureObject parent, String namespace, String name, List objects) {
34  	return true;
35      }
36  
37      protected boolean affectsLabel(IStructureObject parent, String namespace, String name, Object object) {
38  	return true;
39      }
40  }