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 com.eviware.soapui.support.types.StringToStringMap;
    16
    17  public interface XFormDialog
    18  {
    19  	public final static int OK_OPTION = 1;
    20  	public final static int CANCEL_OPTION = 2;
    21
    22  	public void setValues( StringToStringMap values );
    23
    24  	public StringToStringMap getValues();
    25
    26  	public void setVisible( boolean visible );
    27
    28  	public int getReturnValue();
    29
    30  	public void setValue( String field, String value );
    31
    32  	public String getValue( String field );
    33
    34  	public boolean show();
    35
    36  	public StringToStringMap show(StringToStringMap values);
    37
    38  	public boolean validate();
    39
    40  	public void setOptions( String field, Object[] options);
    41
    42  	public XFormField getFormField( String name );
    43
    44  	public void setFormFieldProperty( String name, Object value );
    45
    46  	public int getValueIndex( String name );
    47
    48  	public int getIntValue( String name, int defaultValue );
    49
    50  	public boolean getBooleanValue( String name );
    51
    52  	public void setBooleanValue( String name, boolean b );
    53
    54  	public void setIntValue( String name, int value );
    55
    56  	public void setWidth( int i );
    57  }