Skip to content

Commit af000b2

Browse files
Merge
2 parents 5d34d72 + 487854c commit af000b2

27 files changed

+152
-37
lines changed

modules/javafx.base/src/main/java/javafx/beans/binding/BooleanBinding.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public abstract class BooleanBinding extends BooleanExpression implements
6060
Binding<Boolean> {
6161

6262
/**
63-
* Sole constructor
63+
* Creates a default {@code BooleanBinding}.
6464
*/
6565
public BooleanBinding() {
6666
}

modules/javafx.base/src/main/java/javafx/beans/binding/BooleanExpression.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
public abstract class BooleanExpression implements ObservableBooleanValue {
4646

4747
/**
48-
* Sole constructor
48+
* Creates a default {@code BooleanExpression}.
4949
*/
5050
public BooleanExpression() {
5151
}

modules/javafx.base/src/main/java/javafx/beans/binding/DoubleBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ public abstract class DoubleBinding extends DoubleExpression implements
116116
private BindingHelperObserver observer;
117117
private ExpressionHelper<Number> helper = null;
118118

119+
/**
120+
* Creates a default {@code DoubleBinding}.
121+
*/
122+
public DoubleBinding() {
123+
}
124+
119125
@Override
120126
public void addListener(InvalidationListener listener) {
121127
helper = ExpressionHelper.addListener(helper, this, listener);

modules/javafx.base/src/main/java/javafx/beans/binding/DoubleExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
public abstract class DoubleExpression extends NumberExpressionBase implements
4545
ObservableDoubleValue {
4646

47+
/**
48+
* Creates a default {@code DoubleExpression}.
49+
*/
50+
public DoubleExpression() {
51+
}
52+
4753
@Override
4854
public int intValue() {
4955
return (int) get();

modules/javafx.base/src/main/java/javafx/beans/binding/FloatBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public abstract class FloatBinding extends FloatExpression implements
6666
private BindingHelperObserver observer;
6767
private ExpressionHelper<Number> helper = null;
6868

69+
/**
70+
* Creates a default {@code FloatBinding}.
71+
*/
72+
public FloatBinding() {
73+
}
74+
6975
@Override
7076
public void addListener(InvalidationListener listener) {
7177
helper = ExpressionHelper.addListener(helper, this, listener);

modules/javafx.base/src/main/java/javafx/beans/binding/FloatExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
public abstract class FloatExpression extends NumberExpressionBase implements
4444
ObservableFloatValue {
4545

46+
/**
47+
* Creates a default {@code FloatExpression}.
48+
*/
49+
public FloatExpression() {
50+
}
51+
4652
@Override
4753
public int intValue() {
4854
return (int) get();

modules/javafx.base/src/main/java/javafx/beans/binding/IntegerBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public abstract class IntegerBinding extends IntegerExpression implements
6666
private BindingHelperObserver observer;
6767
private ExpressionHelper<Number> helper = null;
6868

69+
/**
70+
* Creates a default {@code IntegerBinding}.
71+
*/
72+
public IntegerBinding() {
73+
}
74+
6975
@Override
7076
public void addListener(InvalidationListener listener) {
7177
helper = ExpressionHelper.addListener(helper, this, listener);

modules/javafx.base/src/main/java/javafx/beans/binding/IntegerExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
public abstract class IntegerExpression extends NumberExpressionBase implements
4444
ObservableIntegerValue {
4545

46+
/**
47+
* Creates a default {@code IntegerExpression}.
48+
*/
49+
public IntegerExpression() {
50+
}
51+
4652
@Override
4753
public int intValue() {
4854
return get();

modules/javafx.base/src/main/java/javafx/beans/binding/ListBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
*/
6565
public abstract class ListBinding<E> extends ListExpression<E> implements Binding<ObservableList<E>> {
6666

67+
/**
68+
* Creates a default {@code ListBinding}.
69+
*/
70+
public ListBinding() {
71+
}
72+
6773
private final ListChangeListener<E> listChangeListener = new ListChangeListener<E>() {
6874
@Override
6975
public void onChanged(Change<? extends E> change) {

modules/javafx.base/src/main/java/javafx/beans/binding/ListExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ public abstract class ListExpression<E> implements ObservableListValue<E> {
5757

5858
private static final ObservableList EMPTY_LIST = FXCollections.emptyObservableList();
5959

60+
/**
61+
* Creates a default {@code ListExpression}.
62+
*/
63+
public ListExpression() {
64+
}
65+
6066
@Override
6167
public ObservableList<E> getValue() {
6268
return get();

modules/javafx.base/src/main/java/javafx/beans/binding/LongBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public abstract class LongBinding extends LongExpression implements
6666
private BindingHelperObserver observer;
6767
private ExpressionHelper<Number> helper = null;
6868

69+
/**
70+
* Creates a default {@code LongBinding}.
71+
*/
72+
public LongBinding() {
73+
}
74+
6975
@Override
7076
public void addListener(InvalidationListener listener) {
7177
helper = ExpressionHelper.addListener(helper, this, listener);

modules/javafx.base/src/main/java/javafx/beans/binding/LongExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
public abstract class LongExpression extends NumberExpressionBase implements
4343
ObservableLongValue {
4444

45+
/**
46+
* Creates a default {@code LongExpression}.
47+
*/
48+
public LongExpression() {
49+
}
50+
4551
@Override
4652
public int intValue() {
4753
return (int) get();

modules/javafx.base/src/main/java/javafx/beans/binding/MapBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ public void onChanged(Change<? extends K, ? extends V> change) {
8484
private SizeProperty size0;
8585
private EmptyProperty empty0;
8686

87+
/**
88+
* Creates a default {@code MapBinding}.
89+
*/
90+
public MapBinding() {
91+
}
92+
8793
@Override
8894
public ReadOnlyIntegerProperty sizeProperty() {
8995
if (size0 == null) {

modules/javafx.base/src/main/java/javafx/beans/binding/MapExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ public ObservableMap<K, V> getValue() {
9191
return get();
9292
}
9393

94+
/**
95+
* Creates a default {@code MapExpression}.
96+
*/
97+
public MapExpression() {
98+
}
99+
94100
/**
95101
* Returns a {@code MapExpression} that wraps a
96102
* {@link javafx.beans.value.ObservableMapValue}. If the

modules/javafx.base/src/main/java/javafx/beans/binding/NumberExpressionBase.java

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
*/
5050
public abstract class NumberExpressionBase implements NumberExpression {
5151

52+
/**
53+
* Creates a default {@code NumberExpressionBase}.
54+
*/
55+
public NumberExpressionBase() {
56+
}
57+
5258
/**
5359
* Returns an {@code NumberExpressionBase} that wraps a
5460
* {@link javafx.beans.value.ObservableNumberValue}. If the

modules/javafx.base/src/main/java/javafx/beans/binding/ObjectBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public abstract class ObjectBinding<T> extends ObjectExpression<T> implements
6666
private BindingHelperObserver observer;
6767
private ExpressionHelper<T> helper = null;
6868

69+
/**
70+
* Creates a default {@code ObjectBinding}.
71+
*/
72+
public ObjectBinding() {
73+
}
74+
6975
@Override
7076
public void addListener(InvalidationListener listener) {
7177
helper = ExpressionHelper.addListener(helper, this, listener);

modules/javafx.base/src/main/java/javafx/beans/binding/ObjectExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ public T getValue() {
4949
return get();
5050
}
5151

52+
/**
53+
* Creates a default {@code ObjectExpression}.
54+
*/
55+
public ObjectExpression() {
56+
}
57+
5258
/**
5359
* Returns an {@code ObjectExpression} that wraps an
5460
* {@link javafx.beans.value.ObservableObjectValue}. If the

modules/javafx.base/src/main/java/javafx/beans/binding/SetBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
*/
6666
public abstract class SetBinding<E> extends SetExpression<E> implements Binding<ObservableSet<E>> {
6767

68+
/**
69+
* Creates a default {@code SetBinding}.
70+
*/
71+
public SetBinding() {
72+
}
73+
6874
private final SetChangeListener<E> setChangeListener = new SetChangeListener<E>() {
6975
@Override
7076
public void onChanged(Change<? extends E> change) {

modules/javafx.base/src/main/java/javafx/beans/binding/SetExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@
5757
*/
5858
public abstract class SetExpression<E> implements ObservableSetValue<E> {
5959

60+
/**
61+
* Creates a default {@code SetExpression}.
62+
*/
63+
public SetExpression() {
64+
}
65+
6066
private static final ObservableSet EMPTY_SET = new EmptyObservableSet();
6167

6268
private static class EmptyObservableSet<E> extends AbstractSet<E> implements ObservableSet<E> {

modules/javafx.base/src/main/java/javafx/beans/binding/StringBinding.java

+6
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ public abstract class StringBinding extends StringExpression implements
6565
private BindingHelperObserver observer;
6666
private ExpressionHelper<String> helper = null;
6767

68+
/**
69+
* Creates a default {@code StringBinding}.
70+
*/
71+
public StringBinding() {
72+
}
73+
6874
@Override
6975
public void addListener(InvalidationListener listener) {
7076
helper = ExpressionHelper.addListener(helper, this, listener);

modules/javafx.base/src/main/java/javafx/beans/binding/StringExpression.java

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
*/
4747
public abstract class StringExpression implements ObservableStringValue {
4848

49+
/**
50+
* Creates a default {@code StringExpression}.
51+
*/
52+
public StringExpression() {
53+
}
54+
4955
@Override
5056
public String getValue() {
5157
return get();

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

+7-4
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ public final BooleanProperty editableProperty() {
575575
**************************************************************************/
576576

577577
/**
578+
* Starts an edit to the value of the cell.
578579
* Call this function to transition from a non-editing state into an editing
579580
* state, if the cell is editable. If this cell is already in an editing
580581
* state, it will stay in it.
@@ -586,6 +587,7 @@ public void startEdit() {
586587
}
587588

588589
/**
590+
* Cancels an edit to the value of the cell.
589591
* Call this function to transition from an editing state into a non-editing
590592
* state, without saving any user input.
591593
*/
@@ -596,11 +598,12 @@ public void cancelEdit() {
596598
}
597599

598600
/**
601+
* Commits an edit to the value of the cell.
599602
* Call this function when appropriate (based on the user interaction requirements
600603
* of your cell editing user interface) to do two things:
601604
*
602605
* <ol>
603-
* <li>Fire the appropriate events back to the backing UI control (e.g.
606+
* <li>Fire the appropriate events back to the backing UI control (e.g.,
604607
* {@link ListView}). This will begin the process of pushing this edit
605608
* back to the relevant data source / property (although it does not
606609
* guarantee that this will be successful - that is dependent upon the
@@ -611,12 +614,12 @@ public void cancelEdit() {
611614
*
612615
* <p>In general there is no need to override this method in custom cell
613616
* implementations - it should be sufficient to simply call this method
614-
* when appropriate (e.g. when the user pressed the Enter key, you may do something
617+
* when appropriate (e.g., when the user pressed the Enter key, you may do something
615618
* like {@code cell.commitEdit(converter.fromString(textField.getText()));}</p>
616619
*
617-
* @param newValue The value as input by the end user, which should be
620+
* @param newValue the value as input by the end user, which should be
618621
* persisted in the relevant way given the data source underpinning the
619-
* user interface and the install edit commit handler of the UI control.
622+
* user interface and the install edit commit handler of the UI control
620623
*/
621624
public void commitEdit(T newValue) {
622625
if (isEditing()) {

modules/javafx.fxml/src/main/docs/javafx/fxml/doc-files/introduction_to_fxml.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ <h4><a id="collections_and_property_handlers">Special handlers for collections a
720720
<p> Collections and object properties cannot be listen to using <span class="code">setOn<span class="variable">Event</span>()</span> methods.
721721
For these reason, special handler methods need to be used.
722722
<span class="code">ObservableList</span>, <span class="code">ObservableMap</span> or <span class="code">ObservableSet</span>
723-
uses a special <span class="code">onChange</span> attribute that points to a handler method with a <span class="code">ListChangeListner.Change</span>, <span class="code">MapChangeListener.Change</span> or <span class="code">SetChangeListener.Change</span> parameter respectively.
723+
uses a special <span class="code">onChange</span> attribute that points to a handler method with a <span class="code">ListChangeListener.Change</span>, <span class="code">MapChangeListener.Change</span> or <span class="code">SetChangeListener.Change</span> parameter, respectively.
724724
</p>
725725
<pre class="code">
726726
&lt;VBox fx:controller="com.foo.MyController"

modules/javafx.graphics/src/main/java/javafx/animation/Transition.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* the implementation of a method {@link #interpolate(double)} which is the
4141
* called in each frame, while the {@code Transition} is running.
4242
* <p>
43-
* In addition an extending class needs to set the duration of a single cycle
43+
* In addition, an extending class needs to set the duration of a single cycle
4444
* with {@link Animation#setCycleDuration(javafx.util.Duration)}. This duration
4545
* is usually set by the user via a duration property (as in
4646
* {@link FadeTransition#durationProperty() duration}) for example. But it can also be calculated

modules/javafx.graphics/src/main/java/javafx/scene/layout/HBox.java

+11-12
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
import javafx.geometry.HPos;
4949
import javafx.util.Callback;
5050

51-
52-
5351
/**
5452
* HBox lays out its children in a single horizontal row.
5553
* If the hbox has a border and/or padding set, then the contents will be laid
@@ -168,13 +166,14 @@ public class HBox extends Pane {
168166

169167
/**
170168
* Sets the horizontal grow priority for the child when contained by an hbox.
171-
* If set, the hbox will use the priority to allocate additional space if the
172-
* hbox is resized larger than it's preferred width.
169+
* If set, the hbox will use the priority value to allocate additional space if the
170+
* hbox is resized larger than its preferred width.
173171
* If multiple hbox children have the same horizontal grow priority, then the
174172
* extra space will be split evenly between them.
175173
* If no horizontal grow priority is set on a child, the hbox will never
176-
* allocate it additional horizontal space if available.
177-
* Setting the value to null will remove the constraint.
174+
* allocate any additional horizontal space for that child.
175+
* <p>
176+
* Setting the value to {@code null} will remove the constraint.
178177
* @param child the child of an hbox
179178
* @param value the horizontal grow priority for the child
180179
*/
@@ -227,14 +226,14 @@ public static void clearConstraints(Node child) {
227226
********************************************************************/
228227

229228
/**
230-
* Creates an HBox layout with spacing = 0.
229+
* Creates an {@code HBox} layout with {@code spacing = 0}.
231230
*/
232231
public HBox() {
233232
super();
234233
}
235234

236235
/**
237-
* Creates an HBox layout with the specified spacing between children.
236+
* Creates an {@code HBox} layout with the specified spacing between children.
238237
* @param spacing the amount of horizontal space between each child
239238
*/
240239
public HBox(double spacing) {
@@ -243,8 +242,8 @@ public HBox(double spacing) {
243242
}
244243

245244
/**
246-
* Creates an HBox layout with spacing = 0.
247-
* @param children The initial set of children for this pane.
245+
* Creates an {@code HBox} layout with {@code spacing = 0}.
246+
* @param children the initial set of children for this pane
248247
* @since JavaFX 8.0
249248
*/
250249
public HBox(Node... children) {
@@ -253,9 +252,9 @@ public HBox(Node... children) {
253252
}
254253

255254
/**
256-
* Creates an HBox layout with the specified spacing between children.
255+
* Creates an {@code HBox} layout with the specified spacing between children.
257256
* @param spacing the amount of horizontal space between each child
258-
* @param children The initial set of children for this pane.
257+
* @param children the initial set of children for this pane
259258
* @since JavaFX 8.0
260259
*/
261260
public HBox(double spacing, Node... children) {

0 commit comments

Comments
 (0)