org.fxmisc.richtext.PlainTextChange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of richtextfx Show documentation
Show all versions of richtextfx Show documentation
Rich-text area for JavaFX
package org.fxmisc.richtext;
public class PlainTextChange extends TextChange {
public PlainTextChange(int position, String removed, String inserted) {
super(position, removed, inserted);
}
@Override
protected final String concat(String a, String b) {
return a + b;
}
@Override
protected final String sub(String s, int from, int to) {
return s.substring(from, to);
}
@Override
protected final PlainTextChange create(int position, String removed, String inserted) {
return new PlainTextChange(position, removed, inserted);
}
}