|
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
org.jhotdraw.app.DefaultMDIApplication
public class DefaultMDIApplication
A DefaultMDIApplication can handle the life cycle of multiple document windows each being presented in a JInternalFrame of its own. A parent JFrame provides all the functionality needed to work with documents, such as a menu bar, tool bars and palette windows.
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.app.AbstractApplication |
|---|
labels |
| Fields inherited from class org.jhotdraw.beans.AbstractBean |
|---|
propertySupport |
| Constructor Summary | |
|---|---|
DefaultMDIApplication()
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected void |
addStandardActionsTo(javax.swing.JToolBar tb)
|
protected javax.swing.JMenuBar |
createMenuBar()
Creates a menu bar. |
java.awt.Component |
getComponent()
Returns the application component. |
Project |
getCurrentProject()
Returns the current project. |
void |
hide(Project p)
Hides a project. |
void |
init()
Initializes the application. |
protected void |
initApplicationActions()
|
protected void |
initLookAndFeel()
|
protected void |
initProjectActions(Project p)
|
boolean |
isSharingToolsAmongProjects()
Returns true, if this application shares tools among multiple projects. |
void |
launch(java.lang.String[] args)
Launches the application from the main method. |
void |
setCurrentProject(Project newValue)
|
void |
show(Project p)
Shows a project. |
protected java.awt.Component |
wrapDesktopPane(java.awt.Component c,
java.util.LinkedList<javax.swing.Action> toolBarActions)
Returns the wrapped desktop pane. |
| Methods inherited from class org.jhotdraw.app.AbstractApplication |
|---|
add, addRecentFile, basicCreateProject, clearRecentFiles, configure, createContainer, createProject, dispose, getCopyright, getModel, getName, getVersion, initLabels, isEnabled, projects, recentFiles, remove, setEnabled, setModel, start, stop |
| 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, removePropertyChangeListener |
| Constructor Detail |
|---|
public DefaultMDIApplication()
| Method Detail |
|---|
protected void initApplicationActions()
protected void initProjectActions(Project p)
initProjectActions in class AbstractApplicationpublic void launch(java.lang.String[] args)
Application
launch in interface Applicationlaunch in class AbstractApplicationpublic void init()
Applicationconfigure() should have been invoked before the application
is inited. Alternatively an application can be configured using setter
methods.
init in interface Applicationinit in class AbstractApplicationprotected void initLookAndFeel()
public void show(Project p)
Application
public void hide(Project p)
Application
public Project getCurrentProject()
ApplicationThis is a bound property.
public void setCurrentProject(Project newValue)
public boolean isSharingToolsAmongProjects()
Application
public java.awt.Component getComponent()
Application
protected java.awt.Component wrapDesktopPane(java.awt.Component c,
java.util.LinkedList<javax.swing.Action> toolBarActions)
protected void addStandardActionsTo(javax.swing.JToolBar tb)
protected javax.swing.JMenuBar createMenuBar()
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||