00001
00067 package com.arcle.rmt.superwaba.ui;
00068 import waba.ui.Window;
00069 import waba.ui.Button;
00070
00083 public abstract class WindowBase extends Window {
00084
00085 public WindowBase(String title, byte borderStyle) {
00086 super(title, borderStyle);
00087 }
00088
00089
00090
00091
00092
00096 protected abstract void initChildren();
00097
00102 protected abstract void layoutChildren();
00103
00104
00105
00106
00111 protected void initCompleted() { }
00112
00113
00114
00115
00126 protected void onPopup() {
00127 if (!initialized) {
00128
00129 makeUnmovable();
00130 flicker = true;
00131 setDoubleBuffer(true);
00132
00133
00134 initChildren();
00135 layoutChildren();
00136 initCompleted();
00137
00138 initialized = true;
00139 }
00140 }
00141
00142
00143
00144
00145
00149 protected Button createButton(String text) {
00150 return new Button(text);
00151 }
00152
00153
00154
00155
00159 private boolean initialized = false;
00160 }