Package org.jboss.as.console.mbui.marshall

Examples of org.jboss.as.console.mbui.marshall.DialogXML



        DialogRepository adhocRepo = new DialogRepository() {
            @Override
            public void getDialog(String name, AsyncCallback<Dialog> callback) {
                callback.onSuccess(new DialogXML().unmarshall(getView().getText()));
            }
        };

        // mbui kernel instance
        this.kernel = new Kernel(adhocRepo, new Framework() {
View Full Code Here


    }

    public void onVisualize()
    {

        Dialog dialog = new DialogXML().unmarshall(getView().getText());
        DialogVisualization visualization = new DialogVisualization(dialog);
        DefaultWindow window = new DefaultWindow("Dialog: "+dialog.getId());
        window.setWidth(800);
        window.setHeight(600);
        ScrollPanel widgets = new ScrollPanel(visualization.getChart());
View Full Code Here

    public void onSave(String xml) {

        if(null==selectedDialog) return;

        try {
            DialogXML parser = new DialogXML();

            // validation
            Dialog dialog = parser.unmarshall(xml);

            final Document document = parser.marshall(dialog);

            vfs.save(selectedDialog, ModelEditor.formatXml(document.toString()), new SimpleCallback<Boolean>() {
                @Override
                public void onSuccess(Boolean result) {
                    Console.info("Successfully saved "+selectedDialog.getName());
View Full Code Here

        this.dispatcher = dispatcher;

        DialogRepository adhocRepo = new DialogRepository() {
            @Override
            public void getDialog(String name, AsyncCallback<Dialog> callback) {
                callback.onSuccess(new DialogXML().unmarshall(getView().getText()));
            }
        };

        // mbui kernel instance
        this.kernel = new Kernel(adhocRepo, new Framework() {
View Full Code Here

    }

    public void onVisualize()
    {

        Dialog dialog = new DialogXML().unmarshall(getView().getText());
        DialogVisualization visualization = new DialogVisualization(dialog);
        DefaultWindow window = new DefaultWindow("Dialog: "+dialog.getId());
        window.setWidth(800);
        window.setHeight(600);
        ScrollPanel widgets = new ScrollPanel(visualization.getChart());
View Full Code Here

    public void onSave(String xml) {

        if(null==selectedDialog) return;

        try {
            DialogXML parser = new DialogXML();

            // validation
            Dialog dialog = parser.unmarshall(xml);

            final Document document = parser.marshall(dialog);

            vfs.save(selectedDialog, ModelEditor.formatXml(document.toString()), new SimpleCallback<Boolean>() {
                @Override
                public void onSuccess(Boolean result) {
                    Console.info("Successfully saved "+selectedDialog.getName());
View Full Code Here

        requestBuilder.setCallback(new RequestCallback() {
            @Override
            public void onResponseReceived(Request request, Response response) {
                if(200==response.getStatusCode())
                {
                    Dialog dialog = new DialogXML().unmarshall(response.getText());
                    callback.onSuccess(dialog);
                }
                else
                {
                    callback.onFailure(new RuntimeException("Failed to load dialog: HTTP "+response.getStatusCode()));
View Full Code Here

TOP

Related Classes of org.jboss.as.console.mbui.marshall.DialogXML

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.