Gets the input row this cell belongs to

If this input-cell is not yet added to a table-view, or if the parent
table-view of this cell does not have an input-row, null is returned.

@return SwatTableViewInputRow the input row this cell belongs to.
551599
protected function getInputRow()
    {
        $view = $this->getFirstAncestor('SwatTableView');
        if ($view === null) {
            return null;
        }

        $row = $view->getFirstRowByClass('SwatTableViewInputRow');

        return $row;
    }
38659
private java.nio.ByteBuffer getWritingRow() {
        final int row = this.writerIndex / this.localCapacity;
        if (row >= this.storage.size()) {
            final java.nio.ByteBuffer buf = java.nio.ByteBuffer.allocate(this.localCapacity);
            this.storage.add(buf);
            return buf;
        }

        return this.storage.get(row);
    }
552670
public function getRow()
    {
        $sql = $this->toSQL();
        return $this->table->getRow($sql, $this->getParams());
    }
1020795
public function getCellPrototype($row = NULL)
    {
        $td = parent::getCellPrototype($row);

        if ($this->isEditable() && $row !== NULL) {
            if (!in_array('editable', $td->class)) {
                $td->class[] = 'editable';
            }

            $value = $this->editableValueCallback === NULL
                ? $this->getValue($row)
                : call_user_func_array($this->editableValueCallback, [$row, $this]);

            $td->setAttribute('data-grido-editable-value', $value);
        }

        return $td;
    }
1089815
public function get() {
        $rowCount      = 0;
        $columnLengths = array();
        $headerData    = array();
        $cellData      = array();

        // Headers
        if ($this->getShowHeaders()) {
            foreach ($this->fields as $field) {
                $headerData[$field['key']] = trim($field['name']);

                // Column Lengths
                if (!isset($columnLengths[$field['key']])) {
                    $columnLengths[$field['key']] = 0;
                }
                $columnLengths[$field['key']] = max($columnLengths[$field['key']], strlen(trim($field['name'])));
            }
        }

        // Data
        if ($this->injectedData !== null) {
            if (count($this->injectedData)) {
                foreach ($this->injectedData as $row) {
                    // Row
                    $cellData[$rowCount] = array();
                    foreach ($this->fields as $field) {
                        $key   = $field['key'];
                        $value = $row[$key];
                        if ($field['manipulator'] instanceof CliTableManipulator) {
                            $value = trim($field['manipulator']->manipulate($value, $row, $field['name']));
                        }

                        $cellData[$rowCount][$key] = $value;

                        // Column Lengths
                        if (!isset($columnLengths[$key])) {
                            $columnLengths[$key] = 0;
                        }
                        $columnLengths[$key] = max($columnLengths[$key], strlen($value));
                    }
                    $rowCount++;
                }
            } else {
                return 'There are no '.$this->getPluralItemName() . PHP_EOL;
            }
        } else {
            return 'There is no injected data for the table!' . PHP_EOL;
        }

        $response = '';

        // Now draw the table!
        $response .= $this->getTableTop($columnLengths);
        if ($this->getShowHeaders()) {
            $response .= $this->getFormattedRow($headerData, $columnLengths, true);
            $response .= $this->getTableSeperator($columnLengths);
        }

        foreach ($cellData as $row) {
            $response .= $this->getFormattedRow($row, $columnLengths);
        }

        $response .= $this->getTableBottom($columnLengths);

        return $response;
    }
107069
public static TransformedInputRow of(final InputRow row) {
        if (row instanceof TransformedInputRow) {
            // re-use existing transformed input row.
            return (TransformedInputRow) row;
        } else {
            return new TransformedInputRow(row, row.getId());
        }
    }
868730
protected function initFromRow($row)
    {
        if ($row === null) {
            throw new SwatDBException(
                'Attempting to initialize dataobject with a null row.'
            );
        }

        $property_array = array_merge(
            $this->getPublicProperties(),
            $this->getSerializableProtectedProperties()
        );

        if (is_object($row)) {
            $row = get_object_vars($row);
        }

        foreach ($property_array as $name => $value) {
            // Use array_key_exists() instead of isset(), because isset() will
            // return false when the value is null. Null values on properties
            // should not be ignored - otherwise calling initFromRow() on an
            // existing dataobject can leave out of date values on properties
            // when those values were updated to null.
            if (array_key_exists($name, $row)) {
                if (
                    in_array($name, $this->date_properties) &&
                    $row[$name] !== null
                ) {
                    $this->$name = new SwatDate($row[$name]);
                } else {
                    $this->$name = $row[$name];
                }
            }
        }

        foreach ($this->internal_properties as $name => $value) {
            if (isset($row[$name])) {
                $this->internal_properties[$name] = $row[$name];
            }
        }

        $this->loaded_from_database = true;
    }
433375
public TableLayoutBuilder row() {
        ++currentRow;
        lastCC = null;
        maxColumns = Math.max(maxColumns, currentCol);
        currentCol = 0;
        return this;
    }
587797
public int getRows()
    {
        if(sheetData == null)
            unmarshall();
        int ret = 0;
        if(rows != null)
            ret = rows.size();
        return ret;
    }
217568
public function row()
    {
        $iterator = $this->getIterator();

        if(!$iterator->current())
            $iterator->next();

        $value = $iterator->current();
        $iterator->next();

        return $value;
    }
258564
public function setRow(TableRow $row = null)
    {
        $this->row = $row;

        if (null !== $row && !in_array($this, $row->getCells())) {
            $row->addCell($this);
        }

        return $this;
    }
821731
public function createRow()
    {
        $row = new Row();

        $this->childNodes->push($row);

        return $this->childNodes->last();
    }
808805
@Override
    public Row nextRow() {
        if (nextRow == null) {
            // Didn't call 'hasNext()' ...
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
        }
        assert nextRow != null;
        Row result = nextRow;
        nextRow = null;
        position++;
        return result;
    }
240651
public function getRow() : ?int 
    {
        if ( ! $this->hasRow()) {
            $this->setRow($this->getDefaultRow());
        }
        return $this->row;
    }
1245114
public DataRow createRow() {
		DataRow row = new DataRow(columns);
		rows.add(row);
		return row;
	}
1002418
public Table newRow()
    {
        unnest();
        nest(row = new Block("tr"));
        if (_defaultRow!=null)
        {
            row.setAttributesFrom(_defaultRow);
            if (_defaultRow.size()>0)
                row.add(_defaultRow.contents());
        }
        cell=null;
        return this;
    }
1361941
public IconRow queryForRow(StyleMappingRow styleMappingRow) {
		IconRow iconRow = null;

		UserCustomRow userCustomRow = queryForIdRow(styleMappingRow
				.getRelatedId());
		if (userCustomRow != null) {
			iconRow = getRow(userCustomRow);
		}

		return iconRow;
	}