@SuppressWarnings("deprecation") protected com.google.gwt.user.client.Element getRow(Element tbody, int row) { return getRow(DOM.asOld(tbody), row); }
@SuppressWarnings("deprecation") protected com.google.gwt.user.client.Element getRow(Element tbody, int row) { return getRow(DOM.asOld(tbody), row); }
/** * 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); }
/** * Inserts a number of cells before the specified cell. * * @param row the row into which the new cells will be inserted * @param column the column before which the new cells will be inserted * @param count number of cells to be inserted * @throws IndexOutOfBoundsException */ protected void insertCells(int row, int column, int count) { Element tr = rowFormatter.getRow(bodyElem, row); for (int i = column; i < column + count; i++) { Element td = createCell(); DOM.insertChild(tr, td, i); } }
/** * Inserts a new cell into the specified row. * * @param row the row into which the new cell will be inserted * @param column the column before which the cell will be inserted * @throws IndexOutOfBoundsException */ protected void insertCell(int row, int column) { Element tr = rowFormatter.getRow(bodyElem, row); Element td = createCell(); DOM.insertChild(tr, td, column); }
/** * Gets the TR element representing the specified row. * * @param row the row whose TR element is to be retrieved * @return the row's TR element * @throws IndexOutOfBoundsException */ public com.google.gwt.user.client.Element getElement(int row) { checkRowBounds(row); return DOM.asOld(getRow(bodyElem, row)); }
/** * Ensure the TR element representing the specified row exists for * subclasses that allow dynamic addition of elements. * * @param row the row whose TR element is to be retrieved * @return the row's TR element * @throws IndexOutOfBoundsException */ protected com.google.gwt.user.client.Element ensureElement(int row) { prepareRow(row); return DOM.asOld(getRow(bodyElem, row)); }
/** * Inserts a new cell into the specified row. * * @param row the row into which the new cell will be inserted * @param column the column before which the cell will be inserted * @throws IndexOutOfBoundsException */ protected void insertCell(int row, int column) { Element tr = rowFormatter.getRow(bodyElem, row); Element td = createCell(); DOM.insertChild(tr, td, column); }
/** * 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); }
/** * Ensure the TR element representing the specified row exists for * subclasses that allow dynamic addition of elements. * * @param row the row whose TR element is to be retrieved * @return the row's TR element * @throws IndexOutOfBoundsException */ protected com.google.gwt.user.client.Element ensureElement(int row) { prepareRow(row); return DOM.asOld(getRow(bodyElem, row)); }
/** * Gets the TR element representing the specified row. * * @param row the row whose TR element is to be retrieved * @return the row's TR element * @throws IndexOutOfBoundsException */ public com.google.gwt.user.client.Element getElement(int row) { checkRowBounds(row); return DOM.asOld(getRow(bodyElem, row)); }
/** * Inserts a number of cells before the specified cell. * * @param row the row into which the new cells will be inserted * @param column the column before which the new cells will be inserted * @param count number of cells to be inserted * @throws IndexOutOfBoundsException */ protected void insertCells(int row, int column, int count) { Element tr = rowFormatter.getRow(bodyElem, row); for (int i = column; i < column + count; i++) { Element td = createCell(); DOM.insertChild(tr, td, i); } }
/** * 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)); }
/** * Ensure the TR element representing the specified row exists for * subclasses that allow dynamic addition of elements. * * @param row the row whose TR element is to be retrieved * @return the row's TR element * @throws IndexOutOfBoundsException */ protected com.google.gwt.user.client.Element ensureElement(int row) { prepareRow(row); return DOM.asOld(getRow(bodyElem, row)); }
/** * Gets the TR element representing the specified row. * * @param row the row whose TR element is to be retrieved * @return the row's TR element * @throws IndexOutOfBoundsException */ public com.google.gwt.user.client.Element getElement(int row) { checkRowBounds(row); return DOM.asOld(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); }
@SuppressWarnings("deprecation") protected com.google.gwt.user.client.Element getRow(Element tbody, int row) { return getRow(DOM.asOld(tbody), row); }
/** * Inserts a new cell into the specified row. * * @param row the row into which the new cell will be inserted * @param column the column before which the cell will be inserted * @throws IndexOutOfBoundsException */ protected void insertCell(int row, int column) { Element tr = rowFormatter.getRow(bodyElem, row); Element td = createCell(); DOM.insertChild(tr, td, column); }