23.12.2012 Views

ZK Developer's Guide

ZK Developer's Guide

ZK Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The changed mask is shown as follows:<br />

[ 141 ]<br />

Chapter 6<br />

It's good to externalize the stylesheets into a file. With this mechanism it's possible to<br />

reuse the styles across pages. The disadvantage is that we have to specify the sclass<br />

attribute every time we want to use it. A more comfortable way is to define our own<br />

component, and use it.<br />

<br />

<br />

To use an extended component in the whole application, we have to define a<br />

language-addon. A language-addon allows the usage of a component in the whole<br />

application. Such an addon contains a set of components. First we have to provide a<br />

file that defines the addons. An example is as follows.<br />

<br />

<br />

my-addon<br />

xul/html<br />

<br />

specialLabel<br />

label<br />

<br />

sclass<br />

simplelabel<br />

<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!