View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.x.form;
14  
15  import com.eviware.soapui.model.iface.Interface;
16  import com.eviware.soapui.support.types.StringToStringMap;
17  
18  public interface XForm
19  {
20  	public enum FieldType { TEXT, FOLDER, FILE, URL, JAVA_PACKAGE, JAVA_CLASS, PASSWORD, PROJECT_FILE, PROJECT_FOLDER, TEXTAREA }
21  
22  	public XFormTextField addTextField(String name, String description, FieldType type );
23  
24  	public XFormField addCheckBox(String name, String description);
25  
26  	public XFormOptionsField addComboBox(String name, Object[] values, String description);
27  
28  	public void setOptions( String name, Object [] values );
29  
30  	public void addSeparator(String label);
31  
32  	public XFormField addComponent( String name, XFormField component );
33  	
34  	public StringToStringMap getValues();
35  	
36  	public void setValues( StringToStringMap values );
37     
38     public String getComponentValue( String name );
39  	
40  	public XFormField getComponent( String name );
41  	
42  	public enum ToolkitType { SWING, SWT }
43  
44  	public String getName();
45  
46     public void setName(String name);
47  
48     public XFormField addNameSpaceTable(String label, Interface modelItem);
49  
50  	public void addLabel( String name, String label );
51  	
52  	public XFormField [] getFormFields();
53  
54  	public void setFormFieldProperty( String name, Object value );
55  	
56  	public void addSeparator();
57  
58  	public String[] getOptions( String name );
59  
60  	public XFormField getFormField( String name );
61  }