Get a SwatHtmlTag to display the title.

Subclasses can change this to change their appearance.

@return SwatHtmlTag a tag object containing the title.
760353
protected function getTitleTag()
    {
        $legend_tag = new SwatHtmlTag('legend');
        $legend_tag->setContent($this->title, $this->title_content_type);

        return $legend_tag;
    }
1233790
public function getHtmlHeadEntrySet()
    {
        if ($this->isDisplayed()) {
            $set = new SwatHtmlHeadEntrySet($this->html_head_entry_set);
        } else {
            $set = new SwatHtmlHeadEntrySet();
        }

        return $set;
    }
994548
protected function getInputTag()
    {
        $tag = parent::getInputTag();

        if ($this->name !== null) {
            $tag->name = $this->name;
        }

        return $tag;
    }
1345445
protected function getInputTag()
    {
        $tag = new SwatHtmlTag('input');
        $tag->type = 'text';
        $tag->name = $this->autocomplete ? $this->id : $this->getNonce();
        $tag->id = $this->autocomplete ? $this->id : $this->getNonce();
        $tag->class = $this->getCSSClassString();

        // event handlers to select on focus
        if ($this->select_on_focus) {
            $tag->onmousedown = 'if(!this._focused){this._focus_click=true;}';
            $tag->onmouseup =
                'if(this._focus_click){' .
                'this.select();this._focus_click=false;}';

            $tag->onfocus =
                'this._focused=true;' .
                'if(!this._focus_click){this.select();}';

            $tag->onblur = 'this._focused=false;this._focus_click=false;';
        }

        if ($this->read_only) {
            $tag->readonly = 'readonly';
        }

        if (!$this->isSensitive()) {
            $tag->disabled = 'disabled';
        }

        $value = $this->getDisplayValue($this->value);

        // escape value for display because we actually want to show entities
        // for editing
        $value = htmlspecialchars($value);
        $tag->value = $value;

        $tag->size = $this->size;
        $tag->maxlength = $this->maxlength;
        $tag->accesskey = $this->access_key;
        $tag->tabindex = $this->tab_index;

        if ($this->placeholder != '') {
            $tag->placeholder = $this->placeholder;
        }

        return $tag;
    }
1049832
public function getTag() {
		if($this->exists()) {
			$url = $this->getURL();
			$title = ($this->Title) ? $this->Title : $this->Filename;
			if($this->Title) {
				$title = Convert::raw2att($this->Title);
			} else {
				if(preg_match("/([^\/]*)\.[a-zA-Z0-9]{1,6}$/", $title, $matches)) {
					$title = Convert::raw2att($matches[1]);
				}
			}
			return "<img src=\"$url\" alt=\"$title\" ".$this->getAttributesHTML()." />";
		}
	}
5091
public function getRenderedTitle()
    {
        $rendered = $this->getRenderedContent();

        if ( $rendered instanceof Content || $rendered instanceof MetaContent )
        {
            return $rendered->title;
        }

        return null;
    }
471418
public function getLabel()
	{
		if ($this->label === null) {
			return Str::title($this->getName());
		}

		return $this->label;
	}
1163287
public String getTitle() {

        String title = getPropertyValue(CmsClientProperty.PROPERTY_NAVTEXT);
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(title)) {
            title = getPropertyValue(CmsClientProperty.PROPERTY_TITLE);
        }
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(title)) {
            title = m_name;
        }
        return title;
    }
132184
public String title() {
        // title is a preserve whitespace tag (for document output), but normalised here
        Element titleEl = getElementsByTag("title").first();
        return titleEl != null ? StringUtil.normaliseWhitespace(titleEl.text()).trim() : "";
    }
595839
public function getHtml()
    {
        $html = new Core\Tag(
            'html',
            array((isset($this->args[1]) ? $this->args[1] : null)),
            array('generate', 'start')
        );
        $html->setAttrs($this->htmlattrs);

        return $html;
    }
1357449
public String getTagName() {
        if (attribute.isHidden() && !attribute.isFile()) {
            return "hidden";
        } else if (attribute.isInFk() && attribute.hasXToOneRelation()) {
            return "select";
        } else if (attribute.isFile()) {
            return "file";
        } else if (attribute.isPassword()) {
            return "password";
        } else if (attribute.isString() && (attribute.getColumnConfig().getSize() > 256 || attribute.getColumnConfig().getSize() == -1)) {
            return "textarea";
        } else if (attribute.isBoolean()) {
            return "checkbox";
        } else {
            return "input";
        }
    }
495571
protected Label buildTitleLabel() {
        // create default title - even shown when no data is available
        title = new LabelBuilder().name(titleText).buildCaptionLabel();
        title.setImmediate(true);
        title.setContentMode(ContentMode.HTML);

        return title;
    }
487016
public function getBody() {
		if ($this->_body === null) {
			$this->_body = new TablePart();
			$this->_body->setTag(self::TAG_BODY);
		}
		
		return $this->_body;
	}
1246287
public function display()
    {
        if (!$this->visible) {
            return;
        }

        $div_tag = new SwatHtmlTag('div');
        $div_tag->id = $this->id;
        $div_tag->class = $this->getCSSClassString();
        $div_tag->open();

        $label_tag = new SwatHtmlTag('label');
        $label_tag->for = $this->id . '_value';
        $label_tag->open();

        $old_id = $this->id;
        $this->id .= '_value';
        parent::display();
        $this->id = $old_id;

        $span_tag = new SwatHtmlTag('span');
        $span_tag->class = 'swat-check-all-title';
        $span_tag->setContent($this->title, $this->content_type);
        $span_tag->display();

        $label_tag->close();

        if ($this->extended_count > $this->visible_count) {
            $div_tag = new SwatHtmlTag('div');
            $div_tag->id = $this->id . '_extended';
            $div_tag->class = 'swat-hidden swat-extended-check-all';
            $div_tag->open();
            echo $this->getExtendedTitle();
            $div_tag->close();
        }

        $div_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
1093766
public function getHTML()
    {
        $details = $this->getHTMLDetails();
        extract($details);

        $label = isset($this['label'])
            ? " value='{$this['label']}'"
            : null;
        $classSubmit = isset($this['class-submit'])
            ? " class='{$this['class-submit']}'"
            : null;

        return <<<EOD
<{$wrapperElement}{$wrapperClass}>
<input id='$id' type='search'{$class}{$name}{$value}{$autofocus}{$required}{$readonly}{$placeholder}/>
<input id='do-{$id}' type='submit'{$classSubmit}{$label}{$readonly}{$title}/>
</{$wrapperElement}>
<p class='cf-desc'>{$description}</p>
EOD;
    }
1338663
protected function getContainerTag()
    {
        if ($this->container_tag === null) {
            $tag = new SwatHtmlTag('div');
        } else {
            $tag = $this->container_tag;
        }

        $tag->id = $this->id;
        $tag->class = $this->getCSSClassString();
        return $tag;
    }
55296
public function getTag()
    {
        if (null === $this->_tag) {
            $tag = $this->getOption('tag');
            if (null !== $tag) {
                $this->removeOption('tag');
            } else {
                $tag = 'span';
            }

            $this->setTag($tag);
            return $tag;
        }

        return $this->_tag;
    }