Examples of RichTextEditorRepresentation


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

        }
    }

    @Override
    public FormItemRepresentation getRepresentation() {
        RichTextEditorRepresentation rep = super.getRepresentation(new RichTextEditorRepresentation());
        rep.setHtml(this.html);
        return rep;
    }
View Full Code Here

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

    public void populate(FormItemRepresentation rep) throws FormBuilderException {
        if (!(rep instanceof RichTextEditorRepresentation)) {
            throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "RichTextEditorRepresentation"));
        }
        super.populate(rep);
        RichTextEditorRepresentation rrep = (RichTextEditorRepresentation) rep;
        this.html = rrep.getHtml();
        if (rrep.getWidth() != null && !"".equals(rrep.getWidth())) {
            setWidth(rrep.getWidth());
        }
        if (rrep.getHeight() != null && !"".equals(rrep.getHeight())) {
            setHeight(rrep.getHeight());
        }
        populate(this.editor);
    }
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.