/** * This method is used for legacy AbstractCellTable that's not a * {@link TableSectionChangeHandler}. */ protected void replaceAllRowsImplLegacy(AbstractCellTable<?> table, TableSectionElement section, SafeHtml html) { // Remove all children. Element child = section.getFirstChildElement(); while (child != null) { Element next = child.getNextSiblingElement(); section.removeChild(child); child = next; } // Add new child elements. TableSectionElement newSection = convertToSectionElement(table, section.getTagName(), html); child = newSection.getFirstChildElement(); while (child != null) { Element next = child.getNextSiblingElement(); section.appendChild(child); child = next; } }
tbodyLoading.appendChild(tr); tr.appendChild(tbodyLoadingCell); tbodyLoadingCell.setAlign("center");
private void addRow(VScrollTableRow row) { row.setIndex(firstRendered + renderedRows.size()); if (row.isSelected()) { row.addStyleName("v-selected"); } tBodyElement.appendChild(row.getElement()); // Add to renderedRows before adopt so iterator() will return also // this row if called in an attach handler (#9264) renderedRows.add(row); adopt(row); }
public int addColumn( String html, String width ) { headTableColgroup.appendChild( createColumnElement( width ) ); tableColgroup.appendChild( createColumnElement( width ) ); TableCellElement th = Document.get().createTHElement(); th.setInnerHTML( html ); thead.appendChild( th ); int index = getNbColumns() - 1; return index; }
public int addColumn( String html, String width ) { headTableColgroup.appendChild( createColumnElement( width ) ); tableColgroup.appendChild( createColumnElement( width ) ); TableCellElement th = Document.get().createTHElement(); th.setInnerHTML( html ); thead.appendChild( th ); int index = getNbColumns() - 1; return index; }
/** * This method is used for legacy AbstractCellTable that's not a * {@link TableSectionChangeHandler}. */ protected void replaceAllRowsImplLegacy(AbstractCellTable<?> table, TableSectionElement section, SafeHtml html) { // Remove all children. Element child = section.getFirstChildElement(); while (child != null) { Element next = child.getNextSiblingElement(); section.removeChild(child); child = next; } // Add new child elements. TableSectionElement newSection = convertToSectionElement(table, section.getTagName(), html); child = newSection.getFirstChildElement(); while (child != null) { Element next = child.getNextSiblingElement(); section.appendChild(child); child = next; } }
/** * This method is used for legacy AbstractCellTable that's not a * {@link TableSectionChangeHandler}. */ protected void replaceAllRowsImplLegacy(AbstractCellTable<?> table, TableSectionElement section, SafeHtml html) { // Remove all children. Element child = section.getFirstChildElement(); while (child != null) { Element next = child.getNextSiblingElement(); section.removeChild(child); child = next; } // Add new child elements. TableSectionElement newSection = convertToSectionElement(table, section.getTagName(), html); child = newSection.getFirstChildElement(); while (child != null) { Element next = child.getNextSiblingElement(); section.appendChild(child); child = next; } }
if (headRow == null || dateToDrow.getDay() == firstDayOfWeek) { headRow = Document.get().createTRElement(); this.calendatBody.appendChild(headRow);
if (headRow == null || dateToDrow.getDay() == firstDayOfWeek) { headRow = Document.get().createTRElement(); this.calendatBody.appendChild(headRow);
tBodyElement.appendChild(scrollTableRow.getElement()); getRowHeight(forceUpdate); tBodyElement.removeChild(scrollTableRow.getElement());
@PatchMethod static TableRowElement insertRow(TableElement e, int index) { NodeList<TableRowElement> rows = e.getRows(); TableRowElement newRow = Document.get().createTRElement(); if (rows.getLength() < 1) { TableSectionElement tbody = Document.get().createTBodyElement(); e.appendChild(tbody); tbody.appendChild(newRow); } else { if (index == -1 || index >= rows.getLength()) { TableRowElement after = rows.getItem(rows.getLength() - 1); after.getParentElement().insertAfter(newRow, after); } else { TableRowElement before = rows.getItem(index); before.getParentElement().insertBefore(newRow, before); } } return newRow; }
@PatchMethod static TableRowElement insertRow(TableElement e, int index) { NodeList<TableRowElement> rows = e.getRows(); TableRowElement newRow = Document.get().createTRElement(); if (rows.getLength() < 1) { TableSectionElement tbody = Document.get().createTBodyElement(); e.appendChild(tbody); tbody.appendChild(newRow); } else { if (index == -1 || index >= rows.getLength()) { TableRowElement after = rows.getItem(rows.getLength() - 1); after.getParentElement().insertAfter(newRow, after); } else { TableRowElement before = rows.getItem(index); before.getParentElement().insertBefore(newRow, before); } } return newRow; }
scrollTableRow.updateStyleNames( VScrollTablePatched.this.getStylePrimaryName()); tBodyElement.appendChild(scrollTableRow.getElement()); detectExtrawidth(); tBodyElement.removeChild(scrollTableRow.getElement());
tbodyLoading.appendChild(tr); tr.appendChild(tbodyLoadingCell); tbodyLoadingCell.setAlign("center");
tbodyLoading.appendChild(tr); tr.appendChild(tbodyLoadingCell); tbodyLoadingCell.setAlign("center");
TableRowElement headRow = Document.get().createTRElement(); this.calendarTable.appendChild(head); head.appendChild(headRow); for (int i = 0; i < 7; i++) { TableCellElement th = Document.get().createTHElement();
TableRowElement headRow = Document.get().createTRElement(); this.calendarTable.appendChild(head); head.appendChild(headRow); for (int i = 0; i < 7; i++) { TableCellElement th = Document.get().createTHElement();
thead.appendChild( theadtr.<Node> cast() ); table.appendChild( tableColgroup ); table.appendChild( tbody.<Node> cast() );
thead.appendChild( theadtr.<Node> cast() ); table.appendChild( tableColgroup ); table.appendChild( tbody.<Node> cast() );