Sets titles on the product edit form
176306
protected function setTitleEditProduct()
    {
        if (isset($this->data_product['product_id'])) {
            $title = $this->text('Edit %name', array('%name' => $this->data_product['title']));
        } else {
            $title = $this->text('Add product');
        }

        $this->setTitle($title);
    }
641528
public function setup_title() {
		$filter_name = 'single_term_title';
		if ( 'category' === $this->term_object->taxonomy ) {
			$filter_name = 'single_cat_title';
		} elseif ( 'post_tag' === $this->term_object->taxonomy ) {
			$filter_name = 'single_tag_title';
		}

		$title = apply_filters( $filter_name, $this->term_object->name );
		$this->set_title( $title );
	}
1257176
def set_title(self, title):
        

        self.title = title

        self.add_metadata('DC', 'title', self.title)
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);
    }
1047260
@Override
    public void setTitle(String title)  {
        addField(ConfigureNodeFields.title, FormField.Type.text_single);
        setAnswer(ConfigureNodeFields.title.getFieldName(), title);
    }
264173
protected function setTitle($title)
    {
        $title = trim(preg_replace('/\s\s+/', ' ', str_replace("\n", " ", $title)));

        if ($title != '') {
            $this->title = $title;
        }
    }
533053
protected function setTitleEditCategoryGroup()
    {
        if (isset($this->data_category_group['category_group_id'])) {
            $title = $this->text('Edit %name', array('%name' => $this->data_category_group['title']));
        } else {
            $title = $this->text('Add category group');
        }

        $this->setTitle($title);
    }
798719
protected function setTitleEditCheckout()
    {
        if ($this->admin === 'clone') {
            $text = $this->text('Cloning order #@num', array('@num' => $this->data_order['order_id']));
        } else if ($this->admin === 'add') {
            $text = $this->text('Add order for user %name', array('%name' => $this->data_user['name']));
        } else {
            $text = $this->text('Checkout');
        }

        $this->setTitle($text);
    }
853609
function setActionTitle(tabId) {
    chrome.pageAction.setTitle({
      tabId: tabId,
      title: generateVersionsTooltip(activeTabs[tabId])
    });
  }
84339
def show_edit_form(obj, attrs=None, title="", toolTips=None):
    

    if attrs is None:
        if hasattr(obj, "keys"):
            attrs = list(obj.keys())
        else:
            raise RuntimeError("attrs is None and cannot determine it from obj")

    specs = []
    for i, name in enumerate(attrs):
        # Tries as attribute, then as key
        try:
            value = obj.__getattribute__(name)
        except AttributeError:
            value = obj[name]

        if value is None:
            value = ""  # None becomes str

        dict_ = {"value": value}

        if toolTips is not None:
            dict_["toolTip"] = toolTips[i]
            dict_["tooltip"] = toolTips[i]

        specs.append((name, dict_))
    form = XParametersEditor(specs=specs, title=title)
    r = form.exec_()
    return r, form
1234329
protected function setTitleEditCurrency()
    {
        if (isset($this->data_currency['code'])) {
            $title = $this->text('Edit %name', array('%name' => $this->data_currency['name']));
        } else {
            $title = $this->text('Add currency');
        }

        $this->setTitle($title);
    }
637467
def clear_title(self):
        
        # Implemented from template for osid.repository.AssetForm.clear_title_template
        if (self.get_title_metadata().is_read_only() or
                self.get_title_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['title'] = dict(self._title_default)
1187714
protected void editTitle() {

        m_title.setVisible(false);
        final TextBox box = new TextBox();
        box.setText(m_title.getText());
        box.getElement().setAttribute("size", "45");
        box.addStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().labelInput());
        box.addStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().titleInput());
        final String originalTitle = m_title.getText();
        // wrap the boolean flag in an array so we can change it from the event handlers
        final boolean[] checked = new boolean[] {false};
        final boolean restoreUnselectable = CmsDomUtil.hasClass(
            I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().unselectable(),
            m_contentPanel.getElement());
        m_contentPanel.removeStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().unselectable());
        box.addBlurHandler(new BlurHandler() {

            /**
             * @see com.google.gwt.event.dom.client.BlurHandler#onBlur(com.google.gwt.event.dom.client.BlurEvent)
             */
            public void onBlur(BlurEvent event) {

                if (restoreUnselectable) {
                    setUnselectable();
                }
                if (checked[0]) {
                    return;
                }

                onEditTitleTextBox(box);
                checked[0] = true;
            }
        });

        box.addKeyPressHandler(new KeyPressHandler() {

            /**
             * @see com.google.gwt.event.dom.client.KeyPressHandler#onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent)
             */
            public void onKeyPress(KeyPressEvent event) {

                if (checked[0]) {
                    return;
                }

                int keycode = event.getNativeEvent().getKeyCode();

                if ((keycode == 10) || (keycode == 13)) {
                    onEditTitleTextBox(box);
                    checked[0] = true;
                }
                if (keycode == 27) {
                    box.setText(originalTitle);
                    onEditTitleTextBox(box);
                    checked[0] = true;

                }
            }
        });
        m_titleBox.insert(box, 2);
        box.setFocus(true);
    }
319264
protected function updateTitle() {
		$title = $this->getTitle();
		if ( $title !== null ) {
			// Only if this is an AccessKeyedElement
			if ( method_exists( $this, 'formatTitleWithAccessKey' ) ) {
				$title = $this->formatTitleWithAccessKey( $title );
			}
			$this->titled->setAttributes( [ 'title' => $title ] );
		} else {
			$this->titled->removeAttributes( [ 'title' ] );
		}
		return $this;
	}
1221472
protected function set_items() {
		$show_on_front  = get_option( 'show_on_front' );
		$page_for_posts = get_option( 'page_for_posts' );
		if ( 'page' === $show_on_front && $page_for_posts ) {
			$title = get_the_title( $page_for_posts );
			$this->set( $title );
		}
	}
165161
def setTitle(self, title):
        
        self._titleLabel.setText(title)
        self._titleLabel.adjustSize()
        self.adjustMargins()
1082138
protected function setFormData()
    {
        foreach ($this->validFields as $field => $params) {
            if (isset($params["rename"])) {
                $field = $params["rename"];
            }
            if ($params['type'] == "single") {
                if (isset($this->fieldData[$field])) {
                    $this->formData[$field] = $this->fieldData[$field];
                }
            } elseif ($params['type'] == "product") {
                if (!isset($this->formData[$field])) {
                    $this->formData[$field] = array();
                }
                foreach ($this->products as $num => $product) {
                    if (isset($product[$params["paramName"]])) {
                        $this->formData[$field][$num] = $product[$params["paramName"]];
                    }
                }
            }
        }
    }