com.l2fprod.common.application.document
Class TabbedWorkspace

java.lang.Object
  extended by com.l2fprod.common.application.document.AbstractWorkspace
      extended by com.l2fprod.common.application.document.TabbedWorkspace
All Implemented Interfaces:
Workspace

public class TabbedWorkspace
extends AbstractWorkspace

A workspace which shows VisualWorkspaceDocuments in tabs.


Constructor Summary
TabbedWorkspace()
           
 
Method Summary
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.
 java.awt.Component getVisualComponent()
           
 void setSelected(WorkspaceDocument document)
          Selects the given document in the workspace.
 
Methods inherited from class com.l2fprod.common.application.document.AbstractWorkspace
close, getDocuments, getSelected, open, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabbedWorkspace

public TabbedWorkspace()
Method Detail

getVisualComponent

public java.awt.Component getVisualComponent()

setSelected

public void setSelected(WorkspaceDocument document)
                 throws java.beans.PropertyVetoException
Description copied from interface: Workspace
Selects the given document in the workspace. The document must belong to this workspace otherwise an IllegalArgumentException will be thrown.

Specified by:
setSelected in interface Workspace
Overrides:
setSelected in class AbstractWorkspace
Throws:
java.beans.PropertyVetoException - if the previously selected document prevents another document from being selected

documentOpened

protected void documentOpened(WorkspaceDocument document)
Description copied from class: AbstractWorkspace
Called once the document has been opened in this workspace. Subclasses will react by making the document visible to the user.

Overrides:
documentOpened in class AbstractWorkspace

documentClosed

protected void documentClosed(WorkspaceDocument document)
Description copied from class: AbstractWorkspace
Called once the document has been closed. Subclasses will react by hiding the document.

Overrides:
documentClosed in class AbstractWorkspace

documentChanged

protected void documentChanged(WorkspaceDocument document,
                               java.beans.PropertyChangeEvent event)
Description copied from class: AbstractWorkspace
Called whenever a property is changed in the Document

Overrides:
documentChanged in class AbstractWorkspace