/* DynAPI Distribution ExplorerStyle (Default) The DynAPI Distribution is distributed under the terms of the GNU LGPL license. Requires: StyleManager, Explorer */ function ExplorerStyle(){ var style = new Style(); // create basic style object style.styleName='ExplorerStyle'; style.cssLeave = 'ExplorerLeave'; style.cssRootLeave = 'ExplorerRootLeave'; style.cssCurrentLeave = 'ExplorerCurrentLeave'; style.loadImages = function(){ // load default images if(!this.imageFile) this.imageFile = Styles.getImage('tvw_file.gif',16,16); if(!this.imageFoldOpen) this.imageFoldOpen = Styles.getImage('tvw_foldopen.gif',16,16); if(!this.imageFoldClose) this.imageFoldClose = Styles.getImage('tvw_foldclose.gif',16,16); if(!this.imageLine) this.imageLine = Styles.getImage('tvw_line.gif',15,18); if(!this.imageWhite) this.imageWhite = Styles.getImage('tvw_white.gif',15,18); if(!this.imageOpen) this.imageOpen = Styles.getImage('tvw_open.gif',15,18); if(!this.imageOpenlast) this.imageOpenlast = Styles.getImage('tvw_openlast.gif',15,18); if(!this.imageClose) this.imageClose = Styles.getImage('tvw_close.gif',15,18); if(!this.imageCloselast) this.imageCloselast = Styles.getImage('tvw_closelast.gif',15,18); if(!this.imageNoChildren) this.imageNoChildren = Styles.getImage('tvw_nochildren.gif',15,18); if(!this.imageNoChildrenlast) this.imageNoChildrenlast = Styles.getImage('tvw_nochildrenlast.gif',15,18); }; style._adjustSize = function(){ if(!dynapi.ua.dom) this._OldAdjustSize(); else if(this._created){ var w,h,tb; tb = document.getElementById(this.id+'Explorer'); if(tb){ w = (this._aSzW)? tb.offsetWidth:null; h = (this._aSzH)? tb.offsetHeight:null; this.setSize(w,h); } } }; style._buildHTML = function(leave,level,last,lD) { var niv = level||0; var listaD = lD || new Array(); //if(leave['_html'+leave.open] && !leave.tree._hTree[leave.id]) return leave['_html'+leave.open]; var tree = leave.tree; var iFL = tree.getStyleAttribute('imageFile'); var iFOp = tree.getStyleAttribute('imageFoldOpen'); var iFCl = tree.getStyleAttribute('imageFoldClose'); var iLn = tree.getStyleAttribute('imageLine'); var iWht = tree.getStyleAttribute('imageWhite'); var iOp = tree.getStyleAttribute('imageOpen'); var iOpl = tree.getStyleAttribute('imageOpenlast'); var iC = tree.getStyleAttribute('imageClose'); var iCL = tree.getStyleAttribute('imageCloselast'); var iNC = tree.getStyleAttribute('imageNoChildren'); var iNCL = tree.getStyleAttribute('imageNoChildrenlast'); var csRLV = tree.getStyleAttribute('cssRootLeave')||''; var csCLV = tree.getStyleAttribute('cssCurrentLeave')||''; var csLV = tree.getStyleAttribute('cssLeave')||''; var ret = '