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

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


            }
        }
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null && (lh.getSingleSelection().getNodeTypes().contains("jnt:mountPoint"|| lh.getSingleSelection().getInheritedNodeTypes().contains("jnt:mountPoint")));
    }
View Full Code Here


            ContentActions.createNode(linker,getGwtToolbarItem().getTitle(),nodeTypes, useMainNode);
        }
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        GWTJahiaNode n;
        if (useMainNode) {
            n = lh.getMainNode();
        }   else {
            n = lh.getSingleSelection();
        }
        if (n != null) {
            boolean isValidParent = false;
            for (String s : parentTypesAsList) {
                isValidParent = n.getNodeTypes().contains(s) || n.getInheritedNodeTypes().contains(s);
                if (isValidParent) {
                    break;
                }
            }
            setEnabled(isValidParent
                    && !lh.isLocked()
                    && PermissionsUtils.isPermitted("jcr:addChildNodes", lh.getSelectionPermissions()));
        } else {
            setEnabled(false);
        }
    }
View Full Code Here

* Time: 6:58:15 PM
*
*/
public class DownloadActionItem extends BaseActionItem   {
    public void onComponentSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        ContentActions.download(linker, lh.getSingleSelection(), lh.getSingleSelection().getUrl());
    }
View Full Code Here

        LinkerSelectionContext lh = linker.getSelectionContext();
        ContentActions.download(linker, lh.getSingleSelection(), lh.getSingleSelection().getUrl());
    }

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

* Time: 6:58:45 PM
*
*/
public class ExportActionItem extends BaseActionItem    {
    public void onComponentSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        new ContentExport(linker, lh.getSingleSelection()).show();
    }
View Full Code Here

        LinkerSelectionContext lh = linker.getSelectionContext();
        new ContentExport(linker, lh.getSingleSelection()).show();
    }

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

            }
        });
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null && lh.isParentWriteable() && lh.isFile() && lh.isImage());
    }
View Full Code Here

    public void onComponentSelection() {
        EngineLoader.showEditEngine(linker, linker.getSelectionContext().getSingleSelection());
    }

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

public class OpenWindowActionItem extends BaseActionItem {

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

* Time: 6:58:22 PM
*
*/
public class UploadActionItem extends BaseActionItem {
    public void onComponentSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        new FileUploader(linker, lh.getSingleSelection());
    }
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.