Package io.keikai.model.impl.sys
Class InputEngineImpl
- java.lang.Object
-
- io.keikai.model.impl.sys.InputEngineImpl
-
- All Implemented Interfaces:
InputEngine
- Direct Known Subclasses:
InputEngineEx
public class InputEngineImpl extends Object implements InputEngine
smart input for numbers and dates.- Since:
- 3.5.0
- Author:
- Hawk
-
-
Field Summary
Fields Modifier and Type Field Description static DateInputMask_dateInputMaskstatic NumberInputMask_numberInputMask
-
Constructor Summary
Constructors Constructor Description InputEngineImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisPercentageFormat(String formatPattern)KEIKAI-0851: Check if the format pattern is a percentage format.InputResultparseInput(String editText, String formatPattern, InputParseContext context)
-
-
-
Field Detail
-
_dateInputMask
public static DateInputMask _dateInputMask
-
_numberInputMask
public static NumberInputMask _numberInputMask
-
-
Method Detail
-
parseInput
public InputResult parseInput(String editText, String formatPattern, InputParseContext context)
- Specified by:
parseInputin interfaceInputEngine
-
isPercentageFormat
public static boolean isPercentageFormat(String formatPattern)
KEIKAI-0851: Check if the format pattern is a percentage format. Returns true if the format string contains an unquoted, unescaped '%' character.
-
-