/** * Get the number of columns in this row. * @return The number of columns in this row. * <em>Note: this is a a simple count of the number of {@.html <TD>} tags and * may be incorrect if the {@.html <TD>} tags span multiple columns.</em> */ public int getColumnCount () { return (getColumns ().length); }
/** * Checks if this table has a header * @return <code>true</code> if there is a header tag. */ public boolean hasHeader () { return (0 != getHeaderCount ()); } }
/** * Get the number of headers in this row. * @return The count of header tags in this row. */ public int getHeaderCount () { return (getHeaders ().length); }
public Row() { rowNode = (TableRow) newTag(TableRow.class); rowNode.setChildren(new NodeList()); Tag endNode = new TableRow(); endNode.setTagName("/" + rowNode.getTagName().toLowerCase()); rowNode.setEndTag(endNode); }
Node[] cells = row.getChildren().extractAllNodesThatMatch( HTML_ROW_FILTER ).toNodeArray(); log.warn( "Ignoring row which has " + row.getColumnCount() + " columns since table has " + firstColumnCount + " columns" ); continue;
/** * Returns the number of columns/cells in the given row, including cell spacing. */ private static int getColumnCount( TableRow row ) { Node[] cells = row.getChildren().extractAllNodesThatMatch( HTML_ROW_FILTER ).toNodeArray(); int cols = 0; for ( Node cell : cells ) { Integer colSpan = MathUtils.parseInt( ((TagNode) cell).getAttribute( "colspan" ) ); cols += colSpan != null ? colSpan : 1; } return cols; }
public Row() { rowNode = (TableRow) newTag(TableRow.class); rowNode.setChildren(new NodeList()); Tag endNode = new TableRow(); endNode.setTagName("/" + rowNode.getTagName().toLowerCase()); rowNode.setEndTag(endNode); }
TableColumn[] ret; kids = getChildren (); if (null != kids)
registerTag (new TableColumn ()); registerTag (new TableHeader ()); registerTag (new TableRow ()); registerTag (new TableTag ()); registerTag (new TextareaTag ());
/** * Get the number of columns in this row. * @return The number of columns in this row. * <em>Note: this is a a simple count of the number of {@.html <TD>} tags and * may be incorrect if the {@.html <TD>} tags span multiple columns.</em> */ public int getColumnCount () { return (getColumns ().length); }
TableHeader[] ret; kids = getChildren (); if (null != kids)
/** * Checks if this table has a header * @return <code>true</code> if there is a header tag. */ public boolean hasHeader () { return (0 != getHeaderCount ()); } }
/** * Get the number of headers in this row. * @return The count of header tags in this row. */ public int getHeaderCount () { return (getHeaders ().length); }
registerTag (new TableColumn ()); registerTag (new TableHeader ()); registerTag (new TableRow ()); registerTag (new TableTag ()); registerTag (new TextareaTag ());
TableColumn[] columns = row.getColumns(); StageMetrics metrics = new StageMetrics(); metrics.setId(Integer.parseInt(columns[0].toPlainTextString().trim()));
for (TableColumn column : row.getColumns())
TableColumn[] columns = row.getColumns(); StageMetrics metrics = new StageMetrics(); metrics.setId(Integer.parseInt(columns[0].toPlainTextString().trim()));