com.glaivestone.mv
Class FrameWindowApplicationModel

java.lang.Object
  |
  +--com.glaivestone.javax.util.EventManager
        |
        +--com.glaivestone.mv.ApplicationModel
              |
              +--com.glaivestone.mv.FrameWindowApplicationModel
Direct Known Subclasses:
BasicTextWindow

public class FrameWindowApplicationModel
extends ApplicationModel

An application model which supports frame window views.

Frame windows usually have a title bar containing a title reflecting the application name and the application subject (e.g., a document or other content stored in a backing file), along with an icon representing the application.

Applications which operate on subject content should provide a description of the current subject. The subject description should be updated whenever the subject is changed. Applications which operate on a fixed subject need not (and perhaps should not) provide a subject description.

Author:
Deb Lewis

Constructor Summary
FrameWindowApplicationModel()
          Creates a new application model.
FrameWindowApplicationModel(java.lang.String title)
          Creates a new application model with the specified title.
FrameWindowApplicationModel(java.lang.String title, java.lang.String subjectDescription)
          Creates a new application model with the specified title and subject.
 
Method Summary
 java.net.URL getIconReference()
          Answer a reference to the icon for this application.
 StringHolder getSubjectDescriptionHolder()
          Answer the model containing the description of the application subject.
 java.lang.String getTitle()
          Answer the title of this application.
 
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

FrameWindowApplicationModel

public FrameWindowApplicationModel()
Creates a new application model.


FrameWindowApplicationModel

public FrameWindowApplicationModel(java.lang.String title)
Creates a new application model with the specified title. No subject is supported.


FrameWindowApplicationModel

public FrameWindowApplicationModel(java.lang.String title,
                                   java.lang.String subjectDescription)
Creates a new application model with the specified title and subject.

Applications which do not support a subject should specify NO_SUBJECT. Applications which support a subject but are initially empty should specify EMPTY_SUBJECT.

Method Detail

getIconReference

public java.net.URL getIconReference()
Answer a reference to the icon for this application. Returns null if the application has no point of view on this matter.

Generally used in the window titlebar of the view.


getTitle

public java.lang.String getTitle()
Answer the title of this application.

May be used in the window title of the view.


getSubjectDescriptionHolder

public StringHolder getSubjectDescriptionHolder()
Answer the model containing the description of the application subject. Returns null if the application does not manipulate changeable subjects.

May be used in the window title of the view.


GFL 1.1 API