if (skin.bootingProgress != null) {
skin.bootingProgress.setBounds(lcdBounds.x,
lcdBounds.y + lcdBounds.height + 1, lcdBounds.width, 2);
-
- //TODO : delete this line
- skin.bootingProgress.setSelection(0); /* dispose */
- skin.bootingProgress = null;
}
/* custom window shape */
if (skin.bootingProgress != null) {
skin.bootingProgress.setBounds(lcdBounds.x,
lcdBounds.y + lcdBounds.height + 1, lcdBounds.width, 2);
-
- //TODO : delete this line
- skin.bootingProgress.setSelection(0); /* dispose */
- skin.bootingProgress = null;
}
/* custom window shape */
super(parent, style);
this.parent = parent;
- this.selection = 1;
+ this.selection = 0;
this.addPaintListener(new PaintListener() {
@Override
int width = (bounds.width * selection) / 100;
e.gc.fillRectangle(0, 0, width, bounds.height);
- if (selection == 0) {
+ if (selection == -1) {
logger.info("progress : complete!");
parent.getDisplay().asyncExec(new Runnable() {
}
}
});
+
+ /* default is hidden */
+ parent.getDisplay().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ setVisible(false);
+ }
+ });
}
public void setSelection(int value) {
+ parent.getDisplay().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ setVisible(true);
+ }
+ });
+
if (value < 0) {
value = 0;
} else if (value > 100) {
redraw();
if (selection == 100) {
- selection = 0;
+ selection = -1;
}
}
});