View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 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 javax.swing.Action;
16  
17  import com.eviware.soapui.support.types.StringToStringMap;
18  
19  public interface XFormDialog
20  {
21  	public final static int OK_OPTION = 1;
22  	public final static int CANCEL_OPTION = 2;
23  
24  	public void setValues( StringToStringMap values );
25  
26  	public StringToStringMap getValues();
27  
28  	public void setVisible( boolean visible );
29  
30  	public int getReturnValue();
31  
32  	public void setValue( String field, String value );
33  
34  	public String getValue( String field );
35  
36  	public boolean show();
37  
38  	public StringToStringMap show( StringToStringMap values );
39  
40  	public boolean validate();
41  
42  	public void setOptions( String field, Object[] options );
43  
44  	public XFormField getFormField( String name );
45  
46  	public void setFormFieldProperty( String name, Object value );
47  
48  	public int getValueIndex( String name );
49  
50  	public int getIntValue( String name, int defaultValue );
51  
52  	public boolean getBooleanValue( String name );
53  
54  	public void setBooleanValue( String name, boolean b );
55  
56  	public void setIntValue( String name, int value );
57  
58  	public void setWidth( int i );
59  
60  	public void release();
61  
62  	public void addAction( Action action );
63  	
64  	public XForm [] getForms();
65  
66  	public void setSize( int i, int j );
67  }