*/
public ProgressIndicatorScreen() {
setTitle("Progress Indicator Screen");
// Initialize progress indicator
final ProgressIndicatorView view = new ProgressIndicatorView(0);
_model = new ProgressIndicatorModel(0, 100, 0);
final ProgressIndicatorController controller =
new ProgressIndicatorController();
_model.setController(controller);
_model.addListener(new DemoProgressIndicatorListener());
view.setModel(_model);
view.setController(controller);
controller.setModel(_model);
controller.setView(view);
view.setLabel("Progress");
view.createProgressBar(Field.FIELD_HCENTER);
// Initialize buttons
_processButton =
new ButtonField("Process data", ButtonField.NEVER_DIRTY
| ButtonField.CONSUME_CLICK);