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: public interface XFormField {
16: public void setValue(String value);
17:
18: public String getValue();
19:
20: public void setEnabled(boolean enabled);
21:
22: public boolean isEnabled();
23:
24: public void setRequired(boolean required, String message);
25:
26: public boolean isRequired();
27:
28: public void setToolTip(String tooltip);
29:
30: public void addFormFieldListener(XFormFieldListener listener);
31:
32: public void removeFieldListener(XFormFieldListener listener);
33:
34: public void addFormFieldValidator(XFormFieldValidator validator);
35:
36: public void removeFormFieldValidator(XFormFieldValidator validator);
37:
38: public void addComponentEnabler(XFormField tf, String value);
39:
40: public void setProperty(String name, Object value);
41:
42: public Object getProperty(String name);
43:
44: public ValidationMessage[] validate();
45: }
|