Skip to content

Commit 23ad8f4

Browse files
bhaweshkcnlisker
authored andcommitted
8251353: Many javafx scenegraph classes have implicit no-arg constructors
Reviewed-by: kcr, nlisker
1 parent 7a4bd9b commit 23ad8f4

File tree

12 files changed

+80
-0
lines changed

12 files changed

+80
-0
lines changed

modules/javafx.controls/src/main/java/javafx/scene/control/TableFocusModel.java

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ public abstract class TableFocusModel<T, TC extends TableColumnBase<T,?>> extend
4242
* *
4343
**********************************************************************/
4444

45+
/**
46+
* Constructor for subclasses to call.
47+
*/
48+
public TableFocusModel() {
49+
}
50+
4551
/**
4652
* Causes the item at the given index to receive the focus.
4753
*

modules/javafx.controls/src/main/java/javafx/scene/control/TableSelectionModel.java

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
*/
3838
public abstract class TableSelectionModel<T> extends MultipleSelectionModelBase<T> {
3939

40+
/**
41+
* Constructor for subclasses to call.
42+
*/
43+
public TableSelectionModel() {
44+
}
45+
4046
/**
4147
* Convenience function which tests whether the given row and column index
4248
* is currently selected in this table instance. If the table control is in its

modules/javafx.graphics/src/main/java/javafx/application/Preloader.java

+6
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ public abstract class Preloader extends Application {
114114
lineSeparator = prop != null ? prop : "\n";
115115
}
116116

117+
/**
118+
* Constructor for subclasses to call.
119+
*/
120+
public Preloader() {
121+
}
122+
117123
/**
118124
* Indicates download progress.
119125
* This method is called by the FX runtime to indicate progress while

modules/javafx.graphics/src/main/java/javafx/concurrent/ScheduledService.java

+7
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@
144144
* @since JavaFX 8.0
145145
*/
146146
public abstract class ScheduledService<V> extends Service<V> {
147+
148+
/**
149+
* Constructor for subclasses to call.
150+
*/
151+
public ScheduledService() {
152+
}
153+
147154
/**
148155
* A Callback implementation for the <code>backoffStrategy</code> property which
149156
* will exponentially backoff the period between re-executions in the case of

modules/javafx.graphics/src/main/java/javafx/css/PseudoClass.java

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@
7474
*/
7575
public abstract class PseudoClass {
7676

77+
/**
78+
* Constructor for subclasses to call.
79+
*/
80+
public PseudoClass() {
81+
}
82+
7783
/**
7884
* There is only one PseudoClass instance for a given pseudoClass.
7985
* @param pseudoClass the pseudo-class

modules/javafx.graphics/src/main/java/javafx/css/StyleConverter.java

+12
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
*/
8787
public class StyleConverter<F, T> {
8888

89+
/**
90+
* Creates a {@code StyleConverter}.
91+
*/
92+
public StyleConverter() {
93+
}
94+
8995
/**
9096
* Convert from the parsed CSS value to the target property type.
9197
*
@@ -532,6 +538,12 @@ public static class StringStore {
532538
private final Map<String,Integer> stringMap = new HashMap<String,Integer>();
533539
public final List<String> strings = new ArrayList<String>();
534540

541+
/**
542+
* Creates a {@code StringStore}.
543+
*/
544+
public StringStore() {
545+
}
546+
535547
public int addString(String s) {
536548
Integer index = stringMap.get(s);
537549
if (index == null) {

modules/javafx.graphics/src/main/java/javafx/scene/input/ClipboardContent.java

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
* @since JavaFX 2.0
3939
*/
4040
public class ClipboardContent extends HashMap<DataFormat, Object> {
41+
42+
/**
43+
* Creates a {@code ClipboardContent}.
44+
*/
45+
public ClipboardContent() {
46+
}
47+
4148
/**
4249
* Gets whether a plain text String ({@code DataFormat.PLAIN_TEXT})
4350
* has been put to this {@code ClipboardContent}.

modules/javafx.graphics/src/main/java/javafx/scene/shape/PathElement.java

+6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public void setHelper(PathElement pathElement, PathElementHelper pathElementHelp
7171
*/
7272
WeakReferenceQueue nodes = new WeakReferenceQueue();
7373

74+
/**
75+
* Constructor for subclasses to call.
76+
*/
77+
public PathElement() {
78+
}
79+
7480
void addNode(final Node n) {
7581
nodes.add(n);
7682
}

modules/javafx.graphics/src/main/java/javafx/scene/transform/Transform.java

+6
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ public Transform createImmutableTransform(Transform transform,
127127
});
128128
}
129129

130+
/**
131+
* Constructor for subclasses to call.
132+
*/
133+
public Transform() {
134+
}
135+
130136
/* *************************************************************************
131137
* *
132138
* Factories *

modules/javafx.graphics/src/main/java/javafx/stage/DirectoryChooser.java

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ public final class DirectoryChooser {
4949
*/
5050
private StringProperty title;
5151

52+
/**
53+
* Creates a {@code DirectoryChooser}.
54+
*/
55+
public DirectoryChooser() {
56+
}
57+
5258
public final void setTitle(final String value) {
5359
titleProperty().set(value);
5460
}

modules/javafx.graphics/src/main/java/javafx/stage/FileChooser.java

+6
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ private static void validateArgs(final String description,
204204
*/
205205
private StringProperty title;
206206

207+
/**
208+
* Creates a {@code FileChooser}.
209+
*/
210+
public FileChooser() {
211+
}
212+
207213
public final void setTitle(final String value) {
208214
titleProperty().set(value);
209215
}

modules/javafx.graphics/src/main/java/javafx/stage/Popup.java

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
*/
3939
public class Popup extends PopupWindow {
4040

41+
/**
42+
* Creates a {@code Popup}.
43+
*/
44+
public Popup() {
45+
}
46+
4147
/**
4248
* The ObservableList of {@code Node}s to be rendered on this
4349
* {@code Popup}. The content forms the complete visual representation of

0 commit comments

Comments
 (0)