public class ApplicationTutorial extends AbstractApplication
This kind of architecture is enough for simple applications that contain few documents (or more likely, only one document). For applications that require simultaneous editing of several documents, an MDI interface makes more sense. See MDIApplicationTutorial for an instance of the same application implemented in an MDI style.
Constructor and Description |
---|
ApplicationTutorial(AppContext context) |
Modifier and Type | Method and Description |
---|---|
View |
createView(Document d)
Return a view of this document.
|
java.lang.String |
getTitle()
Get the title of this application
|
void |
initializeApp()
Initialize the application.
|
void |
initializeMenuBar(javax.swing.JMenuBar menuBar)
Initialize the menu bar
|
void |
initializeToolBar(javax.swing.JToolBar tb)
Initialize the given toolbar.
|
static void |
main(java.lang.String[] argv)
Construct a new instance of the Tutorial, running in a new
application context.
|
actions, addAction, addDocument, addDocumentListener, addMenuItem, addMenuItem, addPropertyChangeListener, addToolBarButton, addToolBarButton, addView, addViewListener, closeDocument, closeView, documentList, getAction, getAppContext, getClipboard, getCurrentView, getDocumentFactory, getResources, getStoragePolicy, isVisible, removeDocument, removeDocumentListener, removePropertyChangeListener, removeView, removeViewListener, setAppContext, setClipboard, setCurrentView, setDocumentFactory, setStoragePolicy, setVisible, showError, viewList, viewList
public ApplicationTutorial(AppContext context)
public static void main(java.lang.String[] argv)
public View createView(Document d)
createView
in interface Application
createView
in class AbstractApplication
public java.lang.String getTitle()
getTitle
in interface Application
getTitle
in class AbstractApplication
public void initializeApp()
public void initializeMenuBar(javax.swing.JMenuBar menuBar)
public void initializeToolBar(javax.swing.JToolBar tb)