Package org.jbpm.formapi.client.form

Examples of org.jbpm.formapi.client.form.HasSourceReference


    }

    @Override
    public void createStyles() {
        Map<String, Object> dataSnapshot = new HashMap<String, Object>();
        HasSourceReference item = (HasSourceReference) getItem();
        dataSnapshot.put("item", item);
        dataSnapshot.put("oldSrcUrl", item.getSourceReference());
        dataSnapshot.put("newSrcUrl", getSrcUrl());
        bus.fireEvent(new UndoableEvent(dataSnapshot, new UndoableHandler() {
            @Override
            public void onEvent(UndoableEvent event) { }
            @Override
            public void undoAction(UndoableEvent event) {
                HasSourceReference item = (HasSourceReference) event.getData("item");
                String srcRef = (String) event.getData("oldSrcUrl");
                item.setSourceReference(srcRef);
            }
            @Override
            public void doAction(UndoableEvent event) {
                HasSourceReference item = (HasSourceReference) event.getData("item");
                String srcRef = (String) event.getData("newSrcUrl");
                item.setSourceReference(srcRef);
            }
        }));
    }
View Full Code Here


    public PopupPanel createPanel() {
        return new UploadFormEffectView(this);
    }

    public List<String> getAllowedTypes() {
        HasSourceReference item = (HasSourceReference) getItem();
        return item.getAllowedTypes();
    }
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.client.form.HasSourceReference

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.