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

Examples of org.jahia.ajax.gwt.client.widget.edit.EditLinker


        if (buttonsBar != null) {
            setBottomComponent(buttonsBar);
        }

    if (!(linker instanceof ManagerLinker) && (GXT.isIE7 || GXT.isIE6)) {
      EditLinker editLinker = linker instanceof EditLinker ? (EditLinker) linker : ((SidePanelLinker) linker).getEditLinker();
      // resize to fit main module area
      MainModule main = editLinker.getMainModule();
      setSize(main.getOffsetWidth(), main.getOffsetHeight());
      setPosition(main.getAbsoluteLeft(), main.getAbsoluteTop());
      setBorders(false);
    }
    }
View Full Code Here


                    }

                    public void onSuccess(Object o) {
                        Info.display(Messages.get("label.information", "Information"), Messages.get("saved_prop", "Properties saved\n\n"));
                        int refresh = Linker.REFRESH_MAIN;
                        EditLinker l = null;
                        if (linker instanceof SidePanelTabItem.SidePanelLinker) {
                            l = ((SidePanelTabItem.SidePanelLinker) linker).getEditLinker();
                        } else if (linker instanceof EditLinker) {
                            l = (EditLinker) linker;
                        }
                        if (l != null && node.equals(l.getMainModule().getNode()) && !node.getName().equals(l.getMainModule().getNode().getName())) {
                            l.getMainModule().handleNewMainSelection(node.getPath().substring(0, node.getPath().lastIndexOf("/")+1)+node.getName(), l.getMainModule().getTemplate(), null);
                            refresh += Linker.REFRESH_PAGES;
                        }
                        if (node.isPage() || node.getNodeTypes().contains("jnt:externalLink")
                            || node.getNodeTypes().contains("jnt:nodeLink")
                            || node.getNodeTypes().contains("jnt:template") || node.getInheritedNodeTypes().contains("jnt:template")
View Full Code Here

                                                    Log.error(throwable.getMessage(), throwable);
                                                    MessageBox.alert(Messages.get("label.error", "Error"), throwable.getMessage(), null);
                                                }

                                                public void onSuccess(Object o) {
                                                    EditLinker el = null;
                                                    if (linker instanceof SidePanelTabItem.SidePanelLinker) {
                                                        el = ((SidePanelTabItem.SidePanelLinker) linker).getEditLinker();
                                                    } else if (linker instanceof EditLinker) {
                                                        el = (EditLinker) linker;
                                                    }
                                                    if (el != null && l.contains(el.getSelectionContext().getMainNode().getPath())) {
                                                        linker.refresh(EditLinker.REFRESH_PAGES);
                                                        linker.select(null);
                                                    } else {
                                                        linker.refresh(EditLinker.REFRESH_ALL);
                                                        linker.select(null);
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.widget.edit.EditLinker

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.