diva.gui.tutorial
Class TextView

java.lang.Object
  extended by diva.gui.AbstractView
      extended by diva.gui.tutorial.TextView
All Implemented Interfaces:
View

public class TextView
extends AbstractView

A simple MDI text editor view. FIXME

Version:
$Id: TextView.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman

Field Summary
private  javax.swing.JEditorPane _editorPane
           
private  javax.swing.JScrollPane _scrollPane
           
 
Constructor Summary
TextView(TextDocument doc)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_editorPane

private javax.swing.JEditorPane _editorPane

_scrollPane

private javax.swing.JScrollPane _scrollPane
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 interface View
Specified by:
getComponent in class AbstractView

getTitle

public java.lang.String getTitle()
Description copied from class: AbstractView
Get the title of this document

Specified by:
getTitle in interface View
Specified by:
getTitle in class AbstractView

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 interface View
Specified by:
getShortTitle in class AbstractView