set title by type
161206
public function setTitle()
    {
        switch ($this->type) {
            case self::TYPE_ERROR:
                $t = Yii::t('noty', 'Error');
                break;
            case self::TYPE_INFO:
                $t = Yii::t('noty', 'Info');
                break;
            case self::TYPE_WARNING:
                $t = Yii::t('noty', 'Warning');
                break;
            case self::TYPE_SUCCESS:
                $t = Yii::t('noty', 'Success');
                break;
            default:
                $t = '';
        }

        $this->title = $this->showTitle ? $t : '';
    }
473545
public function set_title($title) {
        $title = format_string($title);
        $title = strip_tags($title);
        $title = str_replace('"', '&quot;', $title);
        $this->_title = $title;
    }
1007552
function(type, args, obj) {
        var title = args[0];

        // "" disables title bar
        if (title) {
            this.createTitleBar(title);
        } else {
            var close = this.cfg.getProperty(DEF_CFG.CLOSE.key);
            if (!close) {
                this.removeTitleBar();
            } else {
                this.createTitleBar("&#160;");
            }
        }
    }
1257176
def set_title(self, title):
        

        self.title = title

        self.add_metadata('DC', 'title', self.title)
165161
def setTitle(self, title):
        
        self._titleLabel.setText(title)
        self._titleLabel.adjustSize()
        self.adjustMargins()
8839
def set_title(self, title):
        
        if self.term not in ('linux', 'eterm-color'):  # Not supported by the Linux console.
            self.write_raw('\x1b]2;%s\x07' % title.replace('\x1b', '').replace('\x07', ''))
892705
def set_chat_title(self, *args, **kwargs):
        """"""
        return set_chat_title(*args, **self._merge_overrides(**kwargs)).run()
715469
public void setTitle(String title) {
        put(PdfName.TITLE, new PdfString(title, PdfObject.TEXT_UNICODE));
    }
325527
public function setTitle( $title )
	{
	    $this->title = $title;
		$this->jsWriter->setOption( 'title', $title );

		return $this;
	}
1052476
def set_title(self, value: Union[Literal, Identifier, str], lang: str= None):
        
        return self.metadata.add(key=DC.title, value=value, lang=lang)
649068
def title(self, value: typing.Union[None, str]):
        
        if not self._project:
            raise RuntimeError('Failed to assign title to an unloaded project')
        self._project.title = value
778738
def set_title(self, msg):
        
        self.s.move(0, 0)
        self.overwrite_line(msg, curses.A_REVERSE)
1139117
def __set_title(self, value):
        
        # OpenOffice on Debian "squeeze" ignore value of target.XAxis.String
        # unless target.HasXAxisTitle is set to True first. (Despite the
        # fact that target.HasXAxisTitle is reported to be False until
        # target.XAxis.String is set to non empty value.)
        self._target.setPropertyValue(self._has_axis_title_property, True)
        target = self._get_title_target()
        target.setPropertyValue('String', text_type(value))
715500
@SuppressWarnings("unchecked")
    public <T extends WebLocatorAbstractBuilder> T setTitle(String title, SearchType... searchTypes) {
        pathBuilder.setTitle(title, searchTypes);
        return (T) this;
    }
632532
public void setTitle(final String title, final Serializable... args) {
		getOrCreateComponentModel().title = I18nUtilities.asMessage(title, args);
	}
1208410
public void setColumnTitle(String colName, String title) {
        ColumnDefEx col = findColumn(colName);
        if (col == null) return;
        col.setTitle(title);
        JsDataTable.setColTitle(getElement(), colName, title);
    }
295884
def set_title(self):
        """"""
        try:
            self.title = self.soup.find('title').string
        except AttributeError:
            self.title = None