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.support.types.StringToStringMap;
16:
17: public interface XFormDialog {
18: public final static int OK_OPTION = 1;
19: public final static int CANCEL_OPTION = 2;
20:
21: public void setValues(StringToStringMap values);
22:
23: public StringToStringMap getValues();
24:
25: public void setVisible(boolean visible);
26:
27: public int getReturnValue();
28:
29: public void setValue(String field, String value);
30:
31: public String getValue(String field);
32:
33: public boolean show();
34:
35: public StringToStringMap show(StringToStringMap values);
36:
37: public boolean validate();
38:
39: public void setOptions(String field, Object[] options);
40:
41: public XFormField getFormField(String name);
42:
43: public void setFormFieldProperty(String name, Object value);
44:
45: public int getValueIndex(String name);
46:
47: public int getIntValue(String name, int defaultValue);
48:
49: public boolean getBooleanValue(String name);
50:
51: public void setBooleanValue(String name, boolean b);
52:
53: public void setIntValue(String name, int value);
54:
55: public void setWidth(int i);
56: }
|