Interface ISelectableRegionControl
-
public interface ISelectableRegionControl
A duck interface for controls that can select a specific range according to SWT range selection semantics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setSelection(int start, int end)
Sets the selection to the range specified by the given start and end indices.
-
-
-
Method Detail
-
setSelection
void setSelection(int start, int end)
Sets the selection to the range specified by the given start and end indices.Indexing is zero based. The range of a selection is from 0..N where N is the number of characters in the widget.
Text selections are specified in terms of caret positions. In a text widget that contains N characters, there are N+1 caret positions, ranging from 0..N. This differs from other functions that address character position such as getText () that use the usual array indexing rules.
- Parameters:
start
- the start of the rangeend
- the end of the range- Throws:
org.eclipse.swt.SWTException
-- ERROR_WIDGET_DISPOSED - if the receiver has been disposed
- ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
-
-