Package com.ibm.icu.dev.demo.impl
Class Selection
- java.lang.Object
-
- com.ibm.icu.dev.demo.impl.Selection
-
public final class Selection extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
anchor
int
caret
boolean
clickAfter
-
Constructor Summary
Constructors Constructor Description Selection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
void
expand(java.text.BreakIterator breaker)
Selection
fixAfterReplace(int start, int end, int len)
int
getEnd()
int
getStart()
boolean
isCaret()
boolean
isLessThan(Selection other)
static int
next(int position, java.text.BreakIterator breaker, int direction, boolean different)
Selection
nextBound(java.text.BreakIterator breaker, int direction, boolean extend)
Selection
pin(java.lang.String text)
Selection
set(int anchor, int caret, boolean clickAfter)
Selection
set(Selection other)
Selection
swap(Selection after)
-
-
-
Method Detail
-
getStart
public int getStart()
-
getEnd
public int getEnd()
-
isCaret
public boolean isCaret()
-
set
public Selection set(int anchor, int caret, boolean clickAfter)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
isLessThan
public boolean isLessThan(Selection other)
-
pin
public Selection pin(java.lang.String text)
-
fixAfterReplace
public Selection fixAfterReplace(int start, int end, int len)
-
nextBound
public Selection nextBound(java.text.BreakIterator breaker, int direction, boolean extend)
-
expand
public void expand(java.text.BreakIterator breaker)
-
next
public static int next(int position, java.text.BreakIterator breaker, int direction, boolean different)
-
-