📄 svg.tld
字号:
<?xml version="1.0" encoding="UTF-8"?><!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development and Distribution License("CDDL") (collectively, the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific language governing permissions and limitations under the License. When distributing the software, include this License Header Notice in each file and include the License file at glassfish/bootstrap/legal/LICENSE.txt. Sun designates this particular file as subject to the "Classpath" exception as provided by Sun in the GPL Version 2 section of the License file that accompanied this code. If applicable, add the following below the License Header, with the fields enclosed by brackets [] replaced by your own identifying information: "Portions Copyrighted [year] [name of copyright owner]" Contributor(s): If you wish your version of this file to be governed by only the CDDL or only the GPL Version 2, indicate your decision by adding "[Contributor] elects to include this software in this distribution under the [CDDL or GPL Version 2] license." If you don't indicate a single choice of license, a recipient has the option to distribute your version of this file under either the CDDL, the GPL Version 2 or to extend the choice of license to its licensees as provided above. However, if you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the option applies only if the new code is made subject to such option by the copyright holder.--> <taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd"xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1"> <!-- ============== Tag Library Description Elements ============= --> <description> This tag library contains JavaServer Faces component tags for all UIComponent + SVG RenderKit Renderer combinations defined in the JavaServer Faces Specification. </description> <tlib-version> 1.2 </tlib-version> <short-name> g </short-name> <uri> http://java.sun.com/jsf/svg </uri> <tag> <description> <![CDATA[<p>Renders an SVG "input" element.</p> <p>Decode Behavior</p> <ul> <p>Obtain the <code>Map</code> from the "requestParameterMap" property of the <code>ExternalContext</code>. If the value in the <code>Map</code> for the value of the "clientId" property of the component is <code>null</code>, create a String by concatenating the value of the "clientId" property of the component with the String ".x" (without the quotes). Create another String in the same manner, but concatenate ".y" (without the quotes). If <code>null</code> is the value in the <code>Map</code> for both Strings, return from <code>decode()</code>. If the value in the <code>Map</code> for the value of the "clientId" property of the component is not <code>null</code>, get the value of the "type" attribute, and convert it to lower case. If the result is equal to the String "reset" (without the quotes), return from <code>decode()</code>. Otherwise, create a <code>javax.faces.event.ActionEvent</code> around the component, and pass it to the <code>queueEvent()</code> method of the component, which must be an instance of <code>UICommand</code>.</p> </ul> <p>Encode Behavior</p> <ul> <p>Render the clientId of the component as the value of the "name" attribute. Render the current value of the component as the value of the "value" attribute. If "image" attribute is specified render it as the value of the "src" attribute after passing it to the <code>getResourceURL()</code> method of the <code>ViewHandler</code> for this application, and passing the result through the <code>encodeResourceURL()</code> method of the <code>ExternalContext</code>.If the "styleClass" attribute is specified, render its value as the value of the "class" attribute.</p> </ul>]]> </description> <name> commandButton </name> <tag-class> renderkits.taglib.svg.CommandButtonTag </tag-class> <body-content> JSP </body-content> <attribute> <description> <![CDATA[MethodBinding representing the application action to invoke when this component is activated by the user. The expression must evaluate to a public method that takes no parameters, and returns a String (the logical outcome) which is passed to the NavigationHandler for this application.]]> </description> <name> action </name> <required> false </required> <deferred-method> <method-signature> java.lang.String action() </method-signature> </deferred-method> </attribute> <attribute> <description> <![CDATA[MethodBinding representing an action listener method that will be notified when this component is activated by the user. The expression must evaluate to a public method that takes an ActionEvent parameter, with a return type of void.]]> </description> <name> actionListener </name> <required> false </required> <deferred-method> <method-signature> void actionListener(javax.faces.event.ActionEvent) </method-signature> </deferred-method> </attribute> <attribute> <description> The ValueExpression linking this component to a property in a backing bean </description> <name> binding </name> <required> false </required> <deferred-value> <type> javax.faces.component.UIComponent </type> </deferred-value> </attribute> <attribute> <description> X position of the button. </description> <name> x </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> Y position of the button. </description> <name> y </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> X offset for text anchor within the button. </description> <name> dx </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> Y offset for text anchor within the button. </description> <name> dy </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> The rendered height of this component in pixels. </description> <name> height </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> <![CDATA[The component identifier for this component. This value must be unique within the closest parent component that is a naming container.]]> </description> <name> id </name> <required> false </required> <rtexprvalue> false </rtexprvalue> </attribute> <attribute> <description> <![CDATA[Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.]]> </description> <name> immediate </name> <required> false </required> <deferred-value> <type> boolean </type> </deferred-value> </attribute> <attribute> <description> <![CDATA[A localized user presentable name for this component.]]> </description> <name> label </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> <![CDATA[Javascript code executed when an element is activated, for instance, thru a mouse click or a keypress. A numerical argument is provided to give an indication of the type of activation that occurs: 1 for a simple activation (e.g. a simple click or Enter), 2 for hyperactivation (for instance a double click or Shift Enter).]]> </description> <name> onactivate </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> <![CDATA[Javascript code executed when a pointer button is clicked over this element.]]> </description> <name> onclick </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> <![CDATA[Javascript code executed when this element receives keyboard focus.]]> </description> <name> onfocusin </name> <required> false </required> <deferred-value> <type> java.lang.String </type> </deferred-value> </attribute> <attribute> <description> <![CDATA[Javascript code executed when this element loses keyboard focus.]]> </description> <name> onfocusout </name> <required> false </required> <deferred-value>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -