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

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


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

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();

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


        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,true).show();
        }

    }
View Full Code Here

    }

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

        setEnabled(false);
    }

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

    }
View Full Code Here

    }

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

    private void addSelectionListener(final GWTJahiaNode page, MenuItem item, final Linker linker) {
        item.addSelectionListener(new SelectionListener<MenuEvent>() {
            @Override
            public void componentSelected(MenuEvent ce) {
                LinkerSelectionContext lh = linker.getSelectionContext();
                GWTJahiaNode target = lh.getSingleSelection();
                if (target != null) {
                    JahiaContentManagementService.App.getInstance().pasteReferences(
                            Arrays.asList(target.getPath()), page.getPath(), null,
                            new BaseAsyncCallback() {
                                public void onApplicationFailure(Throwable caught) {
View Full Code Here

            }
        });
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null && !lh.isSecondarySelection() && lh.getSingleSelection().getInheritedNodeTypes().contains(
                allowedNodeType.getValue()) && menuItemsCount);
    }
View Full Code Here

            });
        }
    }

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

        ContentActions.lock(true, linker);
    }


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

            linker.select(null);
        }
    }

    public void handleNewLinkerSelection() {
        final LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getMultipleSelection() != null && lh.getMultipleSelection().size() > 0
                && !lh.isSecondarySelection());
    }
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.