This repository was archived by the owner on Jun 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration File
fdelbos edited this page Nov 26, 2011
·
20 revisions
The FCat framework works with a configuration file that will enable us to define the entire application skeleton. You can give this file the name you want as long as it end with ".xml".
Here is a complete example of a configuration file:
<fcat-application>
<title>CMA</title>
<group name="welcomeTabBarItem" title="Welcome" image="welcomegroup.png">
<view class="WelcomeView" name="welcome" >
<route action="userButton" destination="userform"/>
</view>
<view class="UserFormView" name="userform" title="User Form">
<decorator class="FCatTextInputDecorator">
<scroller>SrollView</scroller>
<input>Login</input>
<input>Email</input>
<input>Password</input>
</decrator>
</view>
</group>
<group name="helpTabBarItem" title="Help" image="helpgroup.png">
<view title="Help" class="FCatWebView" name="help">
<param name="upButton">yes</param>
<param name="htmlFile">myhtmlfile</param>
</view>
</group>
</fcat-application>
The group element defines a TabBarItem that contains a group of views.
Properties:
-
title: the title of theUITabBarItemthat will hold the group. -
image: the icon image of theUITabBarItem. -
name: a unique name that identifies theUITabBarItemin the application.