|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.gui.tutorial.AbstractApplication
diva.gui.tutorial.ApplicationTutorial
public class ApplicationTutorial
A simple text editor. This application implements a very simple mapping between view and documents. There is only one view. Documents that are not currently being viewed are hidden and not available until the currently viewed document is closed. When a new document is to be viewed, the single view is associated with that document and its contents updated.
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 Summary | |
---|---|
ApplicationTutorial(AppContext context)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationTutorial(AppContext context)
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |