Library
You can find here detailed information for using the MicroWidgets library.Introduction
This library contains three main kind of classes. This page contains a chapter for each one.
- Components like check box, field, button, ...
- Containers that manage components layout,
- Events/Listeners that permit to handle and use component events.
If you want more detailed example and/or explanations, you can download the test module source files, and consult this library javadoc.
Components
Following components are currently available in this library (Clic on class name to view details):
![]() |
Button | ![]() |
CheckBox | |
![]() |
DigitTextField | ![]() |
ExclusiveChoice | |
![]() |
GraphicItem | ![]() |
Hyperlink | |
![]() |
ImageItem | ![]() |
Slider | |
![]() |
StringItem | ![]() |
TextField | |
Containers
Two containers are provided (Clic on class name to view details):
- XYPanel to place components manually with by specifying coordinates.
- RowPanel provides a layout using lines. You can specify when break lines, add horizontal spaces, and more...
Events/Listeners
Five listeners are provided: Four for components, and one for containers.
See table below to determine which one can be used:
ActionListener | ComponentListener | ContainerListener | FocusListener | ValueChangeListener | |
---|---|---|---|---|---|
Button | X | X | X | ||
CheckBox | X | X | X | ||
DigitTextField | X | X | X | ||
ExclusiveChoice | X | X | X | ||
GraphicItem | X | X | |||
HyperLink | X | X | X | ||
ImageItem | X | X | |||
Slider | X | X | X | ||
StringItem | X | X | |||
TextField | X | X | X | ||
RowPanel | X | ||||
XYPanel | X |