1
2
3
4
5
6
7
8
9
10
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 {
23 private ArrayList<XForm> forms = new ArrayList<XForm>();
24
25 public XFormDialogBuilder()
26 {
27 }
28
29 protected void addForm( XForm form )
30 {
31 forms.add( form );
32 }
33
34 protected XForm[] getForms()
35 {
36 return forms.toArray( new XForm[forms.size()] );
37 }
38
39 public abstract XForm createForm( String name );
40
41 public abstract XFormDialog buildDialog( ActionList actions, String description, ImageIcon icon );
42
43 public abstract XFormDialog buildWizard( String description, ImageIcon icon, String helpURL );
44
45 public abstract ActionList buildOkCancelActions();
46
47 public abstract ActionList buildOkCancelHelpActions( String url );
48 }