Package org.jboss.as.console.client.tools.modelling.workbench.repository.vfs

Examples of org.jboss.as.console.client.tools.modelling.workbench.repository.vfs.Entry


        panel.add(visualize);

        Button reify = new NavButton("Reify", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                Entry dialog = fsSelection.getSelectedObject();
                presenter.onReify(dialog.getName());
            }
        });
        panel.add(reify);

        Button activate = new NavButton("Activate", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                presenter.onActivate();
            }
        });
        panel.add(activate);

        Button reset = new NavButton("Reset", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                presenter.onResetDialog();
            }
        });
        panel.add(reset);

        Button passivate = new NavButton("Passivate", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                presenter.onPassivate();
            }
        });
        panel.add(passivate);

        CheckBox cacheDisabled = new CheckBox("Disable Cache");
        cacheDisabled.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
            @Override
            public void onValueChange(ValueChangeEvent<Boolean> event) {
                presenter.setDisableCache(event.getValue());
            }
        });
        cacheDisabled.setValue(true);
        panel.add(cacheDisabled);

        // ----

        fsSelection  = new SingleSelectionModel<Entry>();
        fileSystem.setSelectionModel(fsSelection);

        fsSelection.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(SelectionChangeEvent event) {
                Entry selection = fsSelection.getSelectedObject();
                if(selection!=null)
                {
                    if(Entry.Type.DIR == selection.getType())
                    {
                        // directories
                        Entry dir = history.peek();
                        presenter.loadDir(new Entry(dir.getName() + selection.getName(), Entry.Type.DIR), false);
                    }
                    else
                    {
                        // files
                        presenter.loadFile(selection);
View Full Code Here


        panel.add(visualize);

        Button reify = new NavButton("Reify", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                Entry dialog = fsSelection.getSelectedObject();
                presenter.onReify(dialog.getName());
            }
        });
        panel.add(reify);

        Button activate = new NavButton("Activate", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                presenter.onActivate();
            }
        });
        panel.add(activate);

        Button reset = new NavButton("Reset", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                presenter.onResetDialog();
            }
        });
        panel.add(reset);

        Button passivate = new NavButton("Passivate", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                presenter.onPassivate();
            }
        });
        panel.add(passivate);

        CheckBox cacheDisabled = new CheckBox("Disable Cache");
        cacheDisabled.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
            @Override
            public void onValueChange(ValueChangeEvent<Boolean> event) {
                presenter.setDisableCache(event.getValue());
            }
        });
        cacheDisabled.setValue(true);
        panel.add(cacheDisabled);

        // ----

        fsSelection  = new SingleSelectionModel<Entry>();
        fileSystem.setSelectionModel(fsSelection);

        fsSelection.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(SelectionChangeEvent event) {
                Entry selection = fsSelection.getSelectedObject();
                if(selection!=null)
                {
                    if(Entry.Type.DIR == selection.getType())
                    {
                        // directories
                        Entry dir = history.peek();
                        presenter.loadDir(new Entry(dir.getName() + selection.getName(), Entry.Type.DIR), false);
                    }
                    else
                    {
                        // files
                        presenter.loadFile(selection);
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.tools.modelling.workbench.repository.vfs.Entry

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.