|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jhotdraw.beans.AbstractBean
org.jhotdraw.app.AbstractApplication
public abstract class AbstractApplication
AbstractApplication.
| Field Summary | |
|---|---|
protected ResourceBundleUtil |
labels
|
| Fields inherited from class org.jhotdraw.beans.AbstractBean |
|---|
propertySupport |
| Constructor Summary | |
|---|---|
AbstractApplication()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(Project p)
Adds a project to this application. |
void |
addRecentFile(java.io.File file)
Appends a file to the list of recent files. |
protected Project |
basicCreateProject()
|
void |
clearRecentFiles()
Clears the list of recent files. |
void |
configure(java.lang.String[] args)
Configures the application using the provided arguments array. |
java.awt.Container |
createContainer()
|
Project |
createProject()
Creates a new project for this application. |
void |
dispose(Project p)
This is a convenience method for removing a project and disposing it. |
java.lang.String |
getCopyright()
Returns the copyright of the application. |
ApplicationModel |
getModel()
Returns the application model. |
java.lang.String |
getName()
Returns the name of the application. |
java.lang.String |
getVersion()
Returns the version of the application. |
void |
init()
Initializes the application. |
protected void |
initLabels()
|
protected abstract void |
initProjectActions(Project p)
|
boolean |
isEnabled()
Returns the enabled state of the application. |
void |
launch(java.lang.String[] args)
Launches the application from the main method. |
java.util.Collection<Project> |
projects()
Returns a read only collection view of the projects of this application. |
java.util.List<java.io.File> |
recentFiles()
Returns the recently opened files. |
void |
remove(Project p)
Removes a project from this application and removes it from the users view. |
void |
setEnabled(boolean newValue)
Sets the enabled state of the application. |
void |
setModel(ApplicationModel newValue)
Sets the application model. |
void |
start()
Starts the application. |
void |
stop()
Stops the application without saving any unsaved projects. |
| Methods inherited from class org.jhotdraw.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.app.Application |
|---|
addPropertyChangeListener, getComponent, getCurrentProject, hide, isSharingToolsAmongProjects, removePropertyChangeListener, show |
| Field Detail |
|---|
protected ResourceBundleUtil labels
| Constructor Detail |
|---|
public AbstractApplication()
| Method Detail |
|---|
public void init()
Applicationconfigure() should have been invoked before the application
is inited. Alternatively an application can be configured using setter
methods.
init in interface Applicationpublic void start()
Applicationinit() must have been invoked before the application is started.
start in interface Applicationpublic final Project createProject()
Application
createProject in interface Applicationpublic void setModel(ApplicationModel newValue)
Application
setModel in interface Applicationpublic ApplicationModel getModel()
Application
getModel in interface Applicationprotected Project basicCreateProject()
public java.lang.String getName()
Application
getName in interface Applicationpublic java.lang.String getVersion()
Application
getVersion in interface Applicationpublic java.lang.String getCopyright()
Application
getCopyright in interface Applicationprotected abstract void initProjectActions(Project p)
public void stop()
Applicationinit() must have been invoked before the application is stopped.
stop in interface Applicationpublic void remove(Project p)
Application
remove in interface Applicationpublic void add(Project p)
Application
add in interface Applicationpublic void dispose(Project p)
Application
dispose in interface Applicationpublic java.util.Collection<Project> projects()
Application
projects in interface Applicationpublic boolean isEnabled()
Application
isEnabled in interface Applicationpublic void setEnabled(boolean newValue)
Application
setEnabled in interface Applicationpublic java.awt.Container createContainer()
public void launch(java.lang.String[] args)
Application
launch in interface Applicationprotected void initLabels()
public void configure(java.lang.String[] args)
Application
configure in interface Applicationpublic java.util.List<java.io.File> recentFiles()
Application
recentFiles in interface Applicationpublic void clearRecentFiles()
Application
clearRecentFiles in interface Applicationpublic void addRecentFile(java.io.File file)
Application
addRecentFile in interface Application
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||