/** * Returns whether it has the displayed value of the cell. * * @return whether it has the displayed value of the cell */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the displayed value of the cell. * * @return whether it has the displayed value of the cell */ public boolean hasValue() { return getValue() != null; }
private XmlElement getRow(ListItemEntry item) { XmlElement element = RendererUtils.getEntryElement(item, "tr"); for (Field field : item.getFields()) { String val; if (field.getValue() == null || field.getValue().equals("")) { val = " "; //Equivalent to but XML compliant } else if (field.getValue().equals("on")) { val = "\u2713"; //Checkmark } else { val = field.getValue(); } XmlElement cell = new XmlElement("td"); cell.setAttribute("class", "gs:field"); cell.setAttribute("title", field.getIndex()); cell.addXml(val); element.addElement(cell); } XmlElement authorCell = new XmlElement("td"); element.addElement(authorCell.addElement( RendererUtils.getAuthorElement(item))); XmlElement revisionCell = new XmlElement("td"); XmlElement updatedCell = new XmlElement("td"); element.addElement(updatedCell.addElement( RendererUtils.getUpdatedElement(item))); element.addElement(revisionCell.addElement( RendererUtils.getRevisionElement(item))); return element; } }