HtmlScript scriptD = new HtmlScript(); scriptD.setContentType("text/javascript"); scriptD.setScript(createHideLinksScript());
        private HtmlComponent createDragScript(HtmlList list) {            String id = getTreeId();            list.setId(id);            HtmlLink link = new HtmlLink();            link.setModuleRelative(false);                        link.setUrl("/javaScript/drag-drop-folder-tree/js/ajax.js");            HtmlScript scriptA = new HtmlScript("text/javascript", link.calculateUrl());                        link.setUrl("/javaScript/drag-drop-folder-tree/js/drag-drop-folder-tree.js");            HtmlScript scriptB = new HtmlScript("text/javascript", link.calculateUrl());                        HtmlLink requestUrlLink = new HtmlLink();            requestUrlLink.setModuleRelative(isModuleRelative());            requestUrlLink.setUrl(getSaveUrl());                        String requestUrl = getSaveUrl() != null ? requestUrlLink.calculateUrl() : null;                        HtmlLink imagesUrlLink = new HtmlLink();            imagesUrlLink.setModuleRelative(false);            imagesUrlLink.setUrl("/javaScript/drag-drop-folder-tree/images/");                        HtmlScript scriptC = new HtmlScript();            scriptC.setContentType("text/javascript");            scriptC.setScript(getTreeScript(id, requestUrl, imagesUrlLink.calculateUrl()));                        HtmlStyle style = new HtmlStyle();            style.setStyleBody(                    String.format("#%s,#%s-container { %s }", id, id, getStyle()) + "\n" +                    String.format("#%s ul { %s }", id, getListStyle()) + "\n" +                     String.format("#%s li,#%s-container li { %s }", id, id, getItemStyle()) + "\n"            );                        HtmlScript scriptD = new HtmlScript();            scriptD.setContentType("text/javascript");            scriptD.setScript(createHideLinksScript());                        HtmlContainer container = new HtmlBlockContainer();            container.addChild(list);            container.addChild(style);            container.addChild(scriptA);            container.addChild(scriptB);            container.addChild(scriptC);            container.addChild(scriptD);                        return container;        }