edit ui.xml

This commit is contained in:
daisyonly 2014-08-25 17:06:12 +08:00
parent f49eb7aa5c
commit a5b7b95958
9 changed files with 50 additions and 26 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ui SYSTEM "../../dtd/ui.dtd">
<!DOCTYPE ui SYSTEM "../../dtd/ui.dtd">
<ui>
<plugin name="Http">
<params>
@ -7,80 +7,84 @@
</plugin>
<behavior name="get">
<params>
<param name="url" label="The Url to request">
<param name="url" label="The Url to request" required="true">
<field size="7" />
</param>
<param name="queryParams" label="The query params of this request">
<param name="queryParams" label="The query params of this request" required="false">
<nfield />
</param>
<param name="headers" label="The headers of this request">
<param name="headers" label="The headers of this request" required="false">
<table cols="header;value" />
</param>
<param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response">
label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param>
</params>
</behavior>
<behavior name="delete">
<params>
<param name="url" label="The Url to request">
<param name="url" label="The Url to request" required="true">
<field size="7" />
</param>
<param name="queryParams" label="The query params of this request">
<param name="queryParams" label="The query params of this request" required="false">
<nfield />
</param>
<param name="headers" label="The headers of this request">
<param name="headers" label="The headers of this request" required="false">
<table cols="header;value" />
</param>
<param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response">
label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param>
</params>
</behavior>
<behavior name="post">
<params>
<param name="url" label="The Url to request">
<param name="url" label="The Url to request" required="true">
<field size="7" />
</param>
<param name="queryParams" label="The query params of this request">
<param name="queryParams" label="The query params of this request" required="false">
<nfield />
</param>
<param name="headers" label="The headers of this request">
<param name="headers" label="The headers of this request" required="false">
<table cols="header;value" />
</param>
<param name="bodyContent" label="The body that will be post">
<param name="bodyContent" label="The body that will be post" required="false">
<field size="7" />
</param>
<param name="bodyParameters" label="The parameters will be post in the body">
<param name="bodyParameters" label="The parameters will be post in the body" required="false">
<nfield />
</param>
<param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response">
label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param>
</params>
</behavior>
<behavior name="put">
<params>
<param name="url" label="The Url to request">
<param name="url" label="The Url to request" required="true">
<field size="7" />
</param>
<param name="queryParams" label="The query params of this request">
<param name="queryParams" label="The query params of this request" required="false">
<nfield />
</param>
<param name="headers" label="The headers of this request">
<param name="headers" label="The headers of this request" required="false">
<table cols="header;value" />
</param>
<param name="bodyContent" label="The body that will be put">
<param name="bodyContent" label="The body that will be put" required="false">
<field size="7" />
</param>
<param name="bodyParameters" label="The parameters will be put in the body">
<param name="bodyParameters" label="The parameters will be put in the body" required="false">
<nfield />
</param>
<param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response">
label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param>
</params>

View File

@ -3,13 +3,13 @@
<ui>
<plugin name="Random">
<params>
<param name="begin" label="The Beginning of the range">
<param name="begin" label="The Beginning of the range" required="true">
<field size="5"></field>
</param>
<param name="end" label="The end of the range">
<param name="end" label="The end of the range" required="true">
<field size="5"></field>
</param>
<param name="format" label="The format of the value">
<param name="format" label="The format of the value" required="false">
<field size="5"></field>
</param>
</params>

View File

@ -6,7 +6,7 @@
</plugin>
<timer name="Sleep">
<params>
<param name="time">
<param name="time" required="true">
<field size="6" />
</param>
</params>

View File

@ -20,6 +20,7 @@
<!ATTLIST param
name CDATA #REQUIRED
label CDATA #IMPLIED
required CDATA #REQUIRED
>
<!ELEMENT group (param|group)*>
<!ATTLIST group

View File

@ -9,6 +9,7 @@ public class ParamInfoModel {
private String name;
private String label;
private String required;
private String value;
private ParamTypeModel paramTypeModel;
@ -31,6 +32,16 @@ public class ParamInfoModel {
this.label = label;
}
@XmlElement
public String getRequired() {
return required;
}
public void setRequired(String required) {
this.required = required;
}
@XmlElements({ @XmlElement(name = "field", type = FieldModel.class),
@XmlElement(name = "table", type = TableModel.class),
@XmlElement(name = "checkbox", type = CheckBoxModel.class),

View File

@ -1 +1 @@
masterAddress=localhost:8901
masterAddress=133.133.2.100:8901

View File

@ -257,6 +257,7 @@ body {
<script src="script/scriptManager/usePlugin.js"></script>
<script src="script/scriptManager/submitScript.js"></script>
<script src="script/scriptManager/createScript.js"></script>
<script src="script/scriptManager/contentVerification.js"></script>
</fmt:bundle>

View File

@ -254,6 +254,7 @@
<script src="script/scriptManager/jstreeFactory.js"></script>
<script src="script/scriptManager/scriptEditor.js"></script>
<script src="script/scriptManager/scriptModels.js"></script>
<script src="script/scriptManager/contentVerification.js"></script>
</fmt:bundle>
</body>
</html>

View File

@ -0,0 +1,6 @@
$(document).ready(function(){
$("#behaviorEditor").on("focusout",".editor input",function(){
console.log(this);
alert("This input field has lost its focus.");
})
});