- this._addFormHeader(formObject, "Add optionnal parameters", moreButton);
- this._addFormInputText(formObject);
- this._addFormInputText(formObject);
-
- },
-
- /**
- * Create a canonical form.
- * @param formObject {Map} The form part
- */
- _createStandardForm : function(formObject){
-
- this._addFormHeader(formObject, "Set Execution Parameters");
- this._addFormInputText(formObject, "status", "Status", "STARTED");
- this._addFormInputText(formObject, "host", "Host", "localhost");
- this._addFormInputText(formObject, "user", "User", "user");
-
- var moreButton = new qx.ui.basic.Image("resource/slc/list-add.png");
- moreButton.setToolTip(new qx.ui.tooltip.ToolTip("Add a parameter"));
- moreButton.setCursor("pointer");
- moreButton.addListener("click", function(){
- this._addFormInputText(formObject);
- }, this);
- this._addFormHeader(formObject, "Add optionnal parameters", moreButton);
- this._addFormInputText(formObject);
- this._addFormInputText(formObject);
- },
-
- /**
- * Add an hidden field to the form
- * @param formObject {Map} The form part
- * @param fieldName {String} Name
- * @param fieldValue {String} Value
- */
- _addFormHiddenField : function(formObject, fieldName, fieldValue){
- formObject.hiddenFields[fieldName] = fieldValue;
- },
-
- /**
- * Creates a simple label/input form entry.
- * @param formObject {Map} The form part
- * @param fieldName {String} Name
- * @param fieldLabel {String} Label of the field
- * @param defaultValue {String} The default value
- * @param choiceValues {Map} An map of values
- */
- _addFormInputText : function(formObject, fieldName, fieldLabel, defaultValue, choiceValues){
- var labelElement;
- if(choiceValues){
- var fieldElement = new qx.ui.form.SelectBox();
- for(var key in choiceValues){
- fieldElement.add(new qx.ui.form.ListItem(choiceValues[key], null, key));
- }