META-INF.maven-faces-plugin.components.trinidad.html.HtmlCellFormat.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="utf-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:trh="http://myfaces.apache.org/trinidad/html" xmlns:mfp="http://myfaces.apache.org/maven-faces-plugin" xmlns:fmd="http://java.sun.com/xml/ns/javaee/faces/design-time-metadata"> <component> <description><![CDATA[CellFormat components are used to format cells in a rowLayout component.]]> </description> <icon> <small-icon>/org/apache/myfaces/trinidadinternal/metadata/icons/cellFormat.gif</small-icon> </icon> <component-type>org.apache.myfaces.trinidad.HtmlCellFormat</component-type> <component-class>org.apache.myfaces.trinidad.component.html.HtmlCellFormat</component-class> <property> <description><![CDATA[This attribute should be used to provide an abbreviated form of the cell's content, and may be rendered by user agents when appropriate in place of the cell's content. Abbreviated names should be short since user agents may render them repeatedly (especially if this cell is a header cell).]]> </description> <property-name>shortText</property-name> <property-class>java.lang.String</property-class> <property-extension/> </property> <property> <description><![CDATA[the horizontal alignment of the grid row elements. The acceptable values are "center", "left", "right", "start", and "end".]]> </description> <property-name>halign</property-name> <property-class>java.lang.String</property-class> <property-extension> <fmd:property-metadata> <fmd:property-values>right start left end center</fmd:property-values> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[the vertical alignment of the grid row elements. The acceptable values are "middle", "top", and "bottom".]]> </description> <property-name>valign</property-name> <property-class>java.lang.String</property-class> <property-extension> <fmd:property-metadata> <fmd:property-values>middle top bottom</fmd:property-values> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[the preferred width of the enclosed layout elements.]]></description> <property-name>width</property-name> <property-class>java.lang.String</property-class> </property> <property> <description><![CDATA[the preferred height of the enclosed layout elements.]]></description> <property-name>height</property-name> <property-class>java.lang.String</property-class> </property> <property> <description><![CDATA[the number of cells wide the child layout element will be.]]></description> <property-name>columnSpan</property-name> <property-class>int</property-class> </property> <property> <description><![CDATA[the number of cells high the child layout element will be.]]></description> <property-name>rowSpan</property-name> <property-class>int</property-class> </property> <property> <description><![CDATA[whether automatic text wrapping should be disabled for this cell.]]></description> <property-name>wrappingDisabled</property-name> <property-class>boolean</property-class> <default-value>false</default-value> </property> <property> <description><![CDATA[Indicates which table cells are the headers for this cell. This attribute is used by screen readers to associate header information with data cells. This must be set to a space-separated list of IDs. Each ID must be the ID of a pertinent header cell.]]> </description> <property-name>headers</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata> <mfp:multi-scoped-id-holder>true</mfp:multi-scoped-id-holder> </mfp:property-metadata> <fmd:property-metadata> <fmd:required>false</fmd:required> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[Indicates whether or not this table cell is a header cell or a data cell. Setting this attribute to 'true' will mark this cell as a header cell.]]> </description> <property-name>header</property-name> <property-class>boolean</property-class> </property> <property> <description><![CDATA[the short description of the bean. This text is commonly used by user agents to display tooltip help text.]]> </description> <property-name>shortDesc</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>GENERAL</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[the IDs of the components that should trigger a partial update. This component will listen on the trigger components. If one of the trigger components receives an event that will cause it to update in some way, this component will request to be updated too.]]> </description> <property-name>partialTriggers</property-name> <property-class>java.lang.String[]</property-class> <property-extension> <mfp:property-metadata> <mfp:multi-scoped-id-holder>true</mfp:multi-scoped-id-holder> </mfp:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onclick Javascript handler.]]></description> <property-name>onclick</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an ondblclick Javascript handler.]]></description> <property-name>ondblclick</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onmousedown Javascript handler.]]></description> <property-name>onmousedown</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onmouseup Javascript handler.]]></description> <property-name>onmouseup</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onmouseover Javascript handler.]]></description> <property-name>onmouseover</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onmousemove Javascript handler.]]></description> <property-name>onmousemove</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onmouseout Javascript handler.]]></description> <property-name>onmouseout</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onkeypress Javascript handler.]]></description> <property-name>onkeypress</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onkeydown Javascript handler.]]></description> <property-name>onkeydown</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[an onkeyup Javascript handler.]]></description> <property-name>onkeyup</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>EVENTS</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[the CSS style class of the bean.]]></description> <property-name>styleClass</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>GENERAL</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <property> <description><![CDATA[the inline CSS style for this element]]></description> <property-name>inlineStyle</property-name> <property-class>java.lang.String</property-class> <property-extension> <mfp:property-metadata/> <fmd:property-metadata> <fmd:category-id>GENERAL</fmd:category-id> </fmd:property-metadata> </property-extension> </property> <component-extension> <mfp:component-family>org.apache.myfaces.trinidad.CellFormat</mfp:component-family> <mfp:component-supertype>org.apache.myfaces.trinidad.ComponentBase</mfp:component-supertype> <mfp:renderer-type>org.apache.myfaces.trinidad.CellFormat</mfp:renderer-type> <mfp:tag-name>trh:cellFormat</mfp:tag-name> <mfp:tag-class>org.apache.myfaces.trinidadinternal.taglib.html.HtmlCellFormatTag</mfp:tag-class> <mfp:long-description><![CDATA[CellFormat components are used to format cells in a rowLayout. It is a container of other layout elements which allows its contents to take additional formatting, such as vertical alignment, width, or colspan.]]> </mfp:long-description> <mfp:example> <mfp:source-code> <![CDATA[ <trh:tableLayout width="75%" borderWidth="3" cellSpacing="10" halign="center"> <trh:rowLayout halign="right"> <!-- First Column --> <trh:cellFormat valign="bottom"/> <!-- SecondColumn --> </trh:cellFormat> <tr:panelGroupLayout laytout="horizontal"> <!-- Third Column --> <tr:spacer height="100" width="1"/> </tr:panelGroupLayout> </trh:rowLayout> <trh:rowLayout> <tr:panelHeader text="Apache Trinidad Components"/> <trh:cellFormat columnSpan="2"> <tr:panelHeader text="Faces Servlet"/> </trh:cellFormat> </trh:rowLayout> </trh:tableLayout> ]]> </mfp:source-code> </mfp:example> <mfp:author>Adam Winer</mfp:author> <mfp:java-constructor> <mfp:property-name>vAlign</mfp:property-name> </mfp:java-constructor> <fmd:component-metadata> <fmd:default-event-name>click</fmd:default-event-name> <fmd:event-names>click dblclick mousedown mouseup mouseover mousemove mouseout keypress keydown keyup</fmd:event-names> <fmd:required-ancestor-contracts>org-apache-myfaces-trinidad-htmlcellformat-holder</fmd:required-ancestor-contracts> </fmd:component-metadata> </component-extension> </component> </faces-config>