Use SuperWaba to program [Repost] on PPC and Palm

xiaoxiao2021-03-06  52

Original: http://iportal.blogdriver.com/iportal/303961.html
1. What is superwaba?
Superwaba is WABA, and WABA is now almost dead ... The original SW is just an extension on WABA, but it will not be packed, and it has become a big and small improvement and update. Now SW.
Advantages:
1. Cross-platform compatibility is high, one program is basically no change, and can run on Palm OS or PPC;
2. Rich API can be used in Symbol Barcode identification and expansion card, etc.;
3. It is convenient to change from Palm Os Style to non-Palm OS Style;
4. The update speed of SW is amazing and fast, and there is a new version release every month.
4. The most important one ... it is completely free, and obey the GPL protocol, the source code is all open, and placed on the SourceForge.

Disadvantages:
1. The SW4.1 released next Monday (15th) next Monday (December 15) will be ARM Native, which will have a significant speed increase;
2. Chinese is not supported, but the upcoming SW 4.1 will be! ! (It's written on its official website: Full Unicode Support (Ufolib) - Ready will be in the next version (4.1), if the support is supported in Chinese.
3. The API that can be used than the C program will be less Some

The following is a known SW support OS:
Palm OS 3 to 5.2.1 (Handspring's OS3.1 requires a patch to run) Windows CE from 2 to 3 (CE.NET has not been tried) Pocket PC From 2000 until 2003 (only one word can be described: cool! The program can support so many OS and processor framework!)

The following is a known SW support device:
Windows CE / POCKET PC device
COMPAQ: IPAQ 3670, IPAQ H3970, IPAQ 3900, IPAQ 1910, Pocket PC Aero 1550
? Dell: Axim A5, AXIM X5
HP: Jornada 540 (SH3), Jornada 680/690
HTC: Falcon
Symbol: PDT8100 (Pocket PC 3.0), PDT8146 (Pocket PC 2002)
Toshiba: e350 Intel PXA
Vandem:? Clio (HPC 2.11) - cabs do not work but the files can be installed manually for MIPS
ViewSonic: V35, V37

32-bit Windows ? Windows 98? Windows NT? Windows XP? Windows 2000
2. How to get SuperWABA
Superwaba's official website: www.superwaba.com.br
To download its SDK, you must register first Free): Point SIGN UP, then follow the prompts. After registering, click Downlaod, after logging in, Download Superwaba SDK can be.
Recommend a very good free IDE: Tauschke MobileCreator 1.7, you can go to http://www.tauschke.com/download/index.html to download.
Visualwaba is a French Visual IDE written by Java, but unfortunately is a shared software, who can ...
Currently, most people use Eclipse, this is to know how to be familiar with Java know, it is completely open And free, a prawn has written a superwaba plugin, please find it downstairs.

Here is the fast tutorial of Plugin: http://superwaba-ide.sourceforge.net/usage.html
If you have trouble or suggestions in Superwaba, you may wish to subscribe to Superwaba's newsgroup: news: // news. Superwaba.net, very helpful (external exercise English! In fact, Superwaba's boss Guich is Brazil ... From .br, the country domain name can be seen, Superwaba is very international, member is more from Germany, France, etc. ... But everyone uses English!)
O'Reilly's onjava.com has a nice WABA tutorial: http://www.onjava.com/pub/a/onjava/2001/04/19/java_palm. Htmlhttp://www.onjava.com/pub/a/onjava/2001/06/19/waba.html
... ... 23: 48, Superwaba 4.1 officially released, now the official webpage actually said ...... The next version will be: Native ARM VM for Palm OS 5, Expecting 4-8 Times Faster ... 5-15 Times Faster VM for Windows CE Using The SDL (AND, In Xscale Processors, Boosted by Intel's Optimized Compiler ) ... The most horrible thing is ... The next version will increase the support for Linux PDA, Symbian V.7 and Brew (although I don't know what to play with this article)! ! ! !
English friends can take a look at the SUPERWABA Boss Guich just given me SW profile:
Superwaba Is A Java-Like VM for PDAS. Can Run in Palmos, in Windows CE / PocketPC Devices and in Windows 98 and beyond, and is fully emulated under JDK and browser. Have support for Exceptions, Threads, lots of user interface controls, double and long 64 bit types, supports Grayscale in all PalmOS devices starting 2.0, supports Color, has a beautiful set of 3d controls , supports JNI and Java libraries, its fast and small, lets you use all device's memory if needed, supports Symbol scanners, bluetooth, sockets and serial / IR. Also supports html and full UNICODE range (chinese, japanese, korean, etc).

