⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmltitletag.java

📁 梦界家园程序开发基底框架
💻 JAVA
字号:
/*
 * (c) Copyright 2001 MyCorporation.
 * All Rights Reserved.
 */
package jm.util.html.tags;

/**
 * A Title Tag
 */
public class HTMLTitleTag extends HTMLTag {
	private String title;
	/**
	 * Constructor for HTMLTitleTag.
	 * @param tagBegin
	 * @param tagEnd
	 * @param tagContents
	 * @param tagLine
	 */
	public HTMLTitleTag(int tagBegin,int tagEnd,String title,String tagContents,String tagLine) {
		super(tagBegin, tagEnd, tagContents, tagLine);
		this.title = title;
	}

	/**
	 * Gets the title.
	 * @return Returns a String
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * Sets the title.
	 * @param title The title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	public void print() {
		System.out.println(toString());
	}

  public String composeNode() {
    return "<TITLE>" + getTitle() + "</TITLE>";
  }

	public String toString() {
		return "TITLE : "+title;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -