|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface TextRange
A text range defines the offset into, length of, and line of a piece of text.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
This interface is not intended to be implemented by clients.
| Nested Class Summary | |
|---|---|
static class |
TextRange.Empty
Empty implementation of text range. |
| Method Summary | |
|---|---|
TextRange |
buildTextRange(int offset,
int length,
int lineNumber)
Build and return a new text range for the specified values if they differ from the text range. |
boolean |
equals(Object obj)
Return whether the offsets, lengths, and line numbers are the same. |
int |
getLength()
Return the length of the text. |
int |
getLineNumber()
Return the line number of the text. |
int |
getOffset()
Return the offset of the text. |
int |
hashCode()
Return a hash code that corresponds to the Object.equals(Object)
contract. |
boolean |
includes(int index)
Return whether the range includes the character at the specified index. |
boolean |
touches(int index)
Return whether the range touches an insertion cursor at the specified index. |
| Method Detail |
|---|
int getOffset()
int getLength()
boolean includes(int index)
boolean touches(int index)
int getLineNumber()
TextRange buildTextRange(int offset,
int length,
int lineNumber)
boolean equals(Object obj)
equals in class Objectint hashCode()
Object.equals(Object)
contract.
hashCode in class Object
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||