Document Information
Preface
1. Introducing the Lightweight UI Toolkit Library
1.1 API Overview
1.1.1 Scope and Portability
1.1.1.1 Hello World Example for MIDP
1.1.2 Events and Threading
2. Using Lightweight UI Toolkit Widgets
2.1 Component
2.2 Container
2.3 Form
2.4 Create and Set Up a Form Label
2.5 Button
2.6 RadioButton
2.7 ButtonGroup
2.8 CheckBox
2.9 ComboBox
2.10 TabbedPane
2.11 TextArea
2.12 TextField
2.13 Calendar
2.14 Tickering
2.15 Bidi
2.16 Virtual Keyboard
2.17 Customizing the Virtual Keyboard
2.17.1 Changing the Virtual Keyboard Look and Feel
2.17.2 Adding a Language
Adding an Input Mode for Hebrew
2.17.3 Binding a Virtual Keyboard to a TextField
2.17.4 Adding Your Own Button to a TextField
3. Using Lists
3.1 Initializing a List
3.2 Creating a Model
3.2.1 ListModel
3.2.2 DefaultListModel
3.3 List Cell Renderer
3.3.1 ListCellRenderer
3.3.2 DefaultListCellRenderer
3.4 Adding Items to and Removing Items From a List
3.5 List Events
3.5.1 Fixed Selection Feature
3.6 Tickers in List
4. Table and Tree
4.1 Table
4.2 Tree
4.3 Customizing the Tree
5. Using Dialogs
5.1 Dialog Types
5.2 Creating a Dialog
5.2.1 Return Types of Show Methods
5.2.2 Non-Static Show Methods
5.2.3 Using the
dispose()
Method
5.2.4 Getting the User's Input from a Dialog
6. Using Layout Managers
6.1 BorderLayout
6.2 BoxLayout
6.2.1 X_AXIS
6.2.2 Y_AXIS
6.3 FlowLayout
6.4 GridLayout
6.5 GroupLayout
6.6 Coordinate Layout
6.7 Table Layout
7. Painters
7.1 Using Painter
7.2 Painter Chain
7.3 Glass Pane
8. Using the Style Object
8.1 Color
8.2 Font
8.3 Transparency
8.4 Margin and Padding
8.5 Images
8.6 Borders
8.7 Style Listener
8.8 Painters
9. LWUIT Implementation
9.1 LWUIT Class
10. HTMLComponent
10.1
HTMLComponent
Use Cases
10.1.1 Rendering Rich Text
10.1.2 Reading HTML and Enabling External Resources
10.2
HTMLCallback
10.2.1
parsingError
10.2.2
pageStatusChanged
10.2.3
titleUpdated
10.2.4
linkClicked
10.2.5
getLinkProperties
10.2.6 Auto Complete
10.3 Fonts
10.3.1 Default Font
10.3.2 System Fonts in HTMLComponent
10.3.3 Bitmap Fonts
10.3.4 Font Tags
10.4 Styles in HTMLComponent
10.5 Character Entities
10.6 HTMLComponent Settings
10.7 CSS Support
10.8 Implementing a DocumentRequestHandler
10.9 DocumentInfo
10.9.1
getUrl
10.9.2
getEncoding
and
setEncoding
10.9.3
getParams
10.9.4
getExpectedContentType
and
setExpectedContentType
10.9.5
getFullUrl
or
getBaseUrl
11. Theming
11.1 Basic Theming
11.2 Look and Feel
12. Resources
12.1 Resource Elements
12.1.1 Building a Bundle
12.1.1.1 Creating a Resource
12.1.1.2 Loading a Resource
12.1.2 Image Resources
12.1.3 Indexed Images
12.1.4 Fonts
12.1.4.1 System Font
12.1.4.2 Dynamic Fonts
12.1.5 Localization (L10N)
12.1.6 Themes
12.2 The LWUIT Theme Creator
12.2.1 Images and Animations
12.2.2 Fonts
12.2.3 Localization
12.2.4 Themes
12.2.4.1 Example: Adding a New Theme
12.2.4.2 Modifying Theme Properties
12.2.4.3 Data
12.2.4.4 Customizing the Preview
12.2.4.5 Known Issues
13. Using Transitions and Animations
13.1 Animation
13.2 Motion
13.3 Transition
13.3.1 Slide Transition
13.3.2 Fade Transition
14. M3G
14.1 Using 3D
15. Logging
15.1 Writing to a Log
15.2 Showing the Log
16. Authoring Components
16.1 Painting
16.2 Sizing In Layout
16.3 Event Handling
16.4 Focus
16.5 The Painting Pipeline
16.6 Styling
16.7 Background
16.8 Animating The Component
16.9 The Custom Component
17. Portability and Performance
17.1 Introduction
17.2 Performance
17.2.1 Memory
17.2.1.1 Indexed Images
17.2.2 Speed
17.2.2.1 Event Dispatch Thread (EDT)
17.2.2.2 LWUIT Performance
17.3 Device Bugs And Limitations
17.3.1 Bugs
17.3.2 Limitations
17.4 Resolution Independence
17.5 Input
17.5.1 Soft Buttons
17.5.2 Back Button
17.5.3 Touch Screen Devices
17.6 Specific Device Issues
17.6.1 Motorola
17.6.2 BlackBerry
Create a
.cod
File
17.6.3 Nokia S40
17.6.4 Sony Ericsson
17.6.5 General Portability Tip
A. LWUIT Mini FAQ
Index
docs.sun.com
|
oracle.com
Lightweight UI Toolkit
Developer’s Guide
July 2010
This Developer Guide explains how to use the Lightweight UI Toolkit API, resources, and themes.