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

com.arcle.rmt.superwaba.ui.WindowBase Class Reference

Base Class that provides a lightweight framework for Window user-interface objects. More...

Inheritance diagram for com.arcle.rmt.superwaba.ui.WindowBase:

com.arcle.rmt.superwaba.ui.CommandWindow com.arcle.rmt.superwaba.ui.CategoryWindow List of all members.

Public Member Functions

 WindowBase (String title, byte borderStyle)

Protected Member Functions

abstract void initChildren ()
 Implement this strategy method to initialize all child controls.

abstract void layoutChildren ()
 Implement this strategy method to add child controls to the window and set their positions and boundaries.

void initCompleted ()
 Called only once when the window had completed initialization.

void onPopup ()
 Template Method.

Button createButton (String text)
 Factory Method to create Button controls in this window.


Private Attributes

boolean initialized = false
 Whether initialization had been done.


Detailed Description

Base Class that provides a lightweight framework for Window user-interface objects.

From the SuperWaba manual
Attention! Is not a good practice use this class as a Container, adding it to other Window. Use this class only as a popup window, or strange things can happen!
Author:
Sasmito Adibowo

Definition at line 83 of file WindowBase.java.


Constructor & Destructor Documentation

com.arcle.rmt.superwaba.ui.WindowBase.WindowBase String  title,
byte  borderStyle
 

Definition at line 85 of file WindowBase.java.


Member Function Documentation

Button com.arcle.rmt.superwaba.ui.WindowBase.createButton String  text  )  [protected]
 

Factory Method to create Button controls in this window.

Definition at line 149 of file WindowBase.java.

abstract void com.arcle.rmt.superwaba.ui.WindowBase.initChildren  )  [protected, pure virtual]
 

Implement this strategy method to initialize all child controls.

Implemented in com.arcle.rmt.superwaba.ui.CategoryWindow.

Referenced by com.arcle.rmt.superwaba.ui.WindowBase.onPopup().

void com.arcle.rmt.superwaba.ui.WindowBase.initCompleted  )  [protected]
 

Called only once when the window had completed initialization.

The default implementation does nothing.

Definition at line 111 of file WindowBase.java.

Referenced by com.arcle.rmt.superwaba.ui.WindowBase.onPopup().

abstract void com.arcle.rmt.superwaba.ui.WindowBase.layoutChildren  )  [protected, pure virtual]
 

Implement this strategy method to add child controls to the window and set their positions and boundaries.

Implemented in com.arcle.rmt.superwaba.ui.CategoryWindow, and com.arcle.rmt.superwaba.ui.CommandWindow.

Referenced by com.arcle.rmt.superwaba.ui.WindowBase.onPopup().

void com.arcle.rmt.superwaba.ui.WindowBase.onPopup  )  [protected]
 

Template Method.

When first called, it performs these initialization steps:

  • Makes the window unmoveable.
  • Sets the flicker and doubleBuffer flags to true.
  • initialize child controls via the strategy method initChildren().
  • layouts child controls via the strategy method layoutChildren().
  • notifies derived classes that initialization had completed via the strategy method layoutChildren().

Reimplemented in com.arcle.rmt.superwaba.ui.CategoryWindow.

Definition at line 126 of file WindowBase.java.

References com.arcle.rmt.superwaba.ui.WindowBase.initChildren(), com.arcle.rmt.superwaba.ui.WindowBase.initCompleted(), com.arcle.rmt.superwaba.ui.WindowBase.initialized, and com.arcle.rmt.superwaba.ui.WindowBase.layoutChildren().


Member Data Documentation

boolean com.arcle.rmt.superwaba.ui.WindowBase.initialized = false [private]
 

Whether initialization had been done.

Definition at line 159 of file WindowBase.java.

Referenced by com.arcle.rmt.superwaba.ui.WindowBase.onPopup().


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 19:55:24 2004 for Arcle Rambutan by doxygen 1.3.5