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

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


* Time: 6:58:18 PM
*
*/
public class PreviewActionItem extends BaseActionItem  {
    public void onComponentSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        ImagePopup.popImage(lh.getSingleSelection());
    }
View Full Code Here


        LinkerSelectionContext lh = linker.getSelectionContext();
        ImagePopup.popImage(lh.getSingleSelection());
    }

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

        ContentActions.lock(false, linker);
    }


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

            }
        }
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getMultipleSelection() != null
                && lh.getMultipleSelection().size() > 0
                && PermissionsUtils.isPermitted("jcr:removeNode", lh.getSelectionPermissions())
                && !lh.isLocked()
                && !lh.isSecondarySelection()
                && !lh.getMultipleSelection()
                        .get(0)
                        .getPath()
                        .equals("/sites/" + lh.getMultipleSelection().get(0).getSiteKey() + "/"
                                + lh.getMultipleSelection().get(0).getName())
                && !lh.getMultipleSelection().get(0).getPath()
                        .equals("/" + lh.getMultipleSelection().get(0).getName()));
    }
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() {
        ContentActions.showPortletWizard(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:portletFolder"));
    }
View Full Code Here

            }
        });
    }

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

        setEnabled(lh.getSingleSelection() != null && lh.isParentWriteable() && lh.isFile() && lh.isImage()
                && lh.getSingleSelection().get("j:height") != null
                && lh.getSingleSelection().get("j:width") != null);
    }
View Full Code Here

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

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

* Time: 6:58:45 PM
*
*/
public class ExportTemplateActionItem extends BaseActionItem    {
    public void onComponentSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        if (linker instanceof EditLinker) {
            new ContentExportTemplate(linker, "/templateSets/"+JahiaGWTParameters.getSiteKey(), JahiaGWTParameters.getSiteKey()).show();
        } else {
            new ContentExportTemplate(linker, lh.getSingleSelection()).show();
        }
    }
View Full Code Here

            new ContentExportTemplate(linker, lh.getSingleSelection()).show();
        }
    }

    public void handleNewLinkerSelection() {
        LinkerSelectionContext lh = linker.getSelectionContext();
        setEnabled(lh.getSingleSelection() != null);
    }
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.