|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiva.gui.AbstractView
public abstract class AbstractView
An abstract implementation of the View interface that consists of mostly empty methods to be filled in by concrete subclasses.
| Red |
| Field Summary | |
|---|---|
private Document |
_document
The document being viewed. |
| Constructor Summary | |
|---|---|
AbstractView(Document doc)
Construct a view of the given document. |
|
| Method Summary | |
|---|---|
void |
close()
Close the view. |
void |
copy(java.awt.datatransfer.Clipboard c)
Get the currently selected objects from this view, if any, and place them on the given clipboard. |
void |
cut(java.awt.datatransfer.Clipboard c)
Remove the currently selected objects from this view, if any, and place them on the given clipboard. |
abstract javax.swing.JComponent |
getComponent()
Return the component that implements the display of this view. |
Document |
getDocument()
Get the document that this view is viewing. |
abstract java.lang.String |
getShortTitle()
Get the short title of this document. |
abstract java.lang.String |
getTitle()
Get the title of this document |
void |
paste(java.awt.datatransfer.Clipboard c)
Clone the objects currently on the clipboard, if any, and place them in the given view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Document _document
| Constructor Detail |
|---|
public AbstractView(Document doc)
| Method Detail |
|---|
public void close()
throws java.lang.Exception
close in interface Viewjava.lang.Exception - If the close operation fails.public void copy(java.awt.datatransfer.Clipboard c)
copy in interface Viewpublic void cut(java.awt.datatransfer.Clipboard c)
cut in interface Viewpublic abstract javax.swing.JComponent getComponent()
getComponent in interface Viewpublic Document getDocument()
getDocument in interface Viewpublic abstract java.lang.String getTitle()
getTitle in interface Viewpublic abstract java.lang.String getShortTitle()
getShortTitle in interface Viewpublic void paste(java.awt.datatransfer.Clipboard c)
paste in interface View
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||