Updates the title, based on the selected example.
765495
private void updateTitle() {
		String title;

		if (this.getCurrentComponent() == null) {
			title = "Example Picker";
		} else {
			title = this.getCurrentComponent().getClass().getName();
		}

		WApplication app = WebUtilities.getAncestorOfClass(WApplication.class, this);

		if (app != null) {
			app.setTitle(title);
		}
	}
695726
def refreshTitles(self):
        
        for index in range(self.count()):
            widget = self.widget(index)
            self.setTabText(index, widget.windowTitle())
1294622
def update(self, e=None, **f):
        """"""

        # Handle e first
        if e is not None:
            if hasattr(e, 'keys'):
                for k in e:
                    self[k.title()] = e[k]
            else:
                for (k, v) in e:
                    self[k.title()] = v

        # Now handle f
        if len(f):
            for k in f:
                self[k.title()] = f[k]
234425
public function setTitle($title)
	{
		if ( $title == $this->getTitle() ) { return; }

		$this->_values['title'] = (string) $title;
		$this->setModified();
	}
210752
def updateTitle(self, atitle):
        
        if atitle and os.path.exists(atitle):
            if _isInstalled(atitle):
                atitle += '  [installed]'
            elif not os.access(atitle, os.W_OK):
                atitle += '  [read only]'
        super(ConfigObjEparDialog, self).updateTitle(atitle)
1310345
public void updateTitle(boolean truncating) {

        String title = getTitle(truncating);
        Element element = getElement();
        if (title == null) {
            element.removeAttribute(CmsDomUtil.Attribute.title.name());
        } else {
            element.setAttribute(CmsDomUtil.Attribute.title.name(), title);
        }
    }
946804
private void adaptTitleContainerVisibility() {
        if (titleContainer != null) {
            boolean visible = isCustomTitleUsed() || !TextUtils.isEmpty(title) || icon != null;

            if (visible) {
                titleContainer.setVisibility(View.VISIBLE);
                notifyOnAreaShown(Area.TITLE);
            } else {
                titleContainer.setVisibility(View.GONE);
                notifyOnAreaHidden(Area.TITLE);
            }
        }
    }
517561
public static function updateTitle()
    {
        if (Yii::$app instanceof Application === true && Yii::$app->request->get('page') !== null) {
            Yii::$app->view->title .= Yii::t(
                'plugin',
                ' - Page {page}',
                ['page' => (int)Yii::$app->request->get('page')]
            );
        }
    }
735496
def set_title(self, title, **kwargs):
        """"""
        ax = self.get_axes()
        ax.set_title(title, **kwargs)
1016230
def update(self, infos):
        """"""
        for info in infos:
            if isinstance(info, LearningGene):
                self.replicate(info)
55625
public void addChangeTitle(String title) {

        CmsPropertyModification propChange = new CmsPropertyModification(
            m_entryId,
            CmsClientProperty.PROPERTY_NAVTEXT,
            title,
            true);
        m_propertyModifications.add(propChange);
        m_ownInternalProperties.put("NavText", new CmsClientProperty("NavText", title, null));
    }
855711
private void adaptTitleContainerVisibility() {
        if (titleContainer != null) {
            if (customTitleView == null && customTitleViewId == -1) {
                titleContainer.setVisibility(
                        !TextUtils.isEmpty(title) || icon != null ? View.VISIBLE : View.GONE);
            } else {
                titleContainer.setVisibility(View.VISIBLE);
            }
        }
    }
1048292
def suggestTitle(self, title):
        """"""
        if not self._title_changed or not str(self.wtitle.text()):
            self.wtitle.setText(title)
            self._title_changed = False
229084
protected function setTitleEditReview()
    {
        if (isset($this->data_review['review_id'])) {
            $title = $this->text('Edit %name', array('%name' => $this->text('Review')));
        } else {
            $title = $this->text('Add review');
        }

        $this->setTitle($title);
    }
730765
public void updateTitle() {
        Project project = getProject();
        String name = project.getProjectName();
        if ((name == null || "".equals(name.trim())) && saveFile != null) {
            name = saveFile.getAbsolutePath();
        }
        if (name == null) {
            name = "";//Project.UNNAMED_PROJECT;
        }
        String oldTitle = this.getTitle();
        String newTitle = TITLE_START_TXT + ("".equals(name.trim()) ? "" : " - " + name);
        if (oldTitle.equals(newTitle)) {
            return;
        }
        this.setTitle(newTitle);
    }
968949
def update(self, instance, validated_data):
        
        instance.title = validated_data.get('title', instance.title)
        instance.code = validated_data.get('code', instance.code)
        instance.linenos = validated_data.get('linenos', instance.linenos)
        instance.language = validated_data.get('language', instance.language)
        instance.style = validated_data.get('style', instance.style)
        instance.save()
        return instance
179481
def set_title(self, title, subtitle=''):
        """"""
        self.title = title
        self.subtitle = subtitle