Chapter 5 (Advanced Widgets) of WebOS Book Now Available 3
Chapter 5 of the Palm webOS book by Mitch Allen is now available from Safari Books Online.
Chapter 5 completes the review of the Mojo widgets with a look at Indicators, Pickers and Viewers, the Filter List and the Scroller. Not all applications will use the Mojo widgets because they're each designed for specific use cases. The widgets are just as simple to work with as the widgets that were previously discussed in Chapter 3 and Chapter 4.
First up, Chapter 5 talks about the Indicators. We're all familiar with Indicators. They show that activity is taking place even if it's not visible, and in some cases, to show some measure of the progress that the activity is making. I'm sure those of you who use a Windows computer are used to seeing that hourglass indicator, showing that something is happening. By reading in Chapter 5, we can get a feel for what the Indicator widgets will look like on the WebOS devices like the Pre.
Read on for a couple screen shots
Mojo has four indicator widgets, but they belong to two types:
- Activity indicator, or Spinner, which spins without showing progress
- Progress indicator, which shows both activity and progress
Below is an example that Chapter 5 shows of a Spinner on a Google News feed item.
Even though the Spinner is the only activity indicator, there are 3 Progress indicator widgets:
- Progress Pill, a wide pill which is styled to match the View menu and the .palm-header scene style
- Progress Bar, a narrow horizontal bar with a blue progress indicator
- Progress Slider, which is intended for streaming media playback applications
Here is an example of a Progress Pill.
Looks familiar, huh? I'm used to seeing similar progress pills at the bottom of my screen on Web pages all the time.
Chapter 5 goes on to explain how the other widgets such as the Scroller, Picker, and Viewers work. You'll see examples of code views and read about how to put in and use all the widgets.
Even though I don't know a thing about developing apps, I found the reading to be pretty interesting, and it's written in a way that you can actually understand what is being discussed.
Head over to Safari Books Online and check it out. For $17.99 you can read Palm webOS, 1st Editon, Rough Cuts online.
Thanks to Chris for the tip!






























3 Comments
While I'm excited about widgets, I am really looking forward to the chapters that get deeper into the non-UI stuff. I want to know exactly how to make use of the services offered by WebOS. I believe that starts with ch6 since ch5 is supposed to complete the widget intro.
Mojo is really nice visually and reminds me of some of the other JS frameworks I've used. I just really want to see the calls to system services.
Even more, I'd really like to have this device in hand so I don't have to just read about it! :-)