We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d5704f commit 143adcdCopy full SHA for 143adcd
1 file changed
richtextfx/src/main/java/org/fxmisc/richtext/LineNumberFactory.java
@@ -28,12 +28,12 @@ public class LineNumberFactory implements IntFunction<Node> {
28
private static final Background DEFAULT_BACKGROUND =
29
new Background(new BackgroundFill(Color.web("#ddd"), null, null));
30
31
- public static IntFunction<Node> get(StyledTextArea<?, ?> area) {
+ public static IntFunction<Node> get(GenericStyledArea<?, ?, ?> area) {
32
return get(area, digits -> "%0" + digits + "d");
33
}
34
35
public static IntFunction<Node> get(
36
- StyledTextArea<?, ?> area,
+ GenericStyledArea<?, ?, ?> area,
37
IntFunction<String> format) {
38
return new LineNumberFactory(area, format);
39
@@ -42,7 +42,7 @@ public static IntFunction<Node> get(
42
private final IntFunction<String> format;
43
44
private LineNumberFactory(
45
46
47
nParagraphs = LiveList.sizeOf(area.getParagraphs());
48
this.format = format;
0 commit comments