public class PatternTextEntryMask extends TextEntryMask
| Constructor and Description |
|---|
PatternTextEntryMask(String pattern) |
PatternTextEntryMask(String pattern,
int defaultChar) |
| Modifier and Type | Method and Description |
|---|---|
protected 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 int |
getDefaultCodePoint(int position)
Get the code point to use at a specific position when there is no user input.
|
protected int |
getLength()
Get the length of this mask.
|
protected int |
getNextValidInputPosition(int position)
Get the next valid input position that is the same or after the specified postion.
|
public PatternTextEntryMask(String pattern)
public PatternTextEntryMask(String pattern, int defaultChar)
protected int getDefaultCodePoint(int position)
TextEntryMaskgetDefaultCodePoint in class TextEntryMaskposition - the position for which to get the code point.protected Integer getCodePoint(String text, int codePoint, int position)
TextEntryMaskgetCodePoint in class TextEntryMasktext - 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 int getLength()
TextEntryMaskgetLength in class TextEntryMaskprotected int getNextValidInputPosition(int position)
TextEntryMaskgetNextValidInputPosition in class TextEntryMaskposition - the reference position to get the next valid one.Copyright © 2019. All rights reserved.