Examples of HeaderRepresentation


Examples of org.jbpm.formapi.shared.api.items.HeaderRepresentation

       
        FormRepresentation form = new FormRepresentation();
        form.setInputs(toInputDataMap(task.getInputs()));
        form.setOutputs(toOutputDataMap(task.getOutputs()));
        if (task.getTaskId() != null) {
            HeaderRepresentation header = new HeaderRepresentation();
            header.setValue("Task: " + task.getTaskId());
            header.setEffectClasses(headerEffects);
            header.setEventActions(asMapOfNull(headerActions, FBScript.class));
            form.addFormItem(header);
        }
        List<TaskPropertyRef> inputs = task.getInputs();
        if (inputs != null && !inputs.isEmpty()) {
            TableRepresentation tableOfInputs = new TableRepresentation();
View Full Code Here

Examples of org.jbpm.formapi.shared.api.items.HeaderRepresentation

        effect.setWidget(this.header);
    }
   
    @Override
    public FormItemRepresentation getRepresentation() {
        HeaderRepresentation rep = super.getRepresentation(new HeaderRepresentation());
        rep.setValue(this.header.getText());
        rep.setStyleClass(this.cssClassName);
        rep.setCssId(this.id);
        rep.setCssName(this.name);
        rep.setI18n(getI18nMap());
        rep.setFormat(getFormat() == null ? null : getFormat().toString());
        return rep;
    }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.items.HeaderRepresentation

    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof HeaderRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "HeaderRepresentation"));
        }
        super.populate(rep);
        HeaderRepresentation hrep = (HeaderRepresentation) rep;
        this.cssClassName = hrep.getCssName();
        this.id = hrep.getCssId();
        saveI18nMap(hrep.getI18n());
        if (hrep.getValue().startsWith("<h1>")) {
            setContent(hrep.getValue());
        } else {
            setContent("<h1>" + hrep.getValue() + "</h1>");
        }
        if (hrep.getFormat() != null && !"".equals(hrep.getFormat())) {
            setFormat(Format.valueOf(hrep.getFormat()));
        }
    }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.items.HeaderRepresentation

*/
public abstract class RESTAbstractTest extends TestCase {

    public static FormRepresentation createMockForm(String title, String... params) {
        FormRepresentation form = new FormRepresentation();
        HeaderRepresentation header = new HeaderRepresentation();
        header.setValue(title);
        form.addFormItem(header);
       
        TableRepresentation table = new TableRepresentation();
        table.setRows(params.length);
        table.setColumns(2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.