Top Fields Constructors Methods
impl.com.calendarfx.view

public final Class NumericTextField

extends TextField
Class Inheritance
Imports
javafx.scene.control.TextField

Field Summary

Inherited from javafx.scene.control.TextField:
DEFAULT_PREF_COLUMN_COUNT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
replaceSelection(String
the replacement string
s
)

Overrides javafx.scene.control.TextInputControl.replaceSelection.

Replaces the selection with the given replacement String.

public void
replaceText(int
The starting index in the range, inclusive. This must be >= 0 and < the end.
start
,
int
The ending index in the range, exclusive. This is one-past the last character to delete (consistent with the String manipulation methods). This must be > the start, and <= the length of the text.
end
,
String
The text that is to replace the range. This must not be null.
s
)

Overrides javafx.scene.control.TextInputControl.replaceText.

Replaces a range of characters with the given text.

Inherited from javafx.scene.control.TextField:
alignmentPropertycreateDefaultSkingetAlignmentgetCharactersgetClassCssMetaDatagetControlCssMetaDatagetOnActiongetPrefColumnCountonActionPropertyprefColumnCountPropertysetAlignmentsetOnActionsetPrefColumnCount

Constructor Detail

NumericTextFieldback to summary
public NumericTextField()

Method Detail

replaceSelectionback to summary
public void replaceSelection(String s)

Overrides javafx.scene.control.TextInputControl.replaceSelection.

Doc from javafx.scene.control.TextInputControl.replaceSelection.

Replaces the selection with the given replacement String. If there is no selection, then the replacement text is simply inserted at the current caret position. If there was a selection, then the selection is cleared and the given replacement text inserted.

Parameters
s:String

the replacement string

Annotations
@Override
replaceTextback to summary
public void replaceText(int start, int end, String s)

Overrides javafx.scene.control.TextInputControl.replaceText.

Doc from javafx.scene.control.TextInputControl.replaceText.

Replaces a range of characters with the given text.

Parameters
start:int

The starting index in the range, inclusive. This must be >= 0 and < the end.

end:int

The ending index in the range, exclusive. This is one-past the last character to delete (consistent with the String manipulation methods). This must be > the start, and <= the length of the text.

s:String

The text that is to replace the range. This must not be null.

Annotations
@Override