Set the model the item belongs to

        A TreeItem can only belong to one model.

        :param model: the model the item belongs to
        :type model: :class:`Treemodel`
        :returns: None
        :rtype: None
        :raises: None
482233
def set_model(self, model):
        
        self._model = model
        for c in self.childItems:
            c.set_model(model)
1150502
def create_model(self, parent, name, multiplicity=Multiplicity.ZERO_MANY):
        
        return self._client.create_model(parent, name, multiplicity=multiplicity)
545224
def update(self, item):
        
        self.model.set(self._iter_for(item), 0, item)
410958
def set_value(self, treeiter, column, value):
        

        value = self._convert_value(column, value)
        Gtk.TreeStore.set_value(self, treeiter, column, value)
1193229
public function setModel(Model $model)
    {
        $this->model = $model;
        $append = $this->getAppends();

        if ($append instanceof WithModelInterface) {
            $append->setModel($model);
        }

        return $this;
    }
609195
def set_model(self, model):
        
        if self.model:
            self.model.unregister_observer(self)
        self.model = model
        if self.model:
            self.model.register_observer(self)
            self.model_notification()
        else:
            self.set_widget(None)
        self.widget.set_sensitive(bool(self.model))
583452
def _set(self, item, value):
        
        if item not in object.__getattribute__(self, "_protectedItems") \
                and item[0] != "_":
            keys = object.__getattribute__(self, "_data")
            if not hasattr(value, '__call__'):
                keys[item] = value
                return value
            if hasattr(value, '__call__') and item in keys:
                raise Exception("""Cannot set model data to a function, same \
name exists in data""")
        return object.__setattr__(self, item, value)
564500
def _set_item_class(self):
        
        clsname = self.__tohu_items_name__
        self.item_cls = make_item_class(clsname, self.field_names)
844089
public void setModel (ComboBoxModel<?> model)
    {
        // if we had a previous model, unregister ourselves from it
        if (_model != null) {
            _model.removeListDataListener(this);
        }

        // subscribe to our new model
        _model = model;
        _model.addListDataListener(this);

        // rebuild the list
        removeAll();
        addButtons(0, _model.getSize());
    }
930118
def setModel(self, model):
        
        self.paramList.setModel(model)
        model.hintRequested.connect(self.hintRequested)
        model.rowsInserted.connect(self.updateTitle)
        model.rowsRemoved.connect(self.updateTitle)
        self.updateTitle()
600867
def setModel(self, model):
        

        if not model:
            return

        LOGGER.debug("> Setting '{0}' model.".format(model))

        umbra.ui.views.Abstract_QTreeView.setModel(self, model)

        # Signals / Slots.
        self.model().modelAboutToBeReset.connect(self.__model__modelAboutToBeReset)
        self.model().modelReset.connect(self.__model__modelReset)
1031410
def remove_child(self, child):
        
        child.set_model(None)
        if self._model:
            row = self.childItems.index(child)
            parentindex = self._model.index_of_item(self)
            self._model.removeRow(row, parentindex)
        else:
            self.childItems.remove(child)
1275491
def associate(self, model):
        
        self._parent.set_attribute(self._foreign_key, model.get_key())
        self._parent.set_attribute(self._morph_type, model.get_morph_name())

        return self._parent.set_relation(
            self._relation, Result(model, self, self._parent)
        )
963090
def select_model(self, name):
        
        if name not in self._parent:
            raise KeyError('model "{}" not present'.format(name))
        self._current_model_group = name
902758
public void setModel(Progression model) {
		this.model.removeProgressionListener(new WeakListener(this, this.model));
		if (model == null) {
			this.model = new DefaultProgression();
		} else {
			this.model = model;
		}
		this.previousValue = this.model.getValue();
		this.model.addProgressionListener(new WeakListener(this, this.model));
	}
311040
public function setItemModel(core_kernel_classes_Resource $item, core_kernel_classes_Resource $model)
    {
        return $item->editPropertyValues($this->getProperty(self::PROPERTY_ITEM_MODEL), $model);
    }
1290761
public void setModel( BundleAdjustmentCamera model ) {
		this.model = model;
		numIntrinsic = model.getIntrinsicCount();
		if( numIntrinsic > intrinsic.length ) {
			intrinsic = new double[numIntrinsic];
		}
		model.getIntrinsic(intrinsic,0);

		numericalPoint = createNumericalAlgorithm(funcPoint);
		numericalIntrinsic = createNumericalAlgorithm(funcIntrinsic);
	}