View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  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  {
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 ActionList buildOkCancelActions();
44  
45  	public abstract ActionList buildOkCancelHelpActions(String url);
46  }