Package org.activiti.workflow.simple.alfresco.model.config

Examples of org.activiti.workflow.simple.alfresco.model.config.FormFieldControl


    form.getFormFieldVisibility().addShowFieldElement(propertyName);
   
    FormField transitionsFormField = new FormField();
    transitionsFormField.setId(propertyName);
    transitionsFormField.setSet(AlfrescoConversionConstants.FORM_SET_RESPONSE);
    transitionsFormField.setControl(new FormFieldControl(AlfrescoConversionConstants.FORM_TRANSITIONS_TEMPLATE));
    form.getFormAppearance().addFormAppearanceElement(transitionsFormField);
  }
View Full Code Here


    form.getFormFieldVisibility().addShowFieldElement(propertyName);
    FormField formField = form.getFormAppearance().addFormField(propertyName, booleanDefinition.getName(), formSet);

    if(!booleanDefinition.isWritable()) {
      // Read-only properties should always be rendered using an info-template
      FormFieldControl control = new FormFieldControl();
      control.setTemplate(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE);
      formField.setControl(control);
    }
   
    if(!form.isStartForm()) {
      // Add to output properties, if needed
View Full Code Here

    form.getFormFieldVisibility().addShowFieldElement(propertyName);
    FormField formField = form.getFormAppearance().addFormField(propertyName, propertyDefinition.getName(), formSet);

    // Read-only properties should always be rendered using an info-template
    if(!dateDefinition.isWritable()) {
      FormFieldControl control = new FormFieldControl();
      control.setTemplate(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE);
      formField.setControl(control);
    }
   
    if(!form.isStartForm()) {
      // Add to output properties, if needed
View Full Code Here

    form.getFormFieldVisibility().addShowFieldElement(propertyName);
    FormField formField = form.getFormAppearance().addFormField(propertyName, dateDefinition.getName(), formSet);

    if(dateDefinition.isWritable()) {
      // Use custom date-control
      FormFieldControl control = new FormFieldControl();
      control.setTemplate(AlfrescoConversionConstants.FORM_DATE_TEMPLATE);
      control.addControlParameter(AlfrescoConversionConstants.FORM_DATE_PARAM_SHOW_TIME,
          Boolean.toString(dateDefinition.isShowTime()));
      control.addControlParameter(AlfrescoConversionConstants.FORM_DATE_PARAM_SUBMIT_TIME,
          Boolean.toString(dateDefinition.isShowTime()));
      formField.setControl(control);
    } else {
      // Read-only properties should always be rendered using an info-template
      FormFieldControl control = new FormFieldControl();
      control.setTemplate(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE);
      formField.setControl(control);
    }
   
    if(!form.isStartForm()) {
      // Add to output properties, if needed
View Full Code Here

    form.getFormFieldVisibility().addShowFieldElement(propertyName);
    FormField formField = form.getFormAppearance().addFormField(propertyName, propertyDefinition.getName(), formSet);

    if(numberPropertyDefinition.isWritable()) {
      // Use custom date-control
      FormFieldControl control = new FormFieldControl();
      control.setTemplate(AlfrescoConversionConstants.FORM_NUMBER_TEMPLATE);
      formField.setControl(control);
    } else {
      // Read-only properties should always be rendered using an info-template
      FormFieldControl control = new FormFieldControl();
      control.setTemplate(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE);
      formField.setControl(control);
    }
   
    if(!form.isStartForm()) {
      // Add to output properties, if needed
View Full Code Here

    // In case the reference references "cm:content", use a "package-items"
    // template instead
    // of the normal document picker, starting from the default location
    if (AlfrescoConversionConstants.CONTENT_TYPE_CONTENT.equals(referenceDefinition.getType())) {
      FormFieldControl control = new FormFieldControl(AlfrescoConversionConstants.FORM_PACKAGE_ITEMS_TEMPLATE);
      control.addControlParameter(AlfrescoConversionConstants.FORM_PACKAGE_ITEMS_PARAM_ROOTNODE,
          AlfrescoConversionConstants.FORM_PACKAGE_ITEMS_PARAM_ROOTNODE_DEFAULT);
      field.setControl(control);

      // Since we use the "package" template, we need to set the special action-parameters. This might
      // impact the general package actions, but it's the bes we can do without custom coding/template
View Full Code Here

    FormField field = new FormField();
    form.getFormAppearance().addFormAppearanceElement(field);
    field.setId(propertyName);
    field.setLabelId(definition.getName());
    field.setSet(formSet);
    field.setControl(new FormFieldControl(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE));
  }
View Full Code Here

    FormField descriptionField = new FormField();
    descriptionField.setId(fieldName);
    descriptionField.setLabelId(AlfrescoConversionConstants.FORM_WORKFLOW_DESCRIPTION_LABEL);
    descriptionField.setSet(formSet);
    if (form.isStartForm()) {
      descriptionField.setControl(new FormFieldControl(AlfrescoConversionConstants.FORM_MULTILINE_TEXT_TEMPLATE));
    } else {
      descriptionField.setControl(new FormFieldControl(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE));
    }
    form.getFormAppearance().addFormAppearanceElement(descriptionField);
  }
View Full Code Here

    FormField commentField = new FormField();
    commentField.setId(AlfrescoConversionConstants.PROPERTY_COMMENT);
    commentField.setLabelId(AlfrescoConversionConstants.FORM_COMMENT_LABEL);
    commentField.setSet(formSet);
    commentField.setControl(new FormFieldControl(AlfrescoConversionConstants.FORM_MULTILINE_TEXT_TEMPLATE));
    form.getFormAppearance().addFormAppearanceElement(commentField);
  }
View Full Code Here

    priorityField.setSet(formSet);
    priorityField.setLabelId(AlfrescoConversionConstants.FORM_WORKFLOW_PRIORITY_LABEL);
    priorityField.setId(fieldName);

    if (form.isStartForm() || writable) {
      priorityField.setControl(new FormFieldControl(AlfrescoConversionConstants.FORM_PRIORITY_TEMPLATE));
    } else {
      priorityField.setControl(new FormFieldControl(AlfrescoConversionConstants.FORM_READONLY_TEMPLATE));
    }
    form.getFormAppearance().addFormAppearanceElement(priorityField);
  }
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.alfresco.model.config.FormFieldControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.