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

com.arcle.rmt.superwaba.vc.AbstractDocumentWindow Class Reference

Contains the functionalities of a Document Window minus any that requires knowledge of the SRS element types. More...

Inheritance diagram for com.arcle.rmt.superwaba.vc.AbstractDocumentWindow:

com.arcle.rmt.superwaba.vc.DocumentWindow List of all members.

Public Member Functions

 AbstractDocumentWindow (DocumentWindowController ctrl)
Button[] getCommandButtons ()
void onEvent (Event event)

Protected Member Functions

abstract List createPanels ()
 Factory Method that defines each of the element list sub-views.

String getPanelCaptionAt (int index)
void initChildren ()
void initCompleted ()
void onPanelSwitched ()
 Notifies the newly-activated panel to update its data from the model.

MenuBar createMenuBar ()
 Factory method that creates the menu bar.

abstract String[] createRequirementMenuItems ()
 Indexes must match...

DocumentWindowController getController ()
 Returns the Controller of this object.

void handleMenuEvent (int selectedItem)
 Handles menu selection.

void doNewElement ()
 Forwards the call to the controller.

Document getDocument ()
 Returns the document being edited.


Private Attributes

DocumentWindowController _controller
 The Controller of this object.

Button btnNew
 The "New" button.

Button btnClose
 The "Close" button.

Button btnDelete
 The "Delete" button.


Detailed Description

Contains the functionalities of a Document Window minus any that requires knowledge of the SRS element types.

Author:
Sasmito Adibowo
Since:
10-04-03 19:49
Version:
Id
AbstractDocumentWindow.java,v 1.11 2003/05/15 19:44:07 adib Exp

Definition at line 92 of file AbstractDocumentWindow.java.


Constructor & Destructor Documentation

com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.AbstractDocumentWindow DocumentWindowController  ctrl  ) 
 

Definition at line 94 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow._controller.


Member Function Documentation

MenuBar com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.createMenuBar  )  [protected]
 

Factory method that creates the menu bar.

Definition at line 186 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.createRequirementMenuItems().

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initChildren().

abstract List com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.createPanels  )  [protected, pure virtual]
 

Factory Method that defines each of the element list sub-views.

Returns:
a vector of ElementList objects that are the element list views.

Implemented in com.arcle.rmt.superwaba.vc.DocumentWindow.

abstract String [] com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.createRequirementMenuItems  )  [protected, pure virtual]
 

Indexes must match...

Implemented in com.arcle.rmt.superwaba.vc.DocumentWindow.

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.createMenuBar().

void com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.doNewElement  )  [protected]
 

Forwards the call to the controller.

Definition at line 241 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.ElementListController.cmdNewElement().

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.handleMenuEvent(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onEvent().

Button [] com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getCommandButtons  ) 
 

Definition at line 120 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnClose, com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnDelete, and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnNew.

DocumentWindowController com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getController  )  [protected]
 

Returns the Controller of this object.

Definition at line 211 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow._controller.

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getDocument(), com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initCompleted(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onEvent().

Document com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getDocument  )  [protected]
 

Returns the document being edited.

Definition at line 251 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getController(), and com.arcle.rmt.superwaba.vc.DocumentWindowController.getDocument().

Referenced by com.arcle.rmt.superwaba.vc.DocumentWindow.createPanels(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initCompleted().

String com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getPanelCaptionAt int  index  )  [protected]
 

Definition at line 116 of file AbstractDocumentWindow.java.

void com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.handleMenuEvent int  selectedItem  )  [protected]
 

Handles menu selection.

Definition at line 221 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.doNewElement().

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onEvent().

void com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initChildren  )  [protected]
 

Definition at line 131 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnClose, com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnDelete, com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnNew, and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.createMenuBar().

void com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initCompleted  )  [protected]
 

Definition at line 166 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getController(), com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getDocument(), and com.arcle.rmt.superwaba.vc.DocumentWindowController.viewInitialized().

void com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onEvent Event  event  ) 
 

Definition at line 141 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnClose, com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnDelete, com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnNew, com.arcle.rmt.superwaba.vc.DocumentWindowController.cmdCloseWindow(), com.arcle.rmt.superwaba.vc.DocumentWindowController.cmdDeleteDocument(), com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.doNewElement(), com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getController(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.handleMenuEvent().

void com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onPanelSwitched  )  [protected]
 

Notifies the newly-activated panel to update its data from the model.

Definition at line 174 of file AbstractDocumentWindow.java.

References com.arcle.rmt.superwaba.vc.ElementList.modelUpdated().


Member Data Documentation

DocumentWindowController com.arcle.rmt.superwaba.vc.AbstractDocumentWindow._controller [private]
 

The Controller of this object.

Definition at line 259 of file AbstractDocumentWindow.java.

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.AbstractDocumentWindow(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getController().

Button com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnClose [private]
 

The "Close" button.

Definition at line 270 of file AbstractDocumentWindow.java.

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getCommandButtons(), com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initChildren(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onEvent().

Button com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnDelete [private]
 

The "Delete" button.

Definition at line 275 of file AbstractDocumentWindow.java.

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getCommandButtons(), com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initChildren(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onEvent().

Button com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.btnNew [private]
 

The "New" button.

Definition at line 265 of file AbstractDocumentWindow.java.

Referenced by com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.getCommandButtons(), com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.initChildren(), and com.arcle.rmt.superwaba.vc.AbstractDocumentWindow.onEvent().


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