public abstract class TextEntryMask extends Object
| Constructor and Description |
|---|
TextEntryMask() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Integer |
getCodePoint(String text,
int codePoint,
int position)
Considering some text and a code point that is being inserted at a given position, return the code point to actually insert or null if the insertion is not allowed.
|
protected abstract int |
getDefaultCodePoint(int position)
Get the code point to use at a specific position when there is no user input.
|
protected abstract int |
getLength()
Get the length of this mask.
|
protected abstract int |
getNextValidInputPosition(int position)
Get the next valid input position that is the same or after the specified postion.
|
protected abstract Integer getCodePoint(String text, int codePoint, int position)
text - the text in which the insertion will occur.codePoint - the code point that is being inserted.position - the position at which the code point is inserted.protected abstract int getLength()
protected abstract int getDefaultCodePoint(int position)
position - the position for which to get the code point.protected abstract int getNextValidInputPosition(int position)
position - the reference position to get the next valid one.Copyright © 2019. All rights reserved.