|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.l2fprod.common.application.document.AbstractWorkspace
public class AbstractWorkspace
Base implementation for a Workspace.
Constructor Summary | |
---|---|
AbstractWorkspace()
|
Method Summary | |
---|---|
void |
close(WorkspaceDocument document)
Closes the given document. |
protected void |
documentChanged(WorkspaceDocument document,
java.beans.PropertyChangeEvent event)
Called whenever a property is changed in the Document |
protected void |
documentClosed(WorkspaceDocument document)
Called once the document has been closed. |
protected void |
documentOpened(WorkspaceDocument document)
Called once the document has been opened in this workspace. |
WorkspaceDocument[] |
getDocuments()
Gets all documents hosted in this workspace. |
WorkspaceDocument |
getSelected()
Gets the currently selected document. |
void |
open(WorkspaceDocument document)
Opens the given document in this workspace. |
void |
save(WorkspaceDocument document)
Saves the given document. |
void |
setSelected(WorkspaceDocument document)
Selects the given document in the workspace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractWorkspace()
Method Detail |
---|
public void setSelected(WorkspaceDocument document) throws java.beans.PropertyVetoException
Workspace
setSelected
in interface Workspace
java.beans.PropertyVetoException
- if the previously selected document
prevents another document from being selectedpublic final WorkspaceDocument getSelected()
Workspace
getSelected
in interface Workspace
public final WorkspaceDocument[] getDocuments()
Workspace
getDocuments
in interface Workspace
public final void open(WorkspaceDocument document)
Workspace
open
in interface Workspace
protected void documentOpened(WorkspaceDocument document)
document
- protected void documentChanged(WorkspaceDocument document, java.beans.PropertyChangeEvent event)
protected void documentClosed(WorkspaceDocument document)
document
- public void close(WorkspaceDocument document) throws java.beans.PropertyVetoException
Workspace
close
in interface Workspace
java.beans.PropertyVetoException
- if one of the listeners prevented
the document to be closedpublic void save(WorkspaceDocument document)
Workspace
save
in interface Workspace
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |