var navset = global['navset']; if (typeof(navset) == 'undefined') navset = "nav.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 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.setVisible(true); this.itemlist.childlayout.doOpen(); } else { this.itemlist.childlayout.doClose(); } } if (seq[0] == this.name) { // 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 openanimator(this, { item: classroot }); } this.animateOpen.doStart(); if (this.animateClose == null) { this.animateClose = new closeanimator(this, { item: classroot }); } this.animateClose.doStart(); icon.setAttribute("y", 9); label.setAttribute("y", 3); label.setAttribute("fgcolor", 0xffffff); label.setAttribute("fontsize", 13); icon.setAttribute("y", 5); label.setAttribute("y", 2); 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.setResource(tagtype + "_btn"); if (tagtype == 'subitem') { this.smalltext(); } else { this.largetext(); } var action = dp.xpathQuery("@action"); if (action == 'popup' || action == 'source') { icon.setResourceNumber(4); } background.setResourceNumber(classroot.open ? 4 : 1); // Only toggle arrow if there are subnodes if (this.datapath.getNodeCount()) { icon.setResourceNumber(classroot.open ? 2 : 1); } LzBrowser.loadURL('javascript:window.open("http://www.openlaszlo.org","test","resizable=1,width=1000,height=700,left=0,top=0,screenX=0,screenY=0,menubar,location,status,scrollbars,toolbar,address"); void(0);' ); // 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) { this[restore[0]].openSequence(restore); } }