📄 xhtml.java
字号:
package com.pegasus.framework.component.taglib.xml;
public class Xhtml implements Xml {
/**
* Instantiates a new xhtml.
*/
private Xhtml() {
}
/**
* The Class Html.定义HTML关键字
*/
public static class Html implements Xml.Html {
/** The Constant A. */
public static final Html A = new Html("a");
/** The Constant BODY. */
public static final Html BODY = new Html("body");
/** The Constant BR. */
public static final Html BR = new Html("br");
/** The Constant BUTTON. */
public static final Html BUTTON = new Html("button");
/** The Constant DIV. */
public static final Html DIV = new Html("div");
/** The Constant HEAD. */
public static final Html HEAD = new Html("head");
/** The Constant FORM. */
public static final Html FORM = new Html("form");
/** The Constant HTML. */
public static final Html HTML = new Html("html");
/** The Constant H1. */
public static final Html H1 = new Html("h1");
/** The Constant H2. */
public static final Html H2 = new Html("h2");
/** The Constant H3. */
public static final Html H3 = new Html("h3");
/** The Constant H4. */
public static final Html H4 = new Html("h4");
/** The Constant H5. */
public static final Html H5 = new Html("h5");
/** The Constant H6. */
public static final Html H6 = new Html("h6");
/** The Constant IFRAME. */
public static final Html IFRAME = new Html("iframe");
/** The Constant IMG. */
public static final Html IMG = new Html("img");
/** The Constant INPUT. */
public static final Html INPUT = new Html("input");
/** The Constant LINK. */
public static final Html LINK = new Html("link");
/** The Constant META. */
public static final Html META = new Html("meta");
/** The Constant NOSCRIPT. */
public static final Html NOSCRIPT = new Html("noscript");
/** The Constant OBJECT. */
public static final Html OBJECT = new Html("object");
/** The Constant OPTION. */
public static final Html OPTION = new Html("option");
/** The Constant SELECT. */
public static final Html SELECT = new Html("select");
/** The Constant SPAN. */
public static final Html SPAN = new Html("span");
/** The Constant SCRIPT. */
public static final Html SCRIPT = new Html("script");
/** The Constant STRONG. */
public static final Html STRONG = new Html("strong");
/** The Constant TABLE. */
public static final Html TABLE = new Html("table");
/** The Constant TITLE. */
public static final Html TITLE = new Html("title");
/** The Constant TEXTAREA. */
public static final Html TEXTAREA = new Html("textarea");
/** The Constant TEXT. */
public static final Html TEXT = new Html("text");
/** The Constant TD. */
public static final Html TD = new Html("td");
/** The Constant TH. */
public static final Html TH = new Html("th");
/** The Constant TR. */
public static final Html TR = new Html("tr");
/** The name. */
private final String name;
/**
* Instantiates a new html.
*
* @param name the name
*/
private Html(final String name) {
this.name = name;
}
/**
* @return String
*/
public String toString() {
return name;
}
}
/**
* The Class Attr.定义属性关键字
*/
public static class Attr implements Xml.Attr {
/** The Constant ALT. */
public static final Attr ALT = new Attr("alt");
/** The Constant BORDER. */
public static final Attr BORDER = new Attr("border");
/** The Constant CHECKED. */
public static final Attr CHECKED = new Attr("checked");
/** The Constant CLASS. */
public static final Attr CLASS = new Attr("class");
/** The Constant DIR. */
public static final Attr DIR = new Attr("dir");
/** The Constant DISABLED. */
public static final Attr DISABLED = new Attr("disabled");
/** The Constant HREF. */
public static final Attr HREF = new Attr("href");
/** The Constant ID. */
public static final Attr ID = new Attr("id");
/** The Constant LANG. */
public static final Attr LANG = new Attr("lang");
/** The Constant LONGDESC. */
public static final Attr LONGDESC = new Attr("longdesc");
/** The Constant LANGUAGE. */
public static final Attr LANGUAGE = new Attr("language");
/** The Constant MAXLENGTH. */
public static final Attr MAXLENGTH = new Attr("maxlength");
/** The Constant NAME. */
public static final Attr NAME = new Attr("name");
/** The Constant ONBLUR. */
public static final Attr ONBLUR = new Attr("onblur");
/** The Constant ONCHANGE. */
public static final Attr ONCHANGE = new Attr("onchange");
/** The Constant ONCLICK. */
public static final Attr ONCLICK = new Attr("onclick");
/** The Constant ONDBLCLICK. */
public static final Attr ONDBLCLICK = new Attr("ondblclick");
/** The Constant ONFOCUS. */
public static final Attr ONFOCUS = new Attr("onfocus");
/** The Constant ONKEYDOWN. */
public static final Attr ONKEYDOWN = new Attr("onkeydown");
/** The Constant ONKEYPRESS. */
public static final Attr ONKEYPRESS = new Attr("onkeypress");
/** The Constant ONKEYUP. */
public static final Attr ONKEYUP = new Attr("onkeyup");
/** The Constant ONLOAD. */
public static final Attr ONLOAD = new Attr("onload");
/** The Constant ONMOUSEDOWN. */
public static final Attr ONMOUSEDOWN = new Attr("onmousedown");
/** The Constant ONMOUSEMOVE. */
public static final Attr ONMOUSEMOVE = new Attr("onmousemove");
/** The Constant ONMOUSEOVER. */
public static final Attr ONMOUSEOVER = new Attr("onmouseover");
/** The Constant ONSELECT. */
public static final Attr ONSELECT = new Attr("onselect");
/** The Constant REL. */
public static final Attr REL = new Attr("rel");
/** The Constant SELECTED. */
public static final Attr SELECTED = new Attr("selected");
/** The Constant SRC. */
public static final Attr SRC = new Attr("src");
/** The Constant STYLE. */
public static final Attr STYLE = new Attr("style");
/** The Constant SIZE. */
public static final Attr SIZE = new Attr("size");
/** The Constant TARGET. */
public static final Attr TARGET = new Attr("target");
/** The Constant TITLE. */
public static final Attr TITLE = new Attr("title");
/** The Constant TYPE. */
public static final Attr TYPE = new Attr("type");
/** The Constant VALUE. */
public static final Attr VALUE = new Attr("value");
/** The name. */
private final String name;
/**
* Instantiates a new attr.
*
* @param name the name
*/
private Attr(final String name) {
this.name = name;
}
/**
* @return String
*/
public String toString() {
return name;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -