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