sk.uniba.euromath.editor.selections
Interface IDOMSelectionProvider

All Known Subinterfaces:
IXMLGraphicalViewer
All Known Implementing Classes:
EditorSite, TextEditor, TextGraphicalViewerImpl, TextScrollingGraphicalViewer, XMLEditor, XMLGraphicalViewerImpl, XMLOutlinePage, XMLScrollingGraphicalViewer

public interface IDOMSelectionProvider

Interface common to all classes that provide a selection over xml document. Selection is coded in DOMIntervalSet.


Method Summary
 void addSelectionChangedListener(IDOMSelectionChangedListener listener)
          Adds a listener for selection changes in this selection provider.
 DOMIntervalSet getDOMSelection()
          Returns copy of the current selection of provider.
 void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
          Removes the given selection change listener from this selection provider.
 void setSelection(DOMIntervalSet selection)
          Sets new selection for this selection provider.
 

Method Detail

addSelectionChangedListener

void addSelectionChangedListener(IDOMSelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.

Parameters:
listener - a DOM selection changed listener

getDOMSelection

DOMIntervalSet getDOMSelection()
Returns copy of the current selection of provider.

Returns:
the current selection by copy

removeSelectionChangedListener

void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
Removes the given selection change listener from this selection provider. Has no affect if listener is not registered.

Parameters:
listener - a DOM selection changed listener

setSelection

void setSelection(DOMIntervalSet selection)
Sets new selection for this selection provider.

Parameters:
selection - the new XML selection


Copyright © 2003-2006 null. All Rights Reserved.