<?xml version="1.0"?>
<!DOCTYPE mvc SYSTEM "mvc.dtd">

<mvc>
    <views>
        <view name="account_view"
             class="workzen.example.mvc.ui.swing.panels.NewAccountPanel"/>
        <view name="update_account_view"
             class="workzen.example.mvc.ui.swing.panels.UpdateAccountPanel"/>
        <view name="search_accounts_view"
             class="workzen.example.mvc.ui.swing.panels.SearchAccountsPanel" default="true"/>
    </views>

    <actions>
        <action name="view_accounts"
                class="workzen.example.mvc.actions.ViewAccounts"/>
        <action name="new_account"
               class="workzen.example.mvc.actions.NewAccount"/>
        <action name="search_accounts"
               class="workzen.example.mvc.actions.SearchAccounts"/>
        <action name="create_account"
               class="workzen.example.mvc.actions.CreateAccount"/>
        <action name="edit_account"
               class="workzen.example.mvc.actions.EditAccount"/>
        <action name="update_account"
               class="workzen.example.mvc.actions.UpdateAccount"/>
        <action name="delete_account"
               class="workzen.example.mvc.actions.DeleteAccount"/>
    </actions>       
   
    <events>
        <event action="view_accounts"
              srcview="search_accounts_view"
             destview="search_accounts_view"/>
        <event action="new_account"
              srcview="account_view"
             destview="account_view"/>
        <event action="search_accounts"
              srcview="search_accounts_view"
             destview="search_accounts_view"/>
        <event action="create_account"
              srcview="account_view"
             destview="account_view"/>
        <event action="edit_account"
              srcview="search_accounts_view"
             destview="update_account_view"/>
        <event action="update_account"
              srcview="update_account_view"
             destview="search_accounts_view"/>
        <event action="delete_account"
              srcview="search_accounts_view"
             destview="search_accounts_view"/>
    </events>
</mvc>