public abstract class AbstractView extends Object implements View
Constructor and Description |
---|
AbstractView(Document doc)
Construct a view of the given document.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the view.
|
void |
copy(Clipboard c)
Get the currently selected objects from this view, if any,
and place them on the given clipboard.
|
void |
cut(Clipboard c)
Remove the currently selected objects from this view, if any,
and place them on the given clipboard.
|
abstract JComponent |
getComponent()
Return the component that implements the display of this view.
|
Document |
getDocument()
Get the document that this view is viewing.
|
abstract String |
getShortTitle()
Get the short title of this document.
|
abstract String |
getTitle()
Get the title of this document
|
void |
paste(Clipboard c)
Clone the objects currently on the clipboard, if any, and
place them in the given view.
|
public AbstractView(Document doc)
public void close() throws Exception
public void copy(Clipboard c)
public void cut(Clipboard c)
public abstract JComponent getComponent()
getComponent
in interface View
public Document getDocument()
getDocument
in interface View
public abstract String getTitle()
public abstract String getShortTitle()
getShortTitle
in interface View
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.