01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * 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: public enum FieldType {
20: TEXT, FOLDER, FILE, URL, JAVA_PACKAGE, JAVA_CLASS, PASSWORD, PROJECT_FILE, PROJECT_FOLDER, TEXTAREA
21: }
22:
23: public XFormTextField addTextField(String name, String description,
24: FieldType type);
25:
26: public XFormField addCheckBox(String name, String description);
27:
28: public XFormOptionsField addComboBox(String name, Object[] values,
29: String description);
30:
31: // /**
32: // * Create a combo box and a button that calls action with target as parameter.
33: // */
34: // public <T extends ModelItem> XFormOptionsField addComboBox( String name, Object [] values, String description,
35: // T target, SoapUIAction<T> action );
36:
37: public void setOptions(String name, Object[] values);
38:
39: public void addSeparator(String label);
40:
41: public XFormField addComponent(String name, XFormField component);
42:
43: public StringToStringMap getValues();
44:
45: public void setValues(StringToStringMap values);
46:
47: public String getComponentValue(String name);
48:
49: public XFormField getComponent(String name);
50:
51: public enum ToolkitType {
52: SWING, SWT
53: }
54:
55: public String getName();
56:
57: public void setName(String name);
58:
59: public void addNameSpaceTable(String label, Interface modelItem);
60:
61: public void addLabel(String name, String label);
62:
63: public XFormField[] getFormFields();
64:
65: public void setFormFieldProperty(String name, Object value);
66:
67: public void addSeparator();
68:
69: public String[] getOptions(String name);
70:
71: public XFormField getFormField(String name);
72: }
|