JHotDraw 7.0.9

org.jhotdraw.application
Interface ApplicationModel

All Known Implementing Classes:
DefaultApplicationModel

public interface ApplicationModel

ApplicationModel.

Version:
1.0 June 10, 2006 Created.
Author:
Werner Randelshofer.

Method Summary
 java.util.List<javax.swing.JMenu> createMenus(DocumentOrientedApplication a, DocumentView p)
          Creates menus.
 DocumentView createProject()
          Creates a new documentView for the application.
 java.util.List<javax.swing.JToolBar> createToolBars(DocumentOrientedApplication a, DocumentView p)
          Creates tool bars.
 javax.swing.Action getAction(java.lang.String id)
          Returns the action with the specified id.
 java.lang.String getCopyright()
          Returns the copyright of the application.
 java.lang.String getName()
          Returns the name of the application.
 java.lang.String getVersion()
          Returns the version of the application.
 void initApplication(DocumentOrientedApplication a)
           
 void initProject(DocumentOrientedApplication a, DocumentView p)
           
 void putAction(java.lang.String id, javax.swing.Action action)
          Puts an action with the specified id.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the application.


getVersion

java.lang.String getVersion()
Returns the version of the application.


getCopyright

java.lang.String getCopyright()
Returns the copyright of the application.


createProject

DocumentView createProject()
Creates a new documentView for the application.


initProject

void initProject(DocumentOrientedApplication a,
                 DocumentView p)

initApplication

void initApplication(DocumentOrientedApplication a)

putAction

void putAction(java.lang.String id,
               javax.swing.Action action)
Puts an action with the specified id.


getAction

javax.swing.Action getAction(java.lang.String id)
Returns the action with the specified id.


createToolBars

java.util.List<javax.swing.JToolBar> createToolBars(DocumentOrientedApplication a,
                                                    DocumentView p)
Creates tool bars.

Depending on the document interface of the application, this method may be invoked only once for the application, or for each opened documentView.

Parameters:
a - DocumentOrientedApplication.
p - The documentView for which the toolbars need to be created, or null if the toolbar needs to be shared with multiple projects.

createMenus

java.util.List<javax.swing.JMenu> createMenus(DocumentOrientedApplication a,
                                              DocumentView p)
Creates menus.

Depending on the document interface of the application, this method may be invoked only once for the application, or for each opened documentView.

Parameters:
a - DocumentOrientedApplication.
p - The documentView for which the toolbars need to be created, or null if the toolbar needs to be shared with multiple projects.

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.