public
NumberFormatter
()
NumberFormatter with the a default
NumberFormat instance obtained from
NumberFormat.getNumberInstance().
pack-private Object
adjustValue
(Object value, Map attributes, Object field, int direction)
throws
BadLocationException
ParseException
[Inherited From InternationalFormatter]
pack-private boolean
canIncrement
(Object field, int cursorPosition)
[Inherited From InternationalFormatter]
pack-private void
commitEdit
()
throws
ParseException
[Inherited From DefaultFormatter]
commitEdit on the JFormattedTextField.
protected Action
getActions
()
[Inherited From InternationalFormatter]
getSupportsIncrement returns true, this returns
two Actions suitable for incrementing/decrementing the value.
pack-private Object
getAdjustField
(int start, Map attributes)
[Inherited From InternationalFormatter]
pack-private Map
getAttributes
(int index)
[Inherited From InternationalFormatter]
index.
pack-private char
getBufferedChar
(int index)
[Inherited From InternationalFormatter]
index.
protected JFormattedTextField
getFormattedTextField
()
[Inherited From JFormattedTextField.AbstractFormatter]
pack-private AttributedCharacterIterator
getIterator
()
[Inherited From InternationalFormatter]
AttributedCharacterIterator used to
format the last value.
pack-private char
getLiteral
(int index)
[Inherited From InternationalFormatter]
pack-private int
getLiteralCountTo
(int index)
[Inherited From InternationalFormatter]
index.
pack-private int
getNextCursorPosition
(int offset, int direction)
[Inherited From DefaultFormatter]
pack-private int
getNextVisualPositionFrom
(JTextComponent text, int pos, Bias bias, int direction, Bias biasRet)
throws
BadLocationException
[Inherited From DefaultFormatter]
pack-private ReplaceHolder
getReplaceHolder
(FilterBypass fb, int offset, int length, String text, AttributeSet attrs)
[Inherited From InternationalFormatter]
ExtendedReplaceHolder.
pack-private String
getReplaceString
(int offset, int deleteLength, String replaceString)
[Inherited From DefaultFormatter]
deleteLength characters at offset
and inserting replaceString at offset
in the current text field.
pack-private boolean
isLegalInsertText
(String text)
[Overrides DefaultFormatter]
text contains in an invalid
character to insert, that is, it is not a digit
(Character.isDigit()) and
not one of the characters defined by the DecimalFormatSymbols.
pack-private boolean
isLiteral
(int index)
[Inherited From InternationalFormatter]
pack-private boolean
isLiteral
(Map attrs)
[Overrides InternationalFormatter]
pack-private boolean
isNavigatable
(int index)
[Overrides InternationalFormatter]
pack-private boolean
isValidMask
()
[Inherited From InternationalFormatter]
pack-private boolean
isValidValue
(Object value, boolean wantsCCE)
[Inherited From InternationalFormatter]
pack-private void
moveDot
(FilterBypass fb, int dot, Bias bias)
[Inherited From DefaultFormatter]
pack-private void
positionCursorAtInitialLocation
()
[Inherited From DefaultFormatter]
pack-private boolean
replace
(ReplaceHolder rh)
throws
BadLocationException
[Inherited From InternationalFormatter]
pack-private void
replace
(FilterBypass fb, int offset, int length, String string, AttributeSet attr)
throws
BadLocationException
[Overrides InternationalFormatter]
pack-private void
repositionCursor
(int offset, int direction)
[Inherited From DefaultFormatter]
pack-private void
resetValue
(Object value)
throws
BadLocationException
ParseException
[Inherited From InternationalFormatter]
value.
pack-private void
selectField
(Object f, int count)
[Inherited From InternationalFormatter]
attributes.
pack-private void
setDot
(FilterBypass fb, int dot, Bias bias)
[Inherited From DefaultFormatter]
public Object
stringToValue
(String text)
throws
ParseException
[Inherited From InternationalFormatter]
[Specified in JFormattedTextField.AbstractFormatter]
pack-private Object
stringToValue
(String text, Format f)
throws
ParseException
[Overrides InternationalFormatter]
parseObject on f, returning
its value.
pack-private void
updateMaskIfNecessary
()
[Inherited From InternationalFormatter]
pack-private void
updateValue
()
[Inherited From DefaultFormatter]
setEditValid based on the
validity of the value.
pack-private void
updateValue
(Object value)
[Inherited From InternationalFormatter]
public String
valueToString
(Object value)
throws
ParseException
[Inherited From InternationalFormatter]
[Specified in JFormattedTextField.AbstractFormatter]
pack-privatetransient
ReplaceHolder replaceHolder
[Inherited From DefaultFormatter]