This tutorial explains how to get started with Mate. As an example, we'll create a stock quote retrieval screen which sends the quote symbol to the server, receives the current price and stores it in the model for the view to show.
All Mate projects must have:
- One or more events (custom or built-in)
- One or more Event Maps
Typically, the basic steps to create a Mate project are:
- Add the compiled framework code to your project (Mate.swc).
- Create a file that will be the EventMap.
- Include the event map in your main Application file.
- Create a custom event.
- Somewhere, dispatch that event.
- Add EventHandlers in your event map that listen for the event type you dispatched.
- Execute some actions inside the EventHandlers block (ie: call the server, store data, etc).
- Repeat 4-7 for every event you need.