/** * Removes all widgets from this table, optionally clearing the inner HTML of * each cell. Note that this method does not remove any cells or rows. * * @param clearInnerHTML should the cell's inner html be cleared? */ public void clear(boolean clearInnerHTML) { for (int row = 0; row < getRowCount(); ++row) { for (int col = 0; col < getCellCount(row); ++col) { cleanCell(row, col, clearInnerHTML); } } }
/** * Sets the text within the specified cell. * * @param row the cell's row * @param column cell's column * @param text the cell's text contents * @throws IndexOutOfBoundsException */ public void setText(int row, int column, String text) { prepareCell(row, column); Element td; td = cleanCell(row, column, text == null); if (text != null) { td.setInnerText(text); } }
/** * Removes the specified row from the table. * * @param row the index of the row to be removed * @throws IndexOutOfBoundsException */ protected void removeRow(int row) { int columnCount = getCellCount(row); for (int column = 0; column < columnCount; ++column) { cleanCell(row, column, false); } bodyElem.removeChild(rowFormatter.getRow(bodyElem, row)); }
/** * Removes the specified cell from the table. * * @param row the row of the cell to remove * @param column the column of cell to remove * @throws IndexOutOfBoundsException */ protected void removeCell(int row, int column) { checkCellBounds(row, column); Element td = cleanCell(row, column, false); Element tr = rowFormatter.getRow(bodyElem, row); tr.removeChild(td); }
/** * Sets the HTML contents of the specified cell. * * @param row the cell's row * @param column the cell's column * @param html the cell's HTML contents * @throws IndexOutOfBoundsException */ public void setHTML(int row, int column, @IsSafeHtml String html) { prepareCell(row, column); Element td = cleanCell(row, column, html == null); if (html != null) { td.setInnerHTML(html); } }
Element td = cleanCell(row, column, true);
/** * Removes all widgets from this table, optionally clearing the inner HTML of * each cell. Note that this method does not remove any cells or rows. * * @param clearInnerHTML should the cell's inner html be cleared? */ public void clear(boolean clearInnerHTML) { for (int row = 0; row < getRowCount(); ++row) { for (int col = 0; col < getCellCount(row); ++col) { cleanCell(row, col, clearInnerHTML); } } }
/** * Removes all widgets from this table, optionally clearing the inner HTML of * each cell. Note that this method does not remove any cells or rows. * * @param clearInnerHTML should the cell's inner html be cleared? */ public void clear(boolean clearInnerHTML) { for (int row = 0; row < getRowCount(); ++row) { for (int col = 0; col < getCellCount(row); ++col) { cleanCell(row, col, clearInnerHTML); } } }
/** * Sets the text within the specified cell. * * @param row the cell's row * @param column cell's column * @param text the cell's text contents * @throws IndexOutOfBoundsException */ public void setText(int row, int column, String text) { prepareCell(row, column); Element td; td = cleanCell(row, column, text == null); if (text != null) { td.setInnerText(text); } }
/** * Sets the HTML contents of the specified cell. * * @param row the cell's row * @param column the cell's column * @param html the cell's HTML contents * @throws IndexOutOfBoundsException */ public void setHTML(int row, int column, String html) { prepareCell(row, column); Element td = cleanCell(row, column, html == null); if (html != null) { td.setInnerHTML(html); } }
/** * Sets the HTML contents of the specified cell. * * @param row the cell's row * @param column the cell's column * @param html the cell's HTML contents * @throws IndexOutOfBoundsException */ public void setHTML(int row, int column, String html) { prepareCell(row, column); Element td = cleanCell(row, column, html == null); if (html != null) { td.setInnerHTML(html); } }
/** * Sets the text within the specified cell. * * @param row the cell's row * @param column cell's column * @param text the cell's text contents * @throws IndexOutOfBoundsException */ public void setText(int row, int column, String text) { prepareCell(row, column); Element td; td = cleanCell(row, column, text == null); if (text != null) { td.setInnerText(text); } }
/** * Removes the specified row from the table. * * @param row the index of the row to be removed * @throws IndexOutOfBoundsException */ protected void removeRow(int row) { int columnCount = getCellCount(row); for (int column = 0; column < columnCount; ++column) { cleanCell(row, column, false); } bodyElem.removeChild(rowFormatter.getRow(bodyElem, row)); }
/** * Removes the specified cell from the table. * * @param row the row of the cell to remove * @param column the column of cell to remove * @throws IndexOutOfBoundsException */ protected void removeCell(int row, int column) { checkCellBounds(row, column); Element td = cleanCell(row, column, false); Element tr = rowFormatter.getRow(bodyElem, row); tr.removeChild(td); }
/** * Removes the specified cell from the table. * * @param row the row of the cell to remove * @param column the column of cell to remove * @throws IndexOutOfBoundsException */ protected void removeCell(int row, int column) { checkCellBounds(row, column); Element td = cleanCell(row, column, false); Element tr = rowFormatter.getRow(bodyElem, row); tr.removeChild(td); }
/** * Removes the specified row from the table. * * @param row the index of the row to be removed * @throws IndexOutOfBoundsException */ protected void removeRow(int row) { int columnCount = getCellCount(row); for (int column = 0; column < columnCount; ++column) { cleanCell(row, column, false); } bodyElem.removeChild(rowFormatter.getRow(bodyElem, row)); }
Element td = cleanCell(row, column, true);
Element td = cleanCell(row, column, true);