📄 widget-form.xsd
字号:
<xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="sort-field"/> <xs:element ref="field-group"/> <xs:element ref="banner"/> </xs:choice> <xs:attributeGroup ref="attlist.sort-order"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.sort-order"> <xs:attribute name="type" default="explicit"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="explicit"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <xs:element name="field-group"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="sort-field"/> </xs:sequence> <xs:attributeGroup ref="attlist.field-group"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.field-group"> <xs:attribute type="xs:string" name="id"/> <xs:attribute type="xs:string" name="style"/> </xs:attributeGroup> <xs:element name="banner"> <xs:complexType> <xs:attributeGroup ref="attlist.banner"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.banner"> <xs:attribute type="xs:string" name="style"/> <xs:attribute type="xs:string" name="text"/> <xs:attribute type="xs:string" name="text-style"/> <xs:attribute type="xs:string" name="left-text"/> <xs:attribute type="xs:string" name="left-text-style"/> <xs:attribute type="xs:string" name="right-text"/> <xs:attribute type="xs:string" name="right-text-style"/> </xs:attributeGroup> <xs:element name="sort-field"> <xs:complexType> <xs:attributeGroup ref="attlist.sort-field"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.sort-field"> <xs:attribute type="xs:string" name="name" use="required"/> </xs:attributeGroup> <!-- ================== FIELDS ==================== --> <xs:element name="AllFields" abstract="true"/> <xs:element name="field"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" ref="AllFields"/> </xs:sequence> <xs:attributeGroup ref="attlist.field"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.field"> <xs:attribute type="xs:string" name="name" use="required"> <xs:annotation><xs:documentation>A unique name for this field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="map-name"> <xs:annotation><xs:documentation>The name (or location) of the map that contains the data for this field in the form context.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="entity-name"> <xs:annotation><xs:documentation>Used along with the field-name to look up the entity field definition for any information that might be helpful when rendering the form field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="field-name"> <xs:annotation><xs:documentation>See the description of entity-name.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="service-name"> <xs:annotation><xs:documentation>Used along with the attribute-name to look up the service attribute definition for any information that might be helpful when rendering the form field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="attribute-name"> <xs:annotation><xs:documentation>See the description of service-name.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="entry-name"> <xs:annotation><xs:documentation>Defaults to the value of the name attribute; is used to specify the name of the entry in the map that contains the value to populate.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="parameter-name"> <xs:annotation><xs:documentation>Defaults to the value of the name attribute; is the name of the parameter to use for this field (the request parameter in a web application).</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="title"> <xs:annotation><xs:documentation>The name of this field that will be shown to the user; can use the ${} and foo.bar (dot) syntax to insert values from the context for parameterization or internationalization.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="header-link"> <xs:annotation><xs:documentation>A link for this field in the header of a list form. Useful for sorting a list form by different columns.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="header-link-style"> <xs:annotation><xs:documentation>The CSS style for a header-link.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="tooltip"> <xs:annotation><xs:documentation>The text to show on mouse over or help for more information; can use the ${} and foo.bar (dot) syntax to insert values from the context for parameterization or internationalization.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="title-area-style"> <xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the area around the title of this field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="widget-area-style"> <xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the area around the widget that the user will interact with for this field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="title-style"> <xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the title of this field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="widget-style"> <xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the widget that the user will interact with for this field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="tooltip-style"> <xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the tooltip of this field.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:positiveInteger" name="position" default="1"> <xs:annotation><xs:documentation>For row oriented forms (single type) can specify that the field should be put a column other than the first; for column oriented forms (list type) specifies the row the field should be put in.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="red-when" default="by-name"> <xs:annotation><xs:documentation>The widget/interaction part will be red if the date value is before-now (for thruDate), after-now (for fromDate), or by-name (if the field's name or entry-name or fromDate or thruDate the corresponding action will be done); only applicable when the field is a timestamp.</xs:documentation></xs:annotation> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="never"/> <xs:enumeration value="before-now"/> <xs:enumeration value="after-now"/> <xs:enumeration value="by-name"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="use-when"> <xs:annotation><xs:documentation>Used to specify a condition that must be true to use this field; the condition should be written using the Java syntax and can operate on values in the form context; if this is used the field will only be put on the field list, and not in the field map meaning that values for this field cannot be overridden.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="event"> <xs:annotation><xs:documentation>Used to specify javascript events that should be attached to fields.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="action"> <xs:annotation><xs:documentation>Used to specify javascript actions that should be run based on events.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="id-name"/> <xs:attribute name="separate-column" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="required-field-style"> <xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the title of this field if required. Will default to form's default-required-field-style. If field is required, but required-field-style is empty, an '*' will be placed to the right of text, textarea and password fields.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="required-field" default="false"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <!-- ================== FIELD TYPES ==================== --> <xs:element name="check" substitutionGroup="AllFields"> <xs:complexType/> </xs:element> <xs:element name="date-find" substitutionGroup="AllFields"> <xs:complexType> <xs:attributeGroup ref="attlist.date-find"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.date-find"> <xs:attribute name="type" default="timestamp"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="timestamp"/> <xs:enumeration value="date"/> <xs:enumeration value="time"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="default-value"/> <xs:attribute type="xs:string" name="input-method"/> <xs:attribute name="clock" default="24"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="12"/> <xs:enumeration value="24"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <xs:element name="date-time" substitutionGroup="AllFields"> <xs:annotation> <xs:documentation> A special entry for date-time fields; may just have a default size text entry box and some sort of widget to make date entry/selection easier. </xs:documentation> </xs:annotation> <xs:complexType> <xs:attributeGroup ref="attlist.date-time"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.date-time"> <xs:attribute name="type" default="timestamp"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="timestamp"/> <xs:enumeration value="date"/> <xs:enumeration value="time"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="default-value"/> <xs:attribute name="input-method" default="text"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="text"/> <xs:enumeration value="time-dropdown"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="clock" default="24"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="12"/> <xs:enumeration value="24"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:attributeGroup> <xs:element name="display" substitutionGroup="AllFields"> <xs:complexType> <xs:attributeGroup ref="attlist.display"/> </xs:complexType> </xs:element> <xs:attributeGroup name="attlist.display"> <xs:attribute name="also-hidden" default="true"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="true"/> <xs:enumeration value="false"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="description"> <xs:annotation><xs:documentation>Specifies the string to display, can use the ${} syntax to insert context values; if empty the value of the field will be printed for a default.</xs:documentation></xs:annotation> </xs:attribute> <xs:attribute name="type"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:enumeration value="text"/> <xs:enumeration value="currency"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute type="xs:string" name="currency"> <xs:annotation><xs:documentation>Specifies the currency uom ID used to format context value, should generally use the ${} syntax to retrieve value.</xs:documentation></xs:annotation> </xs:attribute> </xs:attributeGroup>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -