<?xml version='1.0' encoding='UTF-8'?>
<section>
  <sectioninfo>
    <keywordset>
      <keyword>bar</keyword>
      <keyword>rich:toolBar</keyword>
      <keyword>HtmlToolBar</keyword>
    </keywordset>
  </sectioninfo>

  <table>
    <title>Component identification parameters </title>
    <tgroup cols="2">
      <thead>
        <row>
          <entry>Name</entry>
          <entry>Value</entry>
        </row>
      </thead>
      <tbody>
        <row>
          <entry>component-type</entry>
          <entry>org.richfaces.ToolBar</entry>
        </row>
        <row>
          <entry>component-class</entry>
          <entry>org.richfaces.component.html.HtmlToolBar</entry>
        </row>
        <row>
          <entry>component-family</entry>
          <entry>org.richfaces.ToolBar</entry>
        </row>
        <row>
          <entry>renderer-type</entry>
          <entry>org.richfaces.ToolBarRenderer</entry>
        </row>
        <row>
          <entry>tag-class</entry>
          <entry>org.richfaces.taglib.ToolBarTag</entry>
        </row>
      </tbody>
    </tgroup>
  </table>

  <section>
    <title>Creating the Component with a Page Tag</title>
    <para>Here is a simple example as it could be used on a page: </para>

    <para>
      <emphasis role="bold">Example:</emphasis>
    </para>
    <programlisting role="XML"><![CDATA[...
    <rich:toolBar>
        <!--//...Set of action or other JSF components-->
    </rich:toolBar>
...
]]></programlisting>
  </section>
  <section>
    <title>Creating the Component Dynamically Using Java</title>

    <para>
      <emphasis role="bold">Example:</emphasis>
    </para>
    <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlToolBar;
...
HtmlToolBar myToolBar = new HtmlToolBar();
...
]]></programlisting>
  </section>
  <section>
    <title>Details of Usage</title>
    <para>A <property>toolBar</property> is a wrapper component that facilitates creation of menu
      and <property>tool bars</property>. All components defined inside are located on a stylized
      bar with possibility to group, arrange on the both bar sides, and place predefined separators
      between them.</para>
    <para>Grouping and an input side definition is described for <property>toolBarGroup</property>
      that defines this functionality.</para>
    <para>Separators are located between components with the help of the <emphasis>
        <property>&quot;itemSeparator&quot;</property>
      </emphasis> attribute with four predefined values:</para>
    <itemizedlist>
      <listitem> none </listitem>
      <listitem> line </listitem>
      <listitem> square </listitem>
      <listitem> disc </listitem>
    </itemizedlist>
    <para>For example, when setting a separator of a disc type, the following result is produced:</para>
    <figure>
      <title>Toolbar with a <emphasis><property>&quot;disc&quot;</property></emphasis> separator</title>

      <mediaobject>
        <imageobject>
          <imagedata fileref="images/toolBar2.gif" scalefit="1"/>
        </imageobject>
      </mediaobject>
    </figure>
    <para>Moreover, for <property>toolBar</property> style <emphasis>
        <property>&quot;width&quot;</property>
      </emphasis> and <emphasis>
        <property>&quot;height&quot;</property>
      </emphasis> attributes are placed above all.</para>

  </section>
  <section>
    <title>Look-and-Feel Customization</title>
    <para>For skinnability implementation the components use a <emphasis>
        <property>style class redefinition method</property>
      </emphasis>.</para>
    <para>Default style classes are mapped on <emphasis><property>skin
      parameters</property>.</emphasis></para>
    <para>To redefine appearance of all toolBars at once, there are two ways:</para>
    <itemizedlist>
      <listitem>to redefine corresponding skin parameters</listitem>
      <listitem>to add <emphasis>
          <property>style classes</property>
        </emphasis> used by the toolBar to your page style sheets</listitem>
    </itemizedlist>
    <table>
      <title>Skin parameters redefinition</title>
      <tgroup cols="2">
        <thead>
          <row>
            <entry>Skin parameters for the toolbar component</entry>
            <entry>Corresponding CSS parameters</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry>tableBorderColor</entry>
            <entry>border-color</entry>
          </row>
          <row>
            <entry>headerBackgroundColor</entry>
            <entry>background-color</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </section>
  <section>
    <title>Definition custom style classes</title>
    <para>On generating, the component substitutes the default class rich-toolbar-exterior into <emphasis>
        <property>style class</property>
      </emphasis> of a generated component, i.e. to redefine at once all
      <property>toolBars</property> appearance on a page, redefine this class in your CSS.</para>
    <para>The component also has the standard attributes <emphasis>
        <property>&quot;style&quot;</property>
      </emphasis> and <emphasis>
        <property>&quot;styleClass&quot;</property>
      </emphasis> that could redefine an appearance of a particular component variants.</para>
  </section>
  <section>
    <title>Relevant resources links</title>
    <para>
      <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/toolBar.jsf?c=toolBar"
      >Here</ulink> you can see the example of <emphasis role="bold"
      >&lt;rich:toolBar&gt;</emphasis> usage and sources for the given example. </para>
  </section>

</section>
