Table of Contents
Preface
Chapter 1: Introduction to LWUIT
Chapter 2: Components
Chapter 3: The Container Family
Chapter 4: The Label Family
Chapter 5: List and ComboBox
Chapter 6: TextArea and TextField
Chapter 7: Arranging Widgets with Layout Managers
Chapter 8: Creating a Custom Component
Chapter 9: Resources Class, Resource File and LWUIT Designer
Chapter 10: Using Themes
Chapter 11: Adding Animations and Transitions
Chapter 12: Painters
Chapter 13: Effects and Logging—Useful Utilities
Index
- Chapter 1: Introduction to LWUIT
- Why we need the LWUIT
- LWUIT overview
- Widgets
- Container and Form
- The TabbedPane
- Calendar
- Dialog
- Label and Button
- TextArea and TextField
- List
- ComboBox
- The underlying support elements
- Resource
- Layout managers
- Style
- Painter
- UIManager
- LookAndFeel
- Functionalities
- Animations and transitions
- Themes
- Logging
- The Basic architecture
- LWUITImplementation—the foundation of LWUIT
- The Display class
- Summary
- Chapter 2: Components
- The LWUIT bundle
- Getting equipped
- Hello LWUIT!
- Creating the project
- The code
- Deploying an application
- The Component class
- Methods to handle size and location
- Methods for event handling
- Methods for rendering
- The painting process
- Miscellaneous methods
- Animation support for components
- Handling Style
- The Graphics class
- Summary
- Chapter 3: The Container Family
- The Container
- Creating a Container
- The methods of the Container class
- The form
- Creating a form
- Handling commands
- The Command class
- Creating a command
- Methods of Command class
- Installing a command
- Managing the form's appearance
- Setting the TitleBar's looks
- The Font class
- Creating a Font
- The methods of the Font class
- Installing a new font
- Setting the MenuBar's looks
- Setting the Form's Looks
- The Dialog
- Creating a Dialog
- The methods of the Dialog class
- Displaying a dialog
- The Calendar
- Creating a Calendar
- Methods of Calendar class
- Using a Calendar
- The TabbedPane
- Creating a TabbedPane
- Methods of TabbedPane class
- A TabbedPane in action
- Style for the future
- Summary
- The Container
- Chapter 4: The Label Family
- The Border class
- The Label
- The LabelDemo example
- Creating a Label
- Methods of the Label class
- The LabelDemo application
- The Button class
- Creating a Button
- The methods of Button class
- The DemoButton example
- The CheckBox
- Creating a CheckBox
- Methods of the CheckBox class
- The "Languages Known" example
- The RadioButton and ButtonGroup
- The ButtonGroup class
- Creating a RadioButton
- Methods of the RadioButton class
- The "Reservation" Example
- Summary
- Chapter 5: List and ComboBox
- The list
- Creating a List
- The methods of the List class
- Setting up a basic list
- A list with custom rendering
- The ToDoList
- The ComboBox
- Creating a ComboBox
- The methods of the ComboBox class
- A combo box with the default renderer
- A combo box with a custom renderer
- Summary
- The list
- Chapter 6: TextArea and TextField
- The TextArea
- Creating a TextArea
- The methods of the TextArea class
- Putting TextArea class through its paces
- The TextField class
- Creating a TextField
- The methods of the TextField class
- Checking out TextField
- Summary
- The TextArea
- Chapter 7: Arranging Widgets with Layout Managers
- Layout class
- The LayoutStyle class
- BorderLayout
- BoxLayout
- CoordinateLayout
- FlowLayout
- GridLayout
- GroupLayout
- GroupLayout.Group
- GroupLayout.ParallelGroup
- GroupLayout.SequentialGroup
- Summary
- Chapter 8: Creating a Custom Component
- The making of a component
- The TimeViewer class
- The TimeTeller class
- The Real time mode
- The ElapsedTime mode
- The TimeTellerMIDlet
- Enhancements
- Summary
- The making of a component
- Chapter 9: Resources Class, Resource File and LWUIT Designer
- The LWUIT Designer
- Creating a resource file
- Adding an image
- Adding an animation
- Adding a font
- Adding a localization resource
- Adding a Theme
- Saving a resource file
- Creating a resource file
- The Resources class
- The SampleResource demo
- The manual approach
- The automatic approach
- Summary
- The LWUIT Designer
- Chapter 10: Using Themes
- Working with theme files
- Viewing a theme file
- Editing a theme file
- Populating a theme
- Theming custom components
- Manual styling versus theming
- Theming on the fly
- New version of the LWUIT Designer
- Summary
- Working with theme files
- Chapter 11: Adding Animations and Transitions
- Animations
- The Hello MIDlet
- Transition
- The Transition class
- CommonTransitions
- Transition3D
- Using transitions
- The DemoTransition application
- Transition for components
- The Transition class
- Authoring transitions
- The BlindsTransition class
- The StepMotion class
- The MIDlet
- Summary
- Animations
- Chapter 12: Painters
- The Painter interface
- The DemoPainter application
- Drawing a multi-layered background
- The PainterChain class
- The DemoPainterChain application
- Using a glass pane
- The DemoGlassPane application
- A GlassPane with multiple layers
- Summary
- Chapter 13: Effects and Logging—Useful Utilities
- Using Effects
- The Effects class
- The DemoEffects application
- Logging with LWUIT
- The Log class
- The DemoLogger application
- Customizing Log
- The DemoMyLog MIDlet
- Summary
- Using Effects



