/* Add a new heading Cell in the current row.
Adds to the table after this call and before next call to newRow,
newCell or newHeader are added to the cell.
@return This table for call chaining
10622
public Table addHeading(Object o,String attributes)
    {
        addHeading(o);
        cell.attribute(attributes);
        return this;
    }
1288696
public Cell createCell(SimpleCell rowAttributes) throws BadElementException {
		Cell cell = new Cell();
		cell.cloneNonPositionParameters(rowAttributes);
		cell.softCloneNonPositionParameters(this);
		cell.setColspan(colspan);
		cell.setHorizontalAlignment(horizontalAlignment);
		cell.setVerticalAlignment(verticalAlignment);
		cell.setUseAscender(useAscender);
		cell.setUseBorderPadding(useBorderPadding);
		cell.setUseDescender(useDescender);
		Element element;
		for (Iterator i = content.iterator(); i.hasNext(); ) {
			element = (Element)i.next();
			cell.addElement(element);
		}
		return cell;
	}
433375
public TableLayoutBuilder row() {
        ++currentRow;
        lastCC = null;
        maxColumns = Math.max(maxColumns, currentCol);
        currentCol = 0;
        return this;
    }
1259427
public Cell createCell(String str) {

        Cell cell = this.getNextCell(CellType.STRING);
        cell.setCellValue(str);
        cell.setCellStyle(this.style.getStringCs());
        return cell;
    }
568197
public CmsLinkTable getLinkTable() {

        CmsLinkTable linkTable = new CmsLinkTable();
        Element links = m_element.element(CmsXmlPage.NODE_LINKS);
        if (links != null) {
            Iterator<Element> itLinks = CmsXmlGenericWrapper.elementIterator(links, CmsXmlPage.NODE_LINK);
            while (itLinks.hasNext()) {
                Element lelem = itLinks.next();
                linkTable.addLink(new CmsLink(lelem));
            }
        }
        return linkTable;
    }
1220401
public boolean addNewDataStyleFromCellStyle(final TableCellStyle style) {
        final boolean ret = this.addContentStyle(style);
        return this.addDataStyle(style.getDataStyle()) && ret;
    }
133670
public Row addLastChild()
	{
		assert (this.treeTable.m_nbColumns > 0) : "Table should have at least one column before adding items";

		Row newItem = new Row( this.treeTable );
		newItem.m_tr = DOM.createTR();
		newItem.m_tr.setPropertyObject( "linkedItem", newItem );

		newItem.m_tr.setInnerHTML( this.treeTable.m_rowTemplate );

		// DOM add
		Row lastParentLeaf = getLastLeaf();
		Element trToInsertAfter = lastParentLeaf.m_tr;
		if( trToInsertAfter != null )
		{
			int after = DOM.getChildIndex( this.treeTable.m_body, trToInsertAfter );
			int before = after + 1;
			DOM.insertChild( this.treeTable.m_body, newItem.m_tr, before );
		}
		else
		{
			DOM.appendChild( this.treeTable.m_body, newItem.m_tr );
		}

		// logical add
		newItem.m_parent = this;
		getChilds().add( newItem );
		signalStateChange();

		// take care of the left padding
		Element firstTd = DOM.getChild( newItem.m_tr, 0 );
		firstTd.getStyle().setPaddingLeft( newItem.getLevel() * this.treeTable.treePadding, Unit.PX );

		return newItem;
	}
779513
public ExcelCell newCell(String url, String label) {
        return row.newCell().link(url, label);
    }
852136
@Nonnull
  public PLTable addRow (@Nonnull final Iterable <? extends PLTableCell> aCells)
  {
    return addRow (aCells, m_aRows.getDefaultHeight ());
  }
161795
public function addCell(TableCell $cell)
    {
        $this->cells[] = $cell;

        if (!$cell->getRow()) {
            $cell->setRow($this);
        }

        return $this;
    }
514237
public Cell<C,T> left () {
		if (align == null)
			align = LEFT;
		else {
			align |= LEFT;
			align &= ~RIGHT;
		}
		return this;
	}
250889
public HBaseDataWrapper next()
    {
        Result result = resultsIter.next();
        counter++;
        List<Cell> cells = result.listCells();
        HBaseDataWrapper data = new HBaseDataWrapper(tableName, result.getRow());
        data.setColumns(cells);
        return data;
    }
290276
public Cell addCell(Row row, String label) {
        Cell cell = new Cell(label);
        row.addChild(cell);
        return cell;
    }
1016560
function(cell) {
    var elCell = this.getTdEl(cell);

    if(elCell) {
        // Make sure previous cell is unhighlighted
        if(this._elLastHighlightedTd) {
            this.unhighlightCell(this._elLastHighlightedTd);
        }

        var oRecord = this.getRecord(elCell);
        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
        Dom.addClass(elCell,DT.CLASS_HIGHLIGHTED);
        this._elLastHighlightedTd = elCell;
        this.fireEvent("cellHighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
        return;
    }
}
622399
public function addElement($cell, $name = null, $attrs = null) {
		if (! $cell instanceof TableCell) {
			if ($this->_headRow) {
				$cell = new TableHeadCell($cell, $attrs);
			} else {
				$cell = new TableCell($cell, $attrs);
			}
		}
		
		return parent::addElement($cell, $name);
	}
291981
public TableBuilder addHeaderAndVerticalsBorders(BorderStyle style) {
		this.addBorder(0, 0, 1, model.getColumnCount(), OUTLINE, style);
		this.addBorder(0, 0, model.getRowCount(), model.getColumnCount(), OUTLINE | INNER_VERTICAL, style);
		return this;
	}
534410
public Cell<C,T> right () {
		if (align == null)
			align = RIGHT;
		else {
			align |= RIGHT;
			align &= ~LEFT;
		}
		return this;
	}