Package org.jitterbit.integration.client.ui.project.info.ProjectConsoleAction

Examples of org.jitterbit.integration.client.ui.project.info.ProjectConsoleAction.Category


    public ActionControlPanel(Action downloadAction, ProjectConsoleAction... consoleActions) {
        this.downloadAction = downloadAction;
        this.consoleActions = ArrayListMultimap.create();
        for (ProjectConsoleAction a : consoleActions) {
            try {
                Category cat = Category.fromId(a.getCategory());
                this.consoleActions.put(cat, a.getAction());
            } catch (RuntimeException ex) {
                ErrorLog.log(ActionControlPanel.class, "Invalid action category in the Project Console configuration: "
                                + a.getCategory(), ex);
            }
View Full Code Here


    public void decorate(UiCanvas canvas) {
        int categories = consoleActions.keySet().size();
        if (categories == 0) {
            new NoCategoryLayout().decorate(canvas);
        } else if (categories == 1) {
            Category cat = Lists.newArrayList(consoleActions.keySet()).get(0);
            new OneCategoryLayout(cat).decorate(canvas);
        } else {
            new MultiCategoryToggleLayout().decorate(canvas);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.project.info.ProjectConsoleAction.Category

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.