Table::setPrependColumns
976323
protected function setPrependColumns()
    {
        $prependColumns = [
            'numbering' => [
                'field'   => 'numbering',
                'label'   => '#',
                'attr'    => [
                    'width' => '5%',
                ],
                'format'  => 'number',
                'show'    => true,
                'sorting' => true,
                'hiding'  => false,
                'options' => false,
                'nested'  => false,
                'content' => '',
            ],
            'id'        => [
                'field'   => 'id',
                'label'   => 'ID',
                'attr'    => [
                    'class' => 'text-right',
                    'width' => '3%',
                ],
                'format'  => 'txt',
                'show'    => true,
                'sorting' => true,
                'hiding'  => true,
                'options' => false,
                'nested'  => false,
            ],
            'checkbox'  => [
                'field'   => 'id',
                'label'   => new Ui\Components\Form\Elements\Checkbox([
                    'data-toggle' => 'table-crud-checkbox',
                ]),
                'attr'    => [
                    'width' => '2%',
                ],
                'format'  => 'checkbox',
                'show'    => true,
                'sorting' => false,
                'hiding'  => false,
                'options' => false,
                'nested'  => false,
            ],
            'images'    => [
                'field'   => 'images',
                'label'   => null,
                'attr'    => [
                    'width' => '5%',
                ],
                'format'  => 'image',
                'show'    => true,
                'sorting' => false,
                'hiding'  => true,
                'options' => false,
                'nested'  => false,
            ],
        ];

        foreach ($prependColumns as $key => $column) {
            if ($this->config[ $key ] === true) {
                $this->columns[ $key ] = $column;
            }
        }
    }
878210
function setValidation($row1, $col1, $row2, $col2, $validator)
    {
        $this->_dv[] = $validator->_getData() .
                       pack("vvvvv", 1, $row1, $row2, $col1, $col2);
    }
503494
def putcellslice(self, rownr, value, blc, trc, inc=[]):
        """"""
        return self._table.putcellslice(self._column, rownr, value, blc, trc, inc)
106925
function set( $row, $col, $value )
    {
        if ( $value !== 0 )
        {
            $pos = $row * $this->Cols + $col;
            $pos = base_convert( $pos, 10, 36 );
            $this->Matrix["*$pos"] = $value;
        }
    }
257016
private void setColumnsSize(final double min, final double max, final String... columnPropertyIds) {
        for (final String columnPropertyId : columnPropertyIds) {
            getColumn(columnPropertyId).setMinimumWidth(min);
            getColumn(columnPropertyId).setMaximumWidth(max);
        }
    }
201939
def adjust_cells(self):
        """"""
        self.resizeColumnsToContents()
        fm = self.horizontalHeader().fontMetrics()
        names = [fm.width(s.cmd) for s in self.source_model.servers]
        if names:
            self.setColumnWidth(CMD, max(names))
        self.horizontalHeader().setStretchLastSection(True)
103395
def setCell(self, x, y, v):
        """"""
        self.cells[y][x] = v
732445
def setColumn(self, header, values):
        
        if any(isinstance(value, basestring) for value in values):
            values = list(map(str, values))
            self._impl.setColumnStr(header, values, len(values))
        elif all(isinstance(value, Real) for value in values):
            values = list(map(float, values))
            self._impl.setColumnDbl(header, values, len(values))
        else:
            print(values)
            raise NotImplementedError
849454
def SetColumnValues(self, col, value):
        
        try:
            self.dataframe.iloc[:, col] = value
        except ValueError:
            self.dataframe.loc[:, col] = value
699291
function(row, column, value) {

        if (value === undefined) {
            return this.prop(['table', 'rows', row + '', 'cells', column + '', 'value']);
        }
        return this.prop(['table', 'rows', row + '', 'cells', column + '', 'value'], value);
    }
348135
public function setTableDefinition()
    {
        $this->setTableName('gallery_groups');
        $this->hasColumns(array(
            'id' => array(
                'type' => 'integer',
                'unsigned' => true,
                'autoincrement' => true,
            ),
            'section' => array(
                'type' => 'integer',
                'unsigned' => true,
                'default' => null,
            ),
            'title' => array(
                'type' => 'string',
                'length' => 255,
                'default' => null,
            ),
            'description' => array(
                'type' => 'string',
                'length' => 65535,
                'default' => null,
            ),
            'position' => array(
                'type' => 'integer',
                'unsigned' => true,
                'default' => 0,
            ),
        ));
        $this->index('list_idx', array('fields' => array('section', 'position')));
    }
272431
public AbstractSheet<TRow, TColumn, TCell> setColumns(List<TColumn> columns) {
        this.columns = columns;
        return this;
    }
307815
protected function setColumn($column)
    {
        if ($column instanceof ColumnMap) {
            $this->column = $column->getName();
            $this->table = $column->getTable()->getName();
        } else {
            $dotPos = strrpos($column, '.');
            if ($dotPos === false) {
                // no dot => aliased column
                $this->table = null;
                $this->column = $column;
            } else {
                $this->table = substr($column, 0, $dotPos);
                $this->column = substr($column, $dotPos + 1, strlen($column));
            }
        }
    }
157744
def setColumns(self, columns):
        
        super(XOrbTreeWidget, self).setColumns(columns)
        self.setFilteredColumns(range(len(columns)))
        self.assignOrderNames()
        self._columnsInitialized = True
239955
def _setInsertFromTable(self, value):
        """"""
        self._insertFromTable = value
        if value:
            self.insertElement = self.insertElementTable
        else:
            self.insertElement = self.insertElementNormal
131903
private void addColumnFamilyAndSetProperties(HTableDescriptor tableDescriptor, String colFamilyName)
    {
        if (!tableDescriptor.hasFamily(colFamilyName.getBytes()))
        {
            HColumnDescriptor hColumnDescriptor = getColumnDescriptor(colFamilyName);
            tableDescriptor.addFamily(hColumnDescriptor);
            setExternalProperties(tableDescriptor.getNameAsString(), hColumnDescriptor);
        }
    }
78075
private function fillConstants(): void
  {
    foreach ($this->columns as $table_name => $table)
    {
      foreach ($table as $column_name => $column)
      {
        if (isset($this->columns[$table_name][$column_name]['constant_name']))
        {
          $this->constants[$column['constant_name']] = $column['length'];
        }
      }
    }

    foreach ($this->labels as $label => $id)
    {
      $this->constants[$label] = $id;
    }

    ksort($this->constants);
  }