4. Adding a preferences sheet for the word count tool
Prev | Chapter 2. Tutorial | Next

## 4. Adding a preferences sheet for the word count tool

tutorial/tutorial4.xxe_gui:

      <preferencesSheet name="countWordsOptions">
        <class>CountWordsOptions</class>
      </preferencesSheet>

      <preferencesSheets name="preferencesSheets">
        <insert />
        <preferencesSheet name="countWordsOptions" />
      </preferencesSheets>

The custom preferences sheet implemented by Java™ class `CountWordsOptions` (code contained in ``XXE_install_dir`/doc/gui/tutorial/custom_parts.jar`) is declared using a preferencesSheet element.

Then this sheet is inserted in the standard set of `preferencesSheet`s (preferencesSheets element called "`preferencesSheets`" found in common.xxe_gui), after all the other sheets, by the means of the `<insert/>` facility.

Prev | Up | Next
3. Adding a word count tool | Home | 5. Adding a vertical tool bar