Package diva.gui.tutorial
Class TextView
- java.lang.Object
-
- diva.gui.AbstractView
-
- diva.gui.tutorial.TextView
-
- All Implemented Interfaces:
View
public class TextView extends AbstractView
A simple MDI text editor view. FIXME- Version:
- $Id$
- Author:
- Michael Shilman
-
-
Constructor Summary
Constructors Constructor Description TextView(TextDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent
getComponent()
Return the component that implements the display of this view.java.lang.String
getShortTitle()
Get the short title of this document.TextDocument
getTextDocument()
java.lang.String
getTitle()
Get the title of this document-
Methods inherited from class diva.gui.AbstractView
close, copy, cut, getDocument, paste
-
-
-
-
Constructor Detail
-
TextView
public TextView(TextDocument doc)
-
-
Method Detail
-
getTextDocument
public TextDocument getTextDocument()
-
getComponent
public javax.swing.JComponent getComponent()
Description copied from class:AbstractView
Return the component that implements the display of this view. The returned object should be a unique object that corresponds to this view.- Specified by:
getComponent
in interfaceView
- Specified by:
getComponent
in classAbstractView
-
getTitle
public java.lang.String getTitle()
Description copied from class:AbstractView
Get the title of this document- Specified by:
getTitle
in interfaceView
- Specified by:
getTitle
in classAbstractView
-
getShortTitle
public java.lang.String getShortTitle()
Description copied from class:AbstractView
Get the short title of this document. The short title is used in situations where the regular title is likely to be too long, such as iconified windows, menus, and so on.- Specified by:
getShortTitle
in interfaceView
- Specified by:
getShortTitle
in classAbstractView
-
-