Package org.jahia.ajax.gwt.client.widget.toolbar.action

Examples of org.jahia.ajax.gwt.client.widget.toolbar.action.PublishActionItem


            if (displayVersionSelector) {
                headerToolBar.add(restoreButton);
            }

            GWTJahiaToolbarItem gwtJahiaToolbarItem = new GWTJahiaToolbarItem();
            PublishActionItem actionItem = new PublishActionItem();
            gwtJahiaToolbarItem.setActionItem(actionItem);
            gwtJahiaToolbarItem.setTitle(Messages.get("label.publish"));
            gwtJahiaToolbarItem.setLayout(Constants.LAYOUT_BUTTON_LABEL);
            gwtJahiaToolbarItem.setDisplayTitle(true);
            gwtJahiaToolbarItem.setIcon("publish");
            actionItem.init(gwtJahiaToolbarItem, linker);
            actionItem.handleNewLinkerSelection();
            headerToolBar.add(actionItem.getTextToolItem());

            gwtJahiaToolbarItem = new GWTJahiaToolbarItem();
            actionItem = new PublishAllActionItem();
            gwtJahiaToolbarItem.setActionItem(actionItem);
            gwtJahiaToolbarItem.setTitle(Messages.get("label.publishall"));
            gwtJahiaToolbarItem.setLayout(Constants.LAYOUT_BUTTON_LABEL);
            gwtJahiaToolbarItem.setDisplayTitle(true);
            gwtJahiaToolbarItem.setIcon("publishAll");
            actionItem.init(gwtJahiaToolbarItem, linker);
            actionItem.handleNewLinkerSelection();
            headerToolBar.add(actionItem.getTextToolItem());

            setTopComponent(headerToolBar);
        } else {

            // case of th live mode
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.widget.toolbar.action.PublishActionItem

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.