ice.pilots.html4
Interface HighlightListener

All Known Implementing Classes:
ice.pilots.html4.CSSBox

public interface HighlightListener

There may be multiple non-contiguous highilight areas. A highlight area may be used to visually indicate important spans of text, such as found search terms. Highlighted text is not connected to the clipboard or other selection mechanisms.

Since:
6.1

Method Summary
 void clearHighlights()
          Clear all highlight ranges on a given node.
 void highlightArea(int startPosition, int endPosition)
          Define a highlight range on a given node.
 

Method Detail

highlightArea

public void highlightArea(int startPosition,
                          int endPosition)
Define a highlight range on a given node. Each node should be capable of accepting multiple highlight regions.

Parameters:
startPosition - Starting character offset for highlight range, or zero.
endPosition - Ending character offset for highlight range, or zero.

clearHighlights

public void clearHighlights()
Clear all highlight ranges on a given node. Currently, I don't quite see the need to identify and clear each highlight range independently.