Oxygen XML Editor, Version ${standalone-version-number}

ro.sync.exml.plugin.selection
Class SelectionPluginContextImpl

java.lang.Object
  extended by ro.sync.exml.plugin.selection.SelectionPluginContextImpl
All Implemented Interfaces:
SelectionPluginContext

public class SelectionPluginContextImpl
extends Object
implements SelectionPluginContext

Support implementation of the PluginContext interface.

Version:
$Revision: 1.6 $

Field Summary
protected  String selection
          The current selection.
 
Constructor Summary
SelectionPluginContextImpl()
          Creates a no selection plugin context.
SelectionPluginContextImpl(String selection, Frame frame, URL documentURL)
          Creates the plugin context.
 
Method Summary
 URL getDocumentURL()
          Get the URL of the edited document.
 Frame getFrame()
          Gets the frame for the PluginContextImpl.
 String getSelection()
          Get the current selection.
 void setDocumentURL(URL documentURL)
          Set the URL of the edited document.
 void setFrame(Frame frame)
          Sets the parent frame for the PluginContextImpl.
 void setSelection(String selection)
          Set the current selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selection

protected String selection
The current selection.

Constructor Detail

SelectionPluginContextImpl

public SelectionPluginContextImpl()
Creates a no selection plugin context.


SelectionPluginContextImpl

public SelectionPluginContextImpl(String selection,
                                  Frame frame,
                                  URL documentURL)
Creates the plugin context.

Parameters:
selection - The current selection string.
frame - The parent frame for the swing components.
documentURL - The URL of the edited document.
Method Detail

setSelection

public void setSelection(String selection)
Set the current selection.

Parameters:
selection - The current selection.

setFrame

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

Parameters:
frame - The new frame value.

setDocumentURL

public void setDocumentURL(URL documentURL)
Set the URL of the edited document.

Parameters:
documentURL - The URL of the edited document.

getSelection

public String getSelection()
Get the current selection.

Specified by:
getSelection in interface SelectionPluginContext
Returns:
The current selection.

getFrame

public Frame getFrame()
Gets the frame for the PluginContextImpl.

Specified by:
getFrame in interface SelectionPluginContext
Returns:
The frame value.

getDocumentURL

public URL getDocumentURL()
Description copied from interface: SelectionPluginContext
Get the URL of the edited document.

Specified by:
getDocumentURL in interface SelectionPluginContext
Returns:
The URL of the edited document.
See Also:
SelectionPluginContext.getDocumentURL()

Oxygen XML Editor, Version ${standalone-version-number}

© Copyright Syncro Soft SRL 2002 - 2010.