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 java.util.ArrayList;
16:
17: import javax.swing.ImageIcon;
18:
19: import com.eviware.soapui.support.action.swing.ActionList;
20:
21: public abstract class XFormDialogBuilder {
22: private ArrayList<XForm> forms = new ArrayList<XForm>();
23:
24: public XFormDialogBuilder() {
25: }
26:
27: protected void addForm(XForm form) {
28: forms.add(form);
29: }
30:
31: protected XForm[] getForms() {
32: return forms.toArray(new XForm[forms.size()]);
33: }
34:
35: public abstract XForm createForm(String name);
36:
37: public abstract XFormDialog buildDialog(ActionList actions,
38: String description, ImageIcon icon);
39:
40: public abstract ActionList buildOkCancelActions();
41:
42: public abstract ActionList buildOkCancelHelpActions(String url);
43: }
|