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

Examples of org.jahia.ajax.gwt.client.widget.LinkerSelectionContext


        setEnabled(false);
    }

    @Override
    public void onComponentSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        if (lh.getSingleSelection() != null) {
            String locale = JahiaGWTParameters.getUILanguage();
            new CompareEngine(lh.getSingleSelection(), locale, linker,true,false).show();
        }

    }
View Full Code Here


    }

    @Override
    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null);
    }
View Full Code Here

    public void onComponentSelection() {
        ContentActions.createFolder(linker);
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null
                && !lh.isLocked()
                && PermissionsUtils.isPermitted("jcr:addChildNodes", lh.getSelectionPermissions())
                && lh.getSingleSelection().getNodeTypes().contains("jnt:folder"));
    }
View Full Code Here

            w.show();
        }
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null && PermissionsUtils.isPermitted("jcr:addChildNodes", lh.getSelectionPermissions()));
    }
View Full Code Here

    public void onComponentSelection() {
        new ContentImport(linker, linker.getSelectionContext().getSingleSelection()).show();
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null
                && PermissionsUtils.isPermitted("jcr:write", lh.getSelectionPermissions())
                && !lh.isLocked()
                && !lh.getSingleSelection().isNodeType("jnt:virtualsite"));
    }
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.widget.LinkerSelectionContext

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.