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.model.iface.Interface;
    16  import com.eviware.soapui.support.types.StringToStringMap;
    17
    18  public interface XForm
    19  {
    20  	public enum FieldType { TEXT, FOLDER, FILE, URL, JAVA_PACKAGE, JAVA_CLASS, PASSWORD, PROJECT_FILE, PROJECT_FOLDER, TEXTAREA }
    21
    22  	public XFormTextField addTextField(String name, String description, FieldType type );
    23
    24  	public XFormField addCheckBox(String name, String description);
    25
    26  	public XFormOptionsField addComboBox(String name, Object[] values, String description);
    27
    28  //   /***
    29  //    * Create a combo box and a button that calls action with target as parameter.
    30  //    */
    31  //   public <T extends ModelItem> XFormOptionsField addComboBox( String name, Object [] values, String description,
    32  //         T target, SoapUIAction<T> action );
    33
    34  	public void setOptions( String name, Object [] values );
    35
    36  	public void addSeparator(String label);
    37
    38  	public XFormField addComponent( String name, XFormField component );
    39
    40  	public StringToStringMap getValues();
    41
    42  	public void setValues( StringToStringMap values );
    43
    44     public String getComponentValue( String name );
    45
    46  	public XFormField getComponent( String name );
    47
    48  	public enum ToolkitType { SWING, SWT }
    49
    50  	public String getName();
    51
    52     public void setName(String name);
    53
    54     public void addNameSpaceTable(String label, Interface modelItem);
    55
    56  	public void addLabel( String name, String label );
    57
    58  	public XFormField [] getFormFields();
    59
    60  	public void setFormFieldProperty( String name, Object value );
    61
    62  	public void addSeparator();
    63
    64  	public String[] getOptions( String name );
    65
    66  	public XFormField getFormField( String name );
    67  }