<?xml version='1.0' encoding='UTF-8'?>
<chapter>
  <sectioninfo>
    <keywordset>
      <keyword>horizontal line</keyword>
      <keyword>rich:separator</keyword>
      <keyword>HtmlSeparator</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.separator</entry>
        </row>
        <row>
          <entry>component-class</entry>
          <entry>org.richfaces.component.html.HtmlSeparator</entry>
        </row>
        <row>
          <entry>component-family</entry>
          <entry>org.richfaces.separator</entry>
        </row>
        <row>
          <entry>renderer-type</entry>
          <entry>org.richfaces.SeparatorRenderer</entry>
        </row>
        <row>
          <entry>tag-class</entry>
          <entry>org.richfaces.taglib.SeparatorTag</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:separator/>
...
]]></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.HtmlSeparator;
...
HtmlSeparator mySeparator = new HtmlSeparator();
...
]]></programlisting>
  </section>
  <section>
    <title>Details of Usage</title>
    <para><emphasis role="bold">
        <property>&lt;rich:separator&gt;</property>
      </emphasis> is a simple layout component which represents a <property>separator</property>
      stylized as a skin. Thus, the main attributes that define its style are <emphasis>
        <property>&quot;style&quot;</property>
      </emphasis> and <emphasis>
        <property>&quot;styleClass&quot;.</property>
      </emphasis> In addition there are <emphasis>
        <property>width</property>
      </emphasis> and <emphasis>
        <property>height</property>
      </emphasis> attributes that should be specified in pixels.</para>
    <para>The line type can be customized with the <emphasis>
        <property>&quot;lineType&quot;</property>
      </emphasis> parameter. For example, different line types are shown after rendering with the
      following initial settings <emphasis>
        <property>lineType=&quot;double&quot;</property>
      </emphasis>and <emphasis>
        <property>&quot;lineType=&quot;solid&quot;.</property>
      </emphasis>
    </para>
    <figure>
      <title>Different line types of separator</title>
      <mediaobject>
        <imageobject>
          <imagedata fileref="images/separator1.gif"/>
        </imageobject>
      </mediaobject>
    </figure>

    <para>Except style attributes, there are also event definition attributes.</para>
    <itemizedlist>
      <listitem> onmouseover </listitem>
      <listitem> onclick </listitem>
      <listitem> onmouseout </listitem>
      <listitem> etc. </listitem>
    </itemizedlist>

  </section>
  <section>
    <title>Look-and-Feel Customization</title>
    <para>On the component generation, the framework presents a default rich-separator class in
      styleClass of a generated component, i.e. in order to redefine appearance of all
        <property>separators</property> at once, it&apos;s necessary to redefine this class in
      your own CSS (replacing in the result properties defined in a skin with your own).</para>
    <para>To define appearance of a particular <property>separators</property>, it&apos;s
      possible to write your own CSS classes and properties in the component style attributes
          (<emphasis><property>&quot;style&quot;</property>,</emphasis>
      <emphasis>
        <property>&quot;styleClass&quot;</property>
      </emphasis>) modifying component property.</para>
  </section>
  
  <section>
    <title>Relevant Resources Links</title>
    <para>
      <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/separator.jsf?c=separator"
        >Here</ulink> you can see the example of <emphasis role="bold"
        ><property>&lt;rich:separator&gt;</property></emphasis> usage and sources for the given example. </para>
  </section>

</chapter>
