DynaWorks Tutorial

How to write applications with the DynaWorks framework


DynaWorks source code examples

I have included some source code examples to show you how do make use of the DynaWorks framework. These examples can be found under the <dynaworks>/examples directory.

I have compiled the examples using the cpl.bat batch file that is included with each example; if the *.prc files have been loaded to the Palm they will show up like in the picture to the right:

A multi-page application with custom widgets

A simple multi-page application with three screens at all. Notice the custom widget (a slider) on the second page.

The third page is "modal" page, you can reach it (and return to caller) from the first and the second page.

The source code can be found here:

cpl.bat is used to compile the source.
MyApp.java is the application's main module.
MyPage.java is the entry page of the application.
ViewPage.java is the second page of the application. It contains the custom widget (a slider). The source of the slider can be found here.
SearchPage.java is the third page of the application. It is only called as a "subpage" by the other two pages.
preverify.lst list of classes for preverification.

Back to top of page ...

A database application with custom records

This is a skeleton framework for an application that wants to read, write, modify and delete entries in its own database.

The application has buttons to traverse the database, to delete, to add and to edit records in the database. It uses to pages (one for a record display and database traversal, the other for record editing).

The source code can be found here:

cpl.bat is used to compile the source.
MyDbApp.java is the application's main module.
MyRecord.java defines the record structure for entries in the custom database.
MyDbPage.java is the page for record display and database traversal.
MyRecordPage.java is the page for editing records.
MyEditParams.java defines the data object that is passed back and forth between the pages in this application via the object store.
preverify.lst list of classes for preverification.

Back to top of page ...

Reading the build-in databases...

These are very simple applications that allow you to traverse the Palm build-in databases. Since they are all derived from the same skeleton application, they also look all the same: They have buttons for selecting records (first,prev,next,last) and an 'exit' button.

Back to top of page ...

Reading the address database

The source code can be found here:

cpl.bat is used to compile the source.
AddressApp.java is the application's main module.
AddressPage.java is the page to display address records and to traverse the database.
preverify.lst list of classes for preverification.

Back to top of page ...

Reading the datebook database

The source code can be found here:

cpl.bat is used to compile the source.
DatebkApp.java is the application's main module.
DatebkPage.java is the page to display address records and to traverse the database.
preverify.lst list of classes for preverification.

Back to top of page ...

Reading the eMail database

The source code can be found here:

cpl.bat is used to compile the source.
MailApp.java is the application's main module.
MailPage.java is the page to display address records and to traverse the database.
preverify.lst list of classes for preverification.

Back to top of page ...

Reading the expense database

The source code can be found here:

cpl.bat is used to compile the source.
ExpenseApp.java is the application's main module.
ExpensePage.java is the page to display address records and to traverse the database.
preverify.lst list of classes for preverification.

Back to top of page ...

Reading the ToDo database

The source code can be found here:

cpl.bat is used to compile the source.
TodoApp.java is the application's main module.
TodoPage.java is the page to display address records and to traverse the database.
preverify.lst list of classes for preverification.

Back to top of page ...

Reading the memo database

The source code can be found here:

cpl.bat is used to compile the source.
MemoApp.java is the application's main module.
MemoPage.java is the page to display address records and to traverse the database.
preverify.lst list of classes for preverification.

Back to top of page ...


Copyright © 2000, Bernd R. Fix. All Rights Reserved.