private Listgroupfoot newListgroupfoot(ListitemRenderer renderer) { Listgroupfoot groupfoot = null; if (renderer instanceof ListgroupRendererExt) groupfoot = ((ListgroupRendererExt) renderer).newListgroupfoot(_listbox); if (groupfoot == null) { groupfoot = new Listgroupfoot(); groupfoot.applyProperties(); } return groupfoot; }
public void render(Component comp, Writer out) throws IOException { final SmartWriter wh = new SmartWriter(out); final Listgroupfoot self = (Listgroupfoot)comp; wh.write("<tr id=\"").write(self.getUuid()).write("\" z.type=\"Litgpft\"") .write(self.getOuterAttrs()).write(self.getInnerAttrs()).write(">"); wh.writeChildren(self); wh.writeln("</tr>"); } }
/** Returns the value of the {@link Label} it contains, or null * if no such cell. */ public String getLabel() { final Component cell = getFirstChild(); return cell != null && cell instanceof Label ? ((Label) cell).getValue() : null; }
public Listgroupfoot(String label) { this(); setLabel(label); }
/** Sets the value of the {@link Label} it contains. * * <p>If it is not created, we automatically create it. */ public void setLabel(String label) { autoFirstCell().setLabel(label); }
if (refChild == null) { if (isReorder) { final int idx = ((Listgroupfoot) newChild).getIndex(); final int[] ginfo = getGroupsInfoAt(idx); if (ginfo != null) { g[2] = idx - 1; if (isReorder) { final int nindex = ((Listgroupfoot) newChild).getIndex(); final int[] ginfo = getGroupsInfoAt(nindex); if (ginfo != null) { g[2] = idx; if (isReorder) { final int nindex = ((Listgroupfoot) newChild).getIndex(); final int[] ginfo = getGroupsInfoAt(nindex); if (ginfo != null) {
private Listcell autoFirstCell() { Listcell cell = (Listcell) getFirstChild(); if (cell == null) { cell = new Listcell(); cell.applyProperties(); cell.setParent(this); } return cell; } }