Oxygen XML Editor, Version 14.2

ro.sync.exml.plugin.document
Class DocumentPluginContextImpl

java.lang.Object
  extended by ro.sync.exml.plugin.document.DocumentPluginContextImpl
All Implemented Interfaces:
DocumentPluginContext

public class DocumentPluginContextImpl
extends java.lang.Object
implements DocumentPluginContext

Support implementation of the PluginContext interface.


Field Summary
protected  javax.swing.text.Document document
          The current document.
protected  java.awt.Frame frame
          The parent frame.
 
Constructor Summary
DocumentPluginContextImpl()
          Constructor for an DocumentPluginContext with no document.
DocumentPluginContextImpl(javax.swing.text.Document document, java.awt.Frame frame, StandalonePluginWorkspace wsAccess)
          Creates the plugin context.
 
Method Summary
 javax.swing.text.Document getDocument()
          Get the current document.
 java.awt.Frame getFrame()
          Get the frame for the DocumentPluginContextImpl.
 StandalonePluginWorkspace getPluginWorkspace()
          Get access to the entire workspace of Oxygen.
 void setDocument(javax.swing.text.Document document)
          Set the current document.
 void setFrame(java.awt.Frame frame)
          Sets the parent frame for the PluginContextImpl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected javax.swing.text.Document document
The current document.


frame

protected java.awt.Frame frame
The parent frame.

Constructor Detail

DocumentPluginContextImpl

public DocumentPluginContextImpl()
Constructor for an DocumentPluginContext with no document.


DocumentPluginContextImpl

public DocumentPluginContextImpl(javax.swing.text.Document document,
                                 java.awt.Frame frame,
                                 StandalonePluginWorkspace wsAccess)
Creates the plugin context.

Parameters:
document - The current document.
frame - The parent frame for the swing components.
wsAccess - Access to Oxygen's workspace
Method Detail

setDocument

public void setDocument(javax.swing.text.Document document)
Set the current document.

Parameters:
document - The document to be set.

setFrame

public void setFrame(java.awt.Frame frame)
Sets the parent frame for the PluginContextImpl.

Parameters:
frame - The new frame value.

getDocument

public javax.swing.text.Document getDocument()
Get the current document.

Specified by:
getDocument in interface DocumentPluginContext
Returns:
the current document.

getFrame

public java.awt.Frame getFrame()
Get the frame for the DocumentPluginContextImpl.

Specified by:
getFrame in interface DocumentPluginContext
Returns:
the current frame.

getPluginWorkspace

public StandalonePluginWorkspace getPluginWorkspace()
Description copied from interface: DocumentPluginContext
Get access to the entire workspace of Oxygen.

Specified by:
getPluginWorkspace in interface DocumentPluginContext
Returns:
The access to the entire workspace of Oxygen
See Also:
DocumentPluginContext.getPluginWorkspace()

Oxygen XML Editor, Version 14.2

© Copyright Syncro Soft SRL 2002 - 2013. All rights reserved.