/** * Gets the TD element representing the specified cell. * * @param row the row of the cell to be retrieved * @param column the column of the cell to be retrieved * @return the column's TD element * @throws IndexOutOfBoundsException */ public com.google.gwt.user.client.Element getElement(int row, int column) { checkCellBounds(row, column); return DOM.asOld(getCellElement(bodyElem, row, column)); }
/** * Gets the TD element representing the specified cell unsafely (meaning * that it doesn't ensure that <code>row</code> and <code>column</code> are * valid). * * @param row the row of the cell to be retrieved * @param column the column of the cell to be retrieved * @return the cell's TD element */ private Element getRawElement(int row, int column) { return getCellElement(bodyElem, row, column); } }
/** * Sets the primary style name associated with the specified cell. * * @param row the row of the cell whose style name is to be set * @param column the column of the cell whose style name is to be set * @param styleName the new style name * @see UIObject#setStylePrimaryName(String) * @throws IndexOutOfBoundsException */ public void setStylePrimaryName(int row, int column, String styleName) { UIObject.setStylePrimaryName(getCellElement(bodyElem, row, column), styleName); }
/** * Sets the style name associated with the specified cell. * * @param row the row of the cell whose style name is to be set * @param column the column of the cell whose style name is to be set * @param styleName the new style name * @see UIObject#setStyleName(String) * @throws IndexOutOfBoundsException */ public void setStyleName(int row, int column, String styleName) { prepareCell(row, column); UIObject.setStyleName(getCellElement(bodyElem, row, column), styleName); }
/** * Sets the style name associated with the specified cell. * * @param row the row of the cell whose style name is to be set * @param column the column of the cell whose style name is to be set * @param styleName the new style name * @see UIObject#setStyleName(String) * @throws IndexOutOfBoundsException */ public void setStyleName(int row, int column, String styleName) { prepareCell(row, column); UIObject.setStyleName(getCellElement(bodyElem, row, column), styleName); }
/** * Gets the TD element representing the specified cell unsafely (meaning * that it doesn't ensure that <code>row</code> and <code>column</code> are * valid). * * @param row the row of the cell to be retrieved * @param column the column of the cell to be retrieved * @return the cell's TD element */ private Element getRawElement(int row, int column) { return getCellElement(bodyElem, row, column); } }
/** * Gets the element associated with a cell. If it does not exist and the * subtype allows creation of elements, creates it. * * @param row the cell's row * @param column the cell's column * @return the cell's element * @throws IndexOutOfBoundsException */ protected com.google.gwt.user.client.Element ensureElement(int row, int column) { prepareCell(row, column); return DOM.asOld(getCellElement(bodyElem, row, column)); }
/** * Gets the element associated with a cell. If it does not exist and the * subtype allows creation of elements, creates it. * * @param row the cell's row * @param column the cell's column * @return the cell's element * @throws IndexOutOfBoundsException */ protected com.google.gwt.user.client.Element ensureElement(int row, int column) { prepareCell(row, column); return DOM.asOld(getCellElement(bodyElem, row, column)); }
/** * Sets the height of the specified cell. * * @param row the row of the cell whose height is to be set * @param column the column of the cell whose height is to be set * @param height the cell's new height, in CSS units * @throws IndexOutOfBoundsException */ public void setHeight(int row, int column, String height) { prepareCell(row, column); Element elem = getCellElement(bodyElem, row, column); elem.setPropertyString("height", height); }
/** * Sets the horizontal alignment of the specified cell. * * @param row the row of the cell whose alignment is to be set * @param column the column of the cell whose alignment is to be set * @param align the cell's new horizontal alignment as specified in * {@link HasHorizontalAlignment}. * @throws IndexOutOfBoundsException */ public void setHorizontalAlignment(int row, int column, HorizontalAlignmentConstant align) { prepareCell(row, column); Element elem = getCellElement(bodyElem, row, column); elem.setPropertyString("align", align.getTextAlignString()); }
/** * Sets the vertical alignment of the specified cell. * * @param row the row of the cell whose alignment is to be set * @param column the column of the cell whose alignment is to be set * @param align the cell's new vertical alignment as specified in * {@link HasVerticalAlignment}. * @throws IndexOutOfBoundsException */ public void setVerticalAlignment(int row, int column, VerticalAlignmentConstant align) { prepareCell(row, column); getCellElement(bodyElem, row, column).getStyle() .setProperty("verticalAlign", align.getVerticalAlignString()); }
/** * Sets the width of the specified cell. * * @param row the row of the cell whose width is to be set * @param column the column of the cell whose width is to be set * @param width the cell's new width, in CSS units * @throws IndexOutOfBoundsException */ public void setWidth(int row, int column, String width) { // Give the subclass a chance to prepare the cell. prepareCell(row, column); getCellElement(bodyElem, row, column).setPropertyString("width", width); }
/** * Sets the primary style name associated with the specified cell. * * @param row the row of the cell whose style name is to be set * @param column the column of the cell whose style name is to be set * @param styleName the new style name * @see UIObject#setStylePrimaryName(String) * @throws IndexOutOfBoundsException */ public void setStylePrimaryName(int row, int column, String styleName) { UIObject.setStylePrimaryName(getCellElement(bodyElem, row, column), styleName); }
/** * Sets the height of the specified cell. * * @param row the row of the cell whose height is to be set * @param column the column of the cell whose height is to be set * @param height the cell's new height, in CSS units * @throws IndexOutOfBoundsException */ public void setHeight(int row, int column, String height) { prepareCell(row, column); Element elem = getCellElement(bodyElem, row, column); elem.setPropertyString("height", height); }
/** * Removes a style from the specified cell. * * @param row the cell's row * @param column the cell's column * @param styleName the style name to be removed * @see UIObject#removeStyleName(String) * @throws IndexOutOfBoundsException */ public void removeStyleName(int row, int column, String styleName) { checkCellBounds(row, column); Element td = getCellElement(bodyElem, row, column); UIObject.setStyleName(td, styleName, false); }
/** * Gets the TD element representing the specified cell unsafely (meaning * that it doesn't ensure that <code>row</code> and <code>column</code> are * valid). * * @param row the row of the cell to be retrieved * @param column the column of the cell to be retrieved * @return the cell's TD element */ private Element getRawElement(int row, int column) { return getCellElement(bodyElem, row, column); } }
/** * Gets the TD element representing the specified cell. * * @param row the row of the cell to be retrieved * @param column the column of the cell to be retrieved * @return the column's TD element * @throws IndexOutOfBoundsException */ public com.google.gwt.user.client.Element getElement(int row, int column) { checkCellBounds(row, column); return DOM.asOld(getCellElement(bodyElem, row, column)); }
/** * Sets the style name associated with the specified cell. * * @param row the row of the cell whose style name is to be set * @param column the column of the cell whose style name is to be set * @param styleName the new style name * @see UIObject#setStyleName(String) * @throws IndexOutOfBoundsException */ public void setStyleName(int row, int column, String styleName) { prepareCell(row, column); UIObject.setStyleName(getCellElement(bodyElem, row, column), styleName); }
/** * Adds a style to the specified cell. * * @param row the cell's row * @param column the cell's column * @param styleName the style name to be added * @see UIObject#addStyleName(String) */ public void addStyleName(int row, int column, String styleName) { prepareCell(row, column); Element td = getCellElement(bodyElem, row, column); UIObject.setStyleName(td, styleName, true); }
/** * Gets the element associated with a cell. If it does not exist and the * subtype allows creation of elements, creates it. * * @param row the cell's row * @param column the cell's column * @return the cell's element * @throws IndexOutOfBoundsException */ protected com.google.gwt.user.client.Element ensureElement(int row, int column) { prepareCell(row, column); return DOM.asOld(getCellElement(bodyElem, row, column)); }