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

📄 commandbuttontag.java

📁 一个比较好的jsf spring hibernate的例子
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        }        if (x != null) {            if (!x.isLiteralText()) {                command.setValueExpression("x", x);            } else {                command.getAttributes().put("x", x.getExpressionString());            }        }        if (y != null) {            if (!y.isLiteralText()) {                command.setValueExpression("y", y);            } else {                command.getAttributes().put("y", y.getExpressionString());            }        }        if (dx != null) {            if (!dx.isLiteralText()) {                command.setValueExpression("dx", dx);            } else {                command.getAttributes().put("dx", dx.getExpressionString());            }        }        if (dy != null) {            if (!dy.isLiteralText()) {                command.setValueExpression("dy", dy);            } else {                command.getAttributes().put("dy", dy.getExpressionString());            }        }        if (height != null) {            if (!height.isLiteralText()) {                command.setValueExpression("height", height);            } else {                command.getAttributes()                      .put("height", height.getExpressionString());            }        }        if (immediate != null) {            if (!immediate.isLiteralText()) {                command.setValueExpression("immediate", immediate);            } else {                command.setImmediate(java.lang.Boolean                      .valueOf(immediate.getExpressionString()).booleanValue());            }        }        if (label != null) {            if (!label.isLiteralText()) {                command.setValueExpression("label", label);            } else {                command.getAttributes()                      .put("label", label.getExpressionString());            }        }        if (onactivate != null) {            if (!onactivate.isLiteralText()) {                command.setValueExpression("onactivate", onactivate);            } else {                command.getAttributes()                      .put("onactivate", onactivate.getExpressionString());            }        }        if (onclick != null) {            if (!onclick.isLiteralText()) {                command.setValueExpression("onclick", onclick);            } else {                command.getAttributes()                      .put("onclick", onclick.getExpressionString());            }        }        if (onfocusin != null) {            if (!onfocusin.isLiteralText()) {                command.setValueExpression("onfocusin", onfocusin);            } else {                command.getAttributes()                      .put("onfocusin", onfocusin.getExpressionString());            }        }        if (onfocusout != null) {            if (!onfocusout.isLiteralText()) {                command.setValueExpression("onfocusout", onfocusout);            } else {                command.getAttributes()                      .put("onfocusout", onfocusout.getExpressionString());            }        }        if (onmousedown != null) {            if (!onmousedown.isLiteralText()) {                command.setValueExpression("onmousedown", onmousedown);            } else {                command.getAttributes()                      .put("onmousedown", onmousedown.getExpressionString());            }        }        if (onmousemove != null) {            if (!onmousemove.isLiteralText()) {                command.setValueExpression("onmousemove", onmousemove);            } else {                command.getAttributes()                      .put("onmousemove", onmousemove.getExpressionString());            }        }        if (onmouseout != null) {            if (!onmouseout.isLiteralText()) {                command.setValueExpression("onmouseout", onmouseout);            } else {                command.getAttributes()                      .put("onmouseout", onmouseout.getExpressionString());            }        }        if (onmouseover != null) {            if (!onmouseover.isLiteralText()) {                command.setValueExpression("onmouseover", onmouseover);            } else {                command.getAttributes()                      .put("onmouseover", onmouseover.getExpressionString());            }        }        if (onmouseup != null) {            if (!onmouseup.isLiteralText()) {                command.setValueExpression("onmouseup", onmouseup);            } else {                command.getAttributes()                      .put("onmouseup", onmouseup.getExpressionString());            }        }        if (rx != null) {            if (!rx.isLiteralText()) {                command.setValueExpression("rx", rx);            } else {                command.getAttributes().put("rx", rx.getExpressionString());            }        }        if (ry != null) {            if (!ry.isLiteralText()) {                command.setValueExpression("ry", ry);            } else {                command.getAttributes().put("ry", ry.getExpressionString());            }        }        if (style != null) {            if (!style.isLiteralText()) {                command.setValueExpression("style", style);            } else {                command.getAttributes()                      .put("style", style.getExpressionString());            }        }        if (styleClass != null) {            if (!styleClass.isLiteralText()) {                command.setValueExpression("styleClass", styleClass);            } else {                command.getAttributes()                      .put("styleClass", styleClass.getExpressionString());            }        }        if (labelStyle != null) {            if (!labelStyle.isLiteralText()) {                command.setValueExpression("labelStyle", labelStyle);            } else {                command.getAttributes()                      .put("labelStyle", labelStyle.getExpressionString());            }        }        if (type != null) {            if (!type.isLiteralText()) {                command.setValueExpression("type", type);            } else {                command.getAttributes().put("type", type.getExpressionString());            }        }        if (value != null) {            if (!value.isLiteralText()) {                command.setValueExpression("value", value);            } else {                command.setValue(value.getExpressionString());            }        }        if (width != null) {            if (!width.isLiteralText()) {                command.setValueExpression("width", width);            } else {                command.getAttributes()                      .put("width", width.getExpressionString());            }        }    }    // Methods From TagSupport    public int doStartTag() throws JspException {        try {            return super.doStartTag();        } catch (Exception e) {            Throwable root = e;            while (root.getCause() != null) {                root = root.getCause();            }            throw new JspException(root);        }    }    public int doEndTag() throws JspException {        try {            return super.doEndTag();        } catch (Exception e) {            Throwable root = e;            while (root.getCause() != null) {                root = root.getCause();            }            throw new JspException(root);        }    }    // RELEASE    public void release() {        super.release();        // component properties        this.action = null;        this.actionListener = null;        this.immediate = null;        this.value = null;        // rendered attributes        this.x = null;        this.y = null;        this.dx = null;        this.dy = null;        this.height = null;        this.label = null;        this.onactivate = null;        this.onclick = null;        this.onfocusin = null;        this.onfocusout = null;        this.onmousedown = null;        this.onmousemove = null;        this.onmouseout = null;        this.onmouseover = null;        this.onmouseup = null;        this.rx = null;        this.ry = null;        this.style = null;        this.styleClass = null;        this.labelStyle = null;        this.type = null;        this.width = null;    }    public String getDebugString() {        String result =              "id: " + this.getId() + " class: " + this.getClass().getName();        return result;    }}

⌨️ 快捷键说明

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