View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2009 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
21  	{
22  		TEXT, FOLDER, FILE, URL, JAVA_PACKAGE, JAVA_CLASS, PASSWORD, PROJECT_FILE, PROJECT_FOLDER, TEXTAREA
23  	}
24  
25  	public XFormTextField addTextField( String name, String description, FieldType type );
26  
27  	public XFormField addCheckBox( String name, String description );
28  
29  	public XFormOptionsField addComboBox( String name, Object[] values, String description );
30  
31  	public void setOptions( String name, Object[] values );
32  
33  	public void addSeparator( String label );
34  
35  	public XFormField addComponent( String name, XFormField component );
36  
37  	public StringToStringMap getValues();
38  
39  	public void setValues( StringToStringMap values );
40  
41  	public String getComponentValue( String name );
42  
43  	public XFormField getComponent( String name );
44  
45  	public enum ToolkitType
46  	{
47  		SWING, SWT
48  	}
49  
50  	public String getName();
51  
52  	public void setName( String name );
53  
54  	public XFormField addNameSpaceTable( String label, Interface modelItem );
55  
56  	public void addLabel( String name, String label );
57  
58  	public XFormField[] getFormFields();
59  
60  	public void setFormFieldProperty( String name, Object value );
61  
62  	public void addSeparator();
63  
64  	public Object[] getOptions( String name );
65  
66  	public XFormField getFormField( String name );
67  }