var navset = global['navset']; if (typeof(navset) == 'undefined') { navset = "nav.xml"; var lzr = global['lzr']; if (lzr && lzr == 'dhtml') { Debug.info("gonna use dhtml nav."); navset = "nav_dhtml.xml"; } } canvas.navdata.setSrc(navset); canvas.navdata.doRequest(); var lastclone = clones[ clones.length - 1 ]; if ( !this.doneDel ){ this.doneDel = new LzDelegate( this, 'replicationDone'); } else { this.doneDel.unregisterAll(); } this.doneDel.register( lastclone , "oninit" ); var mb = this.parent; mb.dataBound(); this.children.sendToBack(); this.setAttribute("isleaf", !this.datapath.p.hasChildNodes()); if( !this['clonenumber'] || this.clonenumber == 0) { var mb = this.parent; if (mb instanceof lz.menubutton) { mb.dataBound(); } } if (this.children.itemlist.subviews.length > 0) { // Debug.write('doOpenChildren', this, o, this.children.itemlist.subviews); var item_hgt = this.item.height; this.itemlist.childlayout.setAttribute('hgt', item_hgt); if (o) { this.itemlist.childlayout.setAttribute('spacing', -item_hgt); this.itemlist.childlayout.setAttribute('inset', -item_hgt); this.children.setAttribute('visible', true); this.itemlist.childlayout.doOpen(); } else { this.itemlist.childlayout.doClose(); } } if (seq[0] == this.title) { // first, open self this.header.open(); if (seq.length > 1) { this.nextOpenList = seq.splice(1,seq.length - 1); } } if (this.animateOpen == null) { this.animateOpen = new lz.openanimator(this, { item: classroot }); } this.animateOpen.doStart(); if (this.animateClose == null) { this.animateClose = new lz.closeanimator(this, { item: classroot }); } this.animateClose.doStart(); icon.setAttribute("y", 9); label.setAttribute("fgcolor", 0xffffff); label.setAttribute("fontsize", 13); icon.setAttribute("y", 5); label.setAttribute("fgcolor", 0xd4dcec); label.setAttribute("fontsize", 11); var dp = this.datapath; this.setAttribute("isleaf", !this.datapath.p.hasChildNodes()); var tagtype = dp.xpathQuery("name()"); this.background.setAttribute('resource', tagtype + "_btn"); if (tagtype == 'subitem') { this.smalltext(); } else { this.largetext(); } var action = dp.xpathQuery("@action"); if (action == 'popup' || action == 'source' || action == 'popupexternal') { icon.setAttribute('frame', 4); } this.doaction(null); 0 && 'open' in classroot.itemlist.subviews[0].header) classroot.itemlist.subviews[0].header.open(); } else { var action = dp.xpathQuery("@action"); var runtime = dp.xpathQuery("@runtime"); if (typeof runtime == "undefined") runtime = $runtime; var src = dp.xpathQuery("@src"); var tagline = dp.xpathQuery("@text"); var title = dp.xpathQuery("@title"); if (action=='popup'){ var popup = dp.xpathQuery("@popup"); var target = dp.xpathQuery("@target"); var popwidth = dp.xpathQuery("@width"); var popheight = dp.xpathQuery("@height"); if(typeof popwidth == 'undefined') popwidth = 860; if(typeof popheight == 'undefined') popheight = 600; if (target == null) target = escape(popup + runtime); if ($runtime == 'dhtml') { lz.Browser.loadURL("loading.jsp?src=" + popup + "&lzr=" + runtime + "&lzt=html", target, "scrollbars=yes,width=" + popwidth + ",height=" + popheight); } else { lz.Browser.loadJS('window.open("loading.jsp?src=' + popup + '&lzr=' + runtime + '&lzt=html", "' + target + '", "scrollbars=yes,width=' + popwidth + ',height=' + popheight + '")'); } if (src != null){ lz.Browser.loadURL('content.jsp?src=' + src + '&tag=' + tagline + '&title=' + title + '&lzr=' + runtime, 'content'); } } else if (action =='popupexternal') { var jsOpenStr = "window.open('" + src + "'," + "'" + target + "'," + "'scrollbars=yes,resizable=yes,toolbar=yes,location=yes,menubar=yes,width=" + popwidth + ",height=" + popheight + "')"; lz.Browser.loadJS(jsOpenStr); } else { if (title ==null){ title = classroot.title; } lz.Browser.loadURL('content.jsp?src=' + src + '&tag=' + tagline + '&title=' + title + '&action=' + action + '&lzr=' + runtime, (action=='source') ? 'source' : 'content'); } } ]]> this.showUp(null); background.setAttribute('frame', classroot.open ? 4 : 1); // Only toggle arrow if there are subnodes if (this.datapath.getNodeCount()) { icon.setAttribute('frame', classroot.open ? 2 : 1); } // this is how we restore the state of the app from an incoming URL, // this is always provided by the JSP wrappers if (typeof(global.bookmark) != 'undefined'){ var restore = global.bookmark.split('|'); if (restore.length > 0) { if (this[restore[0]]) this[restore[0]].openSequence(restore); } }