You can make programs using your favorite Java IDE, debug everything in desktop and when finished just deploy it in the device. There are several libraries added by users that enhance the basic set of classes. The programs are totaly portable between the platforms, and even the database is also portable! SuperWaba has more than 10000 members from 150 countries worldwide. Welcome to the world of easy cross-platform!
SuperWaba 4.1 (December 15, 2003)
.Full Unicode Support! (Japanese, Chinese , Korean, etc) .New XMl package .New Html Container .New HtmlBrowser .Support for Gif / Jpeg / Png library .Support for Treo 600, Intermec Norand 600, Zire 21, Mono WinCE devices .Improved Image loading speed .Now you can Add A TXT File Using Warp and Read IT Directly (VM.Getfile) .lots of bug fixes
3. Start programming with superwaba!
Although Eclipse is much more powerful than MobileCreator, but just start with simple start! After installing Tauschke MobileCreator 1.72 and start, click "Project", "New ...", then enter the name of the project, just take a favorite FAINT :) Remember to put the Create Mainwindow Class to hook it, otherwise You have to start writing from scratch!
After ok, you will find that there is a Faint.java file on the left Source column, which is the mainwindow class we have just created. All Superwaba programs have one and only have a mainwindow class, otherwise the consequences are at your own risk! The MainWindow is the main window ......
good friends, and now the first line of code did not enjoy the results of playing it! Point toolbar's rightmost green flag icon (Save all, compile and start) or press F10 (how to sound like a old-American bomber ??), as long as you start the path, you will see a Cute Java Applet, only one menu bar Faint ...
Click on the mouse! Hey, the standard Palm menu! Hey, why didn't Options have no response? ? Tony, we haven't started writing Event Handler yet. If you have a reaction, you will see the ghost!
Good, first look at the code:

import waba.ui. *;
import waba.fx. *;

public class Faint extends MainWindow {
String col0 [] = { "Options", "Cut", "Copy", "Paste"};
String col1 [] = {"About Faint", "info"};

Public Faint () {
setDoublebuffer;
setBorderstyle;
SetTitle ("Faint");
setmenubar (new String [] {col0, col1} ));
}

Public void onstart () {

}

Public void onevent (event evenet) {

}

Public void onpaint (graphics g) {

}

}

The first two lines of IMPORT, introduced some of the most commonly used SW classes. Others also:

waba.fx
Classes related to Graphics, fonts, geometric classes (Rect, Coord), Image, sound.waba.ioInput output basic classes, to access PDB files (represented by a Catalog), sockets, serial port, and some utility classes to make easier dealing with IO.waba.sysClasses that contains functions to deal with the underlying Operating System characteristics and configurations, and convertion classes.waba.uiThe most important package, with all user interface controls you need to create good and fast programs .waba.utilutility Classes, To DEAL with date, random Number Generation, and Data Structures (Vectors and ").
In addition, SW also has Extension Packages, which can be attached. Please see Documentation: Point Source Tab is available.
OnStart (): Performs it when the SW program is started. Of course, you can also use oneXit () to execute the code before the end of the program.
Onevent (): It is the Event Handler we want, responsible for handling the event, similar to the actionPerformed () in swing.
OnPaint (): It is used to draw.

In fact, the SW programming is very simple. I also read the programming trip to SW's program after I saw the example of SDK! Of course, the writing program is one of the most important things is to see the Java document, SW is no exception. Its document is written very detailed, and it is generally an example to explain each class.
4. Advanced Applications - Developing SW programs on Eclipse
Today, I finally tilted 320x320 Java Applet today, specifically described here, so as to avoid going to take your take.
Well, now we officially (temporarily ??) farewell MobileCreator, change to the Eclipse! Maybe someone will not solve: MobileCreator is not very good, do you want to change?
The answer is very simple: When your program reaches some scales, MobileCreator will look forward to the heart, which is not as good as Eclipse when managing and helps you handle the code.
Now open Eclipse (no eclipse? That is also useful, hurry to come to the next !!),
1. File -> New -> Project, then Java Project. Point next.
2. Give your Project a name.
3. Remove the hook of Use default, then click Browse, select your Project directory. Point next.
4. Click the Library tab, click SELECT External Jars, then join the SuperwabasDK / LIB / Superwaba.jar file. Point Finish.
5. In the menu Project, point Properties. Choose Java Build Path, then libraries tag. Click near Superwaba.jar.
6. Double click Javadoc Location. Select the SuperwabasDK / DOCS / HTML directory.
7. Double-click Source Attachment, select the same superwaba.jar file. Click OK.

Do not rush gasp ...... only done half the remaining work is Debug / Run time needed:
1. In the menu RUN, select RUN or Debug.
2. The Java Application Bar on the left, then New.
3. Fill in the name of this configuration in the top Name column on the right, you will find it!
4. There is a main label below it. Fill in the name of your Project in the Project column.

转载请注明原文地址:https://www.9cbs.com/read-84403.html

New Post(0)