Top Description Inners Fields Constructors Methods
org.jabref.gui.util

public Class OnlyIntegerFormatter

extends TextFormatter<Integer>
Class Inheritance
Imports
java.util.function.UnaryOperator, java.util.regex.Pattern, javafx.scene.control.TextFormatter, javafx.util.converter.IntegerStringConverter

Formatter that only accepts integer.

More or less taken from http://stackoverflow.com/a/36749659/873661

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Inherited from javafx.scene.control.TextFormatter:
IDENTITY_STRING_CONVERTER

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Inherited from javafx.scene.control.TextFormatter:
getFiltergetValuegetValueConvertersetValuevalueProperty

Constructor Detail

OnlyIntegerFormatterback to summary
public OnlyIntegerFormatter()
OnlyIntegerFormatterback to summary
public OnlyIntegerFormatter(Integer defaultValue)
org.jabref.gui.util back to summary

private Class OnlyIntegerFormatter.IntegerFilter

extends Object
implements UnaryOperator<TextFormatter.Change>
Class Inheritance
All Implemented Interfaces
java.util.function.UnaryOperator, java.util.function.Function

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public TextFormatter.Change
apply(TextFormatter.Change
the function argument
aT
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DIGIT_PATTERNback to summary
private static final Pattern DIGIT_PATTERN

Constructor Detail

IntegerFilterback to summary
private IntegerFilter()

Method Detail

applyback to summary
public TextFormatter.Change apply(TextFormatter.Change aT)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
aT:TextFormatter.Change

the function argument

Returns:TextFormatter.Change

the function result

Annotations
@Override