Package org.drools.guvnor.client.rpc

Examples of org.drools.guvnor.client.rpc.FormContentModel


public class FormDefinitionHandler extends ContentHandler {

    @Override
    public void retrieveAssetContent(Asset asset, AssetItem item) throws SerializationException {
        FormContentModel content = new FormContentModel();
        content.setJson( item.getContent() );
        asset.setContent( content );
    }
View Full Code Here


        asset.setContent( content );
    }

    @Override
    public void storeAssetContent(Asset asset, AssetItem repoAsset) throws SerializationException {
        FormContentModel content = (FormContentModel) asset.getContent();
        if ( content != null ) {
            if ( content.getJson() != null ) {
                repoAsset.updateContent( content.getJson() );
            }
        }
    }
View Full Code Here

            String json = callSave( (IFrameElement) ((com.google.gwt.dom.client.Element) frame.getElement()) );
            if (json == null || "".equals(json.trim())) {
                Window.alert("Warning: form is empty from guvnor perspective.");
            }
            if ( asset.getContent() == null ) {
                asset.setContent( new FormContentModel() );
            }
            ((FormContentModel) asset.getContent()).setJson( json );
        } catch ( Exception e ) {
            GWT.log( "JSNI method callSave() threw an exception:",
                     e );
View Full Code Here

            String json = callSave((IFrameElement) ((com.google.gwt.dom.client.Element) frame.getElement()));
            if (json == null || "".equals(json.trim())) {
                Window.alert("Warning: form is empty from guvnor perspective.");
            }
            if (asset.getContent() == null) {
                asset.setContent(new FormContentModel());
            }
            ((FormContentModel) asset.getContent()).setJson(json);
        } catch (Exception e) {
            GWT.log("JSNI method callSave() threw an exception:",
                    e);
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.rpc.FormContentModel

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.