CSS hierarchy
The CSS hierarchy comprises various elements that you can define using the web components.
Each element has a section that includes the name and description of the element, together with a table. You can use the name of the element to specify an element in a CSS rule.
The table includes the following rows:
- Inherits
The element from which the element being described inherits. When an element A inherits from an element B, A has the same assignable properties, attribute selectors, and class attributes as B, unless they are redefined by A.
- Children
The list of possible children of the element. A child is an element contained in its parent container. This relation has nothing to do with inheritance (described above).
- Attribute Selectors
The list of attribute selectors of the considered element.
- Assignable Properties
The list of the assignable properties of the element that might be modified in part of a CSS rule or through the style object. The name of the property is given in CSS format.
- Class Attribute
The name of the class attribute of the CSS element, if any. You can use class attributes to match elements with a short syntax. For example, instead of writing: MyElement[classAttr="position"], you can write MyElement.position.
Component
Component is the default root element for a web component (IlxWComponent). It has the following table entries:
Inherits: None
Children: any
Attribute selectors:
Attribute selectors Description Value name The name of the component returned in its parent container. The value returned by the getComponentNamed method called on the parent. Assignable properties:
Properties Description Value color Foreground color of the element. A predefined color name or a hexadecimal RGB value. background-color Background color of the element. A predefined color name (for example, red) or a hexadecimal RGB value (for example, #F523AF). font-size Size of the element font. An absolute size. It can be one of xx-small, x-small, small, medium, large, x-large, xx-large, as defined by the W3C, or a percentage value. font-weight Weight of the element font. One of normal | bold | bolder | lighter. font-family Font family for the element. A prioritized list of font family names or generic family names, or both. text-decoration Indicates whether the text in the element has blink, line-through, overline, or underline decorations. One of none | underline | overline | line-through | blink. border-color Specifies the border color of the element. A predefined color name (for example, red) or a hexadecimal RGB value (for example, #F523AF). border-width Specifies the border width of the element. A fixed length. border-style Specifies the border style of the element. One of none | dotted | dashed | solid | double | groove | ridge | inset | outset. width Specifies the width of the element. Percentage or fixed length. height Specifies the height of the element. Percentage or fixed length. cursor Specifies the cursor display as the mouse pointer moves over the object. One of auto | crosshair | default | hand | help | move | text | *-resize. padding Specifies the amount of space to be inserted between the element and its margin. Percentage or fixed length. filter Specifies the filter to be applied to the element. Note that this property applies on Microsoft IE5.01, 5.5, or 6.0. overflow Specifies how to manage the content of the object when the content exceeds the height or width of the object. Note that this property applies only on Microsoft IE5.01, 5.5, or 6.0. tooltip Specifies a tooltip to be displayed when the mouse is over the element. Any string.
Label
Inherits: Component
Children: Icon, Text
Assignable properties:
Properties Description Value text-position Specifies the position of the text element relative to the icon element. One of hidden | left | right icon-text-gap Specifies the number of white spaces to be inserted between the icon and text subelements. An integer.
Icon
Icon is the root element for icon components (IlxWIcon). An icon element renders as an <img> HTML node. It has the following table entries:
Inherits: Component
Children: none
Assignable properties:
Property Description Value path Specifies the path of the icon. A path that identifies a resource either in the current servlet context (see ServletContext.getResource) or in the current class path.
For example, /mypath/myicon.gif
Text
Inherits: Component
Children: none
Assignable properties:
Property Description Value text The text to display inside the element. Any string. innerHTML The HTML text to display inside the element. This property is the same as the text property except that the text is not converted to HTML. Any HTML string.
Link
Inherits: Component
Children: Label
TextField
Inherits: Component
Children: Label
ComboBox
Inherits: Component
Children: Label
Panel
Inherits: Component
Children: any
MenuBar
MenuBar is the root element for the menu bar component (IlxWMenuBar). It has the following table entries:
Inherits: Component
Children: Button, MenuItem
Assignable properties:
Property Description Value submenu-icon Specifies the path of the icon that allows a submenu to be opened. A path that identifies a resource that is either in the current servlet context (see ServletContext.getResource) or in the current class path. checkmenu-icon Specifies the path of the icon to be displayed when a check box menu item is checked. A path that identifies a resource that is either in the current servlet context (see ServletContext.getResource) or in the current class path.
MenuItem
MenuItem is the root element for the menu item component (IlxWMenuItem). It has the following table entries:
Inherits: Component
Children: none
Class attribute: itemState
Attribute selectors:
Attribute selector Description Value itemState Indicates the current state of the item. normal | disabled | highlighted | separator
Button
Button is the root element for the button component (IlxWButton). A button is rendered as an <input type=”submit”> HTML node. It has the following table entries:
Inherits: Component
Children: none
RuleEditor
RuleEditor is the root element for the Web Rule Editor component (IlrWSyntacticEditor). It has the following table entries:
Inherits: Component
Children: TokenModel
Attribute selectors:
Attribute selector Description Value dhtml Indicates whether or not the editor displays in DHTML mode. See the method isDHtml. true | false
TokenModel
TokenModel represents the token model currently being edited by the Web Rule Editor. It has the following table entries:
Inherits: Component
Children: ListToken,, DeleteLine, EditLine
Class attribute: name
Attribute selectors:
Attribute selector Description Value name Name of the token model. This is the name returned by the method IlrTokenModel.getName. A string.
ListToken
ListToken represents a list token of the current token model. It has the following table entries:
Inherits: Component
Children: ListToken,, TextToken
Attribute selectors:
Attribute selector Description Value tag An attribute list of the tags that are associated with the token. The list is built using the method IlrToken.Token.getTags. Normally, you match this attribute with a selector like: ListToken[tag~="theTag"]. A string.
TextToken
TextToken represents a text token of the current token model. It has the following table entries:
Inherits: Component
Children: Style, Label, TextField, Link, ComboBox
Attribute selectors:
Attribute selector Description Value tag An attribute list of the tags that are associated with the token. The list is built using the method IlrToken.Token.getTags. Normally, you match this attribute with a selector like: ListToken[tag~="theTag"]. A string. editable Indicates if the token is editable. This value is returned by the method IlrToken.TextToken.isEditable. true | false text The text of this text-token. This value is returned by the method IlrToken.TextToken.getText. A string. displayText The display text of this text-token. This value is returned by the method IlrToken.TextToken.getDisplayText. A string.
Style
Style represents the style of a text token. A style can be the parent of other styles or a widget.
Therefore, styles form a stack of CSS elements in a CSS hierarchy, from the highest Style element (StyleName) to the lowest style element (addTokenStyle), in the following order:
The style that corresponds to the StyleName property of the token
The style empty, if the token is empty
The style editable, if the token is editable
The styles added by the Rule Editor method addTokenStyle, in the order added
Note:The priority order is reversed. The lowest element of the CSS hierarchy addTokenStyle has the highest priority and the highest element of the hierarchy StyleName has the lowest priority.
The Style element has the following table entries:
Inherits: Component
Children: Style, Label, TextField, Link, ComboBox
Class attribute: name
Attribute selectors:
Attribute selector Description Value name The name of the style. A string.
DeleteLine
DeleteLine represents the HTML link on which the user can click to delete a line of the current token model of a Web Rule Editor. It has the following table entries:
Inherits: Component
Children: Link
EditLine
EditLine represents the HTML link on which the user can click to put a line in edit mode or read-only mode. This element is visible only if the dhtml property of the Rule Editor is set to true.
It has the following table entries:
Inherits: Component
Children: Link
Attribute selectors:
Attribute selector Description Value mode Indicates whether or not the line being considered is in Edit or View (read-only) mode. edit | view