/** Returns the tree header that is in the same column as * this footer, or null if not available. */ public Treecol getTreecol() { final Tree tree = getTree(); if (tree != null) { final Treecols cs = tree.getTreecols(); if (cs != null) { final int j = getColumnIndex(); final List cschs = cs.getChildren(); if (j < cschs.size()) return (Treecol) cschs.get(j); } } return null; }
/** Returns the tree column associated with this cell, or null if not available. */ public Treecol getTreecol() { final Tree tree = getTree(); if (tree != null) { final Treecols lcs = tree.getTreecols(); if (lcs != null) { final int j = getColumnIndex(); final List lcschs = lcs.getChildren(); if (j < lcschs.size()) return (Treecol) lcschs.get(j); } } return null; }
private static boolean doSort(Tree tree) { Treecols cols = tree.getTreecols(); if (!tree.isAutosort() || cols == null) return false; for (Component c : cols.getChildren()) { final Treecol hd = (Treecol) c; String dir = hd.getSortDirection(); if (!"natural".equals(dir)) { hd.doSort("ascending".equals(dir)); return true; } } return false; }
for (Iterator it = tree.getTreecols().getChildren().iterator(); it.hasNext();) { final Treecol col = (Treecol) it.next(); col.setSortDirection(col != this ? "natural" : ascending ? "ascending" : "descending");
wh.write("<div id=\"").write(uuid).write("\" z.type=\"zul.tree.Tree\"") .write(self.getOuterAttrs()).write(self.getInnerAttrs()).write(">"); if(self.getTreecols() != null){ wh.write("<div id=\"").write(uuid).write("!head\" class=\"").write(zcls).write("-header\">") .write("<table width=\"").write(self.getInnerWidth()).write("\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"table-layout:fixed\">"); if(self.getTreecols() != null) { wh.write("<tbody style=\"visibility:hidden;height:0px\">") .write("<tr id=\"").write(self.getTreecols().getUuid()) .write("!hdfaker\" class=\"").write(zcls).write("-faker\">"); for (Iterator it = self.getTreecols().getChildren().iterator(); it.hasNext();) { final Treecol child = (Treecol) it.next(); wh.write("<th id=\"").write(child.getUuid()).write("!hdfaker\"").write(child.getOuterAttrs()) if(self.getTreecols() != null) { wh.write("<tbody style=\"visibility:hidden;height:0px\">") .write("<tr id=\"").write(self.getTreecols().getUuid()).write("!bdfaker\" class=\"").write(zcls).write("-faker\">"); for (Iterator it = self.getTreecols().getChildren().iterator(); it.hasNext();) { final Treecol child = (Treecol) it.next(); wh.write("<th id=\"").write(child.getUuid()).write("!bdfaker\"").write(child.getOuterAttrs()) wh.write("<div id=\"").write(uuid).write("!foot\" class=\"").write(zcls).write("-footer\">") .write("<table width=\"").write(self.getInnerWidth()).write("\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"table-layout:fixed\">"); if(self.getTreecols() != null) { wh.write("<tbody style=\"visibility:hidden;height:0px\">") .write("<tr id=\"").write(self.getTreecols().getUuid()).write("!ftfaker\" class=\"").write(zcls).write("-faker\">"); for (Iterator it = self.getTreecols().getChildren().iterator(); it.hasNext();) {
if(self.getTreecols() != null){ wh.write("<div id=\"").write(self.getUuid()).write("!head\" class=\"").write(zcls).write("-header\">") .write("<table width=\"").write(self.getInnerWidth()).write("\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"table-layout:fixed\">"); if(self.getTreecols() != null) { wh.write("<tbody style=\"visibility:hidden;height:0px\">") .write("<tr id=\"").write(self.getTreecols().getUuid()).write("!hdfaker\" class=\"").write(zcls).write("-faker\">"); for (Iterator it = self.getTreecols().getChildren().iterator(); it.hasNext();) { final Treecol child = (Treecol) it.next(); wh.write("<th id=\"").write(child.getUuid()).write("!hdfaker\"").write(child.getOuterAttrs()) if(self.getTreecols() != null) { wh.write("<tbody style=\"visibility:hidden;height:0px\">") .write("<tr id=\"").write(self.getTreecols().getUuid()).write("!bdfaker\" class=\"").write(zcls).write("-faker\">"); for (Iterator it = self.getTreecols().getChildren().iterator(); it.hasNext();) { final Treecol child = (Treecol) it.next(); wh.write("<th id=\"").write(child.getUuid()).write("!bdfaker\"").write(child.getOuterAttrs()) wh.write("<div id=\"").write(self.getUuid()).write("!foot\" class=\"").write(zcls).write("-footer\">") .write("<table width=\"").write(self.getInnerWidth()).write("\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"table-layout:fixed\">"); if(self.getTreecols() != null) { wh.write("<tbody style=\"visibility:hidden;height:0px\">") .write("<tr id=\"").write(self.getTreecols().getUuid()).write("!ftfaker\" class=\"").write(zcls).write("-faker\">"); for (Iterator it = self.getTreecols().getChildren().iterator(); it.hasNext();) { final Treecol child = (Treecol) it.next(); wh.write("<th id=\"").write(child.getUuid()).write("!ftfaker\"").write(child.getOuterAttrs())