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.*;
9   import net.kwfgrid.gworkflowdl.structure.Workflow;
10  
11  import org.glassbox.executor.Executor;
12  
13  /***
14     An editor for the description of a workflow.
15   */
16  public class WorkflowDescriptionEditor extends DescriptionEditor {
17      public WorkflowDescriptionEditor(Executor executor, ProtocolWorkflow workflow) {
18  	super(executor, workflow, workflow);
19      }
20      
21      public String getValidText() {
22  	return ((Workflow)getElement()).getDescription();
23      }
24  
25      protected void performSetDescription(String newdescription) {
26  	((Workflow)getElement()).setDescription(newdescription);
27      }
28  
29      protected String getDescriptionPropertyName() {
30  	return ProtocolWorkflow.NAME_DESCRIPTION;
31      }
32  
33      protected String getDescriptionPropertyNamespace() {
34  	return ProtocolWorkflow.NAMESPACE_PROPERTIES;
35      }
36  }