Index: src/site/xdoc/devguide/skinning.xml =================================================================== --- src/site/xdoc/devguide/skinning.xml (revision 620295) +++ src/site/xdoc/devguide/skinning.xml Sun Feb 10 22:52:36 CET 2008 @@ -27,48 +27,49 @@

+

A skin in Trinidad is a global style sheet that affects the entire application. You can @@ -116,6 +117,7 @@

skinned tabs

+

Let's get started and create a very simple skin so that you can see what files you need and @@ -158,6 +160,7 @@

+

To keep the first skin example simple, this section will explain what what files you need to create @@ -295,6 +298,7 @@

+

In the previous sections we discussed creating a skin that changes the font of your application. @@ -434,6 +438,7 @@ }

+

This section is to help you understand the different kinds of skinning keys: component-level @@ -443,6 +448,7 @@ you familiarize yourself with the W3c's CSS specification regarding selectors, pseudo-elements and pseudo-classes. With this knowledge, skinning will be much easier.

+ This section will explain the syntax of a component-level skinning key and the pseudo-elements. @@ -466,6 +472,7 @@ +

Why do we need alias keys? Let's say you have a css-2 stylesheet for your page. @@ -529,6 +536,7 @@

+ In CSS there are pseudo-classes, like :hover, :active, :focus. We consider these 'states' of the component. We use this same concept in skinning components. Components can have state, like @@ -547,6 +555,7 @@ ]]> + Skinning properties are skin css properties that are essentially a key that will be stored in the Skin object with the value. The renderer uses the skin property when it is rendering. @@ -563,6 +572,7 @@

+

Some components render icons (<img> tags) within them. For instance the inputDate @@ -595,7 +605,8 @@

- + +

Text our components render is translatable. The text is abstracted out as resource bundle keys. With skinning you can override resource bundle key values. These key values should be documented in skin-selectors.xml, @@ -691,7 +702,8 @@ ]]>

- + +

@@ -790,6 +802,8 @@

+ +

@@ -876,6 +890,8 @@

+ +

There is a Trinidad Wiki where we post FAQs. http://wiki.apache.org/myfaces/Trinidad_Skinning_FAQ

Index: src/site/xdoc/skin-selectors.xml =================================================================== --- src/site/xdoc/skin-selectors.xml (revision 620295) +++ src/site/xdoc/skin-selectors.xml Sun Feb 10 22:57:49 CET 2008 @@ -30,7 +30,7 @@ Overview
  • - Global Selectors + Global Selectors
  • Component-level Selectors @@ -4248,38 +4248,38 @@ This icon is displayed before the expanded tree node. - af|treeTable::collapsed-icon + af|tree::collapsed-icon This icon is displayed before the collapsed tree node. - af|treeTable::line-icon + af|tree::line-icon This icon is used as a vertical line between the nodes. - af|treeTable::line-middle-icon + af|tree::line-middle-icon This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is not the last sibling of its parent node. - af|treeTable::line-last-icon + af|tree::line-last-icon This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is the last sibling of its parent node. - af|treeTable::node-icon + af|tree::node-icon This icon selector is used in the case the Node class has a getNodeType() method that returns the node type as string. The nodetype gets added to this - selector separated by a ':'. If the node is a container (has children) the + selector, separated by a ':'. If the node is a container (has children) the following suffixes get added depending on the expanded/collapsed state: '-expanded' / '-collapsed'. e.g. - "af|treeTable::node-icon:container-collapsed", - "af|treeTable::node-icon:container-expanded", - "af|treeTable::node-icon:noncontainer". + "af|tree::node-icon:container-collapsed", + "af|tree::node-icon:container-expanded", + "af|tree::node-icon:noncontainer".