<?xml version="1.0"?>

<!DOCTYPE def SYSTEM "http://www.ooit.com/rx/def.dtd">

<def moid="org.jground.rx.def.examples.address.Address" version="1.0">

  <!--
    Copyright (C) 2009 OOIT.com AG 8002 Zürich, Switzerland All rights
    reserved.
  -->

  <name>Address</name>
  <name lang="de">Adresse</name>

  <description>Address Component</description>

  <component />


  <attributes>

    <attribute name="street">
      <label>Street</label>
      <type>
        <string />
      </type>
      <searchable />
    </attribute>

    <attribute name="zip">
      <label>ZIP</label>
      <type>
        <string />
      </type>
      <searchable />
    </attribute>

    <attribute name="city">
      <label>City</label>
      <type>
        <string />
      </type>
      <searchable />
    </attribute>

    <attribute name="state">
      <label>State</label>
      <type>
        <string />
      </type>
      <searchable />
    </attribute>

    <attribute name="country">
      <label>Country</label>
      <type>
        <codetable name="countries" />
      </type>
    </attribute>

    <attribute name="phones">
      <label>Phone(s)</label>
      <type>
        <list>
          <string />
        </list>
      </type>
      <searchable></searchable>
    </attribute>

    <attribute name="fax">
      <label>Fax</label>
      <type>
        <string />
      </type>
    </attribute>

    <attribute name="emails">
      <label>Emails</label>
      <type>
        <list>
          <string />
        </list>
      </type>
    </attribute>

    <attribute name="urls">
      <label>URLs</label>
      <type>
        <list>
          <string />
        </list>
      </type>
    </attribute>

  </attributes>


  <editUI>
    <page>
      <control attref="street" />
      <control attref="city" />
      <control attref="zip" />
      <control attref="state" />
      <control attref="country" />
      <control attref="phones" />
      <control attref="fax" />
      <control attref="emails" />
      <control attref="urls" />
    </page>
  </editUI>

  <viewUI>
    <page>
      <view attref="street" />
      <view attref="city" />
      <view attref="zip" />
      <view attref="state" />
      <view attref="country" />
      <view attref="phones" />
      <view attref="fax" />
      <view attref="emails" />
      <view attref="urls">
        <property name="display">link</property>
      </view>
    </page>
  </viewUI>


  <synopsisUI>
    <view attref="street" />
    <view attref="city" />
    <view attref="country" />
  </synopsisUI>


</def>