sk.uniba.euromath.editor.selections
Interface IDOMSelectionProvider

All Known Subinterfaces:
IXMLGraphicalViewer
All Known Implementing Classes:
EditorSite, ScrollingTextGraphicalViewer, TextEditor, TextGraphicalViewerImpl, 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.
 sk.baka.ikslibs.interval.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(sk.baka.ikslibs.interval.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

sk.baka.ikslibs.interval.DOMIntervalSet getDOMSelection()
Returns copy of the current selection of provider.

Returns:
the current selection

removeSelectionChangedListener

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

Parameters:
listener - a DOM selection changed listener

setSelection

void setSelection(sk.baka.ikslibs.interval.DOMIntervalSet selection)
Sets new selection for this selection provider.

Parameters:
selection - the new XML selection


Copyright © 2003-2006 null. All Rights Reserved.