com.glaivestone.mv
Class DialogApplicationModel

java.lang.Object
  |
  +--com.glaivestone.javax.util.EventManager
        |
        +--com.glaivestone.mv.ApplicationModel
              |
              +--com.glaivestone.mv.DialogApplicationModel

public class DialogApplicationModel
extends ApplicationModel

An application model which supports dialog views.

A dialog view is a secondary window, usually modal, which is opened from a main window to provide supporting processing for the main application. Dialog windows usually have a title bar containing a standard title; the icon is usually derived from the main window, rather than configured by the dialog.

Subclass Responsibilities

Dialogs frequently are invoked to obtain information from the user. Subclasses which implement dialogs whose purpose is to obtain information should reimplement the clearResult method to clear any state which represents the information that is to be returned and implement a suitably-typed getResult or equivalent service(s) to allow the dialog client to access the information obtained by the dialog.

Author:
Deb Lewis

Constructor Summary
DialogApplicationModel()
          Create a new application model.
DialogApplicationModel(java.awt.Window aWindow)
          Create a new application model on behalf of the client window.
 
Method Summary
 void clearResult()
          Clear the result to be returned by the dialog.
 java.awt.Window getClient()
          Answer the client on whose behalf this dialog was invoked.
 void setClient(java.awt.Window aWindow)
          Specify the client on whose behalf this dialog was invoked.
 
Methods inherited from class com.glaivestone.mv.ApplicationModel
closeWindow, getAllViews, getAllViews, getAllViews, getView, getWindow, openWindow, openWindow, requestCloseWindow, resolveResourceReference
 
Methods inherited from class com.glaivestone.javax.util.EventManager
addFirstListener, addListener, getEventTable, getEventTableForEdit, getListeners, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogApplicationModel

public DialogApplicationModel()
Create a new application model.


DialogApplicationModel

public DialogApplicationModel(java.awt.Window aWindow)
Create a new application model on behalf of the client window.

Method Detail

clearResult

public void clearResult()
Clear the result to be returned by the dialog.

Should usually be reimplemented by subclasses.


getClient

public java.awt.Window getClient()
Answer the client on whose behalf this dialog was invoked.


setClient

public void setClient(java.awt.Window aWindow)
Specify the client on whose behalf this dialog was invoked.


GFL 1.1 API