private class NumberFormat.NumberBufGui extends NumberFormat.NumberBuf
NumberFormat.NumberBuf.FindHelperIterator, NumberFormat.NumberBuf.ScreenCharInfo
digits, extra, justActivated, LEADING_ZERO, negative, overflow, rightAlignedGuiFillIn, scale, screen, screenBuf, screenInfo
presCursorPos, presInsertMode
Constructor and Description |
---|
NumberBufGui()
Constructs default presentation used for clear operation.
|
NumberBufGui(NumberType var)
Constructs presentation initialized with given
decimal , int64
or integer . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCursorPosition()
Returns true if the new cursor position must be recalculated.
|
boolean |
deleteBack()
Performs BACKSPACE function which consists of deleting one character
at the cursor and then moving the cursor one position to the left,
if possible.
|
protected NumberFormat.NumberBuf.FindHelperIterator |
getFindHelperIterator(int digitPos)
Returns the find iterator to help to recalculate the current cursor position after
delete action has been completed.
|
boolean |
input(char ch)
Inputs character.
|
protected boolean |
isFixedNumericInGui()
Returns
TRUE if having fixed numeric in GUI mode. |
protected boolean |
preprocessDeleteAction()
Returns true if the delete action is completed.
|
protected void |
processDeleteAction(int digitPos,
int digitIndex)
Process the main delete action for the given symbol.
|
activate, calcDigitIndex, checkFormat, deleteCurrent, finishEdit, getCursorByDigitPosition, getInitialCursorPos, getLastPos, invalidateScreen, isAllDigitsFilled, isFixedFont, isFixedNumeric, isNegative, isOptionalLeftSign, isUnknown, moveCursorBegin, moveCursorEnd, moveCursorLeft, moveCursorRight, renderScreen, rightSignSize, shiftDigits, toScreenValue, toVar, validateScreen, validateScreen
getCursorPos, getInsertMode, isLastCharEntered, setCursorPos, setInsertMode, setLastCharEntered, toScreenValue, validateFormat
public NumberBufGui()
public NumberBufGui(NumberType var)
decimal
, int64
or integer
.var
- Wrapper containing our initial value and which will be
used to format and parse the data.public boolean deleteBack()
deleteBack
in class NumberFormat.NumberBuf
true
if input is accepted (nevertheless it
may be silently ignored in reality).public boolean input(char ch)
input
in class NumberFormat.NumberBuf
ch
- Input charactertrue
if input is accepted (nevertheless it
may be silently ignored in reality).protected boolean preprocessDeleteAction()
preprocessDeleteAction
in class NumberFormat.NumberBuf
protected NumberFormat.NumberBuf.FindHelperIterator getFindHelperIterator(int digitPos)
getFindHelperIterator
in class NumberFormat.NumberBuf
digitPos
- The given symbol positionprotected void processDeleteAction(int digitPos, int digitIndex)
processDeleteAction
in class NumberFormat.NumberBuf
digitPos
- The given symbol positiondigitIndex
- The given symbol indexprotected boolean checkCursorPosition()
checkCursorPosition
in class NumberFormat.NumberBuf
protected boolean isFixedNumericInGui()
TRUE
if having fixed numeric in GUI mode.isFixedNumericInGui
in class NumberFormat.NumberBuf
TRUE
if GUI mode and fixed numeric format, FALSE
otherwise.