Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

WindowBase.java

Go to the documentation of this file.
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     // New Abstract Methods
00091 
00092 
00096     protected abstract void initChildren();
00097 
00102     protected abstract void layoutChildren();
00103 
00104     //-----------------------------------------------------------------------
00105     // Semi-Abstract Methods
00106 
00111     protected void initCompleted() { }
00112 
00113     //-----------------------------------------------------------------------
00114     // Overridden Methods
00115 
00126     protected void onPopup() {
00127         if (!initialized) {
00128             // configure
00129             makeUnmovable();
00130             flicker = true; // don't erase background
00131             setDoubleBuffer(true);
00132 
00133             // perform initialization
00134             initChildren();
00135             layoutChildren();
00136             initCompleted();
00137 
00138             initialized = true;
00139         }
00140     }
00141 
00142     //-----------------------------------------------------------------------
00143     // Factory Methods
00144 
00145 
00149     protected Button createButton(String text) {
00150         return new Button(text);
00151     }
00152 
00153     //-----------------------------------------------------------------------
00154     // Member Variables
00155 
00159     private boolean initialized = false;
00160 }

Generated on Fri Jun 18 19:51:28 2004 for Arcle Rambutan by doxygen 1.3.5