You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mvvmfx/src/main/java/de/saxsys/mvvmfx/utils/mapping/ModelWrapper.java
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -204,9 +204,6 @@
204
204
*
205
205
*
206
206
*
207
-
*
208
-
*
209
-
*
210
207
* @param <M>
211
208
* the type of the model class.
212
209
*/
@@ -220,8 +217,9 @@ public class ModelWrapper<M> {
220
217
/**
221
218
* This interface defines the operations that are possible for each field of a wrapped class.
222
219
*
223
-
* @param <T>
224
-
* @param <M>
220
+
* @param <T> target type. The base type of the returned property, f.e. {@link String}.
221
+
* @param <M> model type. The type of the Model class, that is wrapped by this ModelWrapper instance.
222
+
* @param <R> return type. The type of the Property that is returned via {@link #getProperty()}, f.e. {@link StringProperty} or {@link Property<String>}.
225
223
*/
226
224
privateinterfacePropertyField<T, M, RextendsProperty<T>> {
227
225
voidcommit(MwrappedObject);
@@ -232,6 +230,14 @@ private interface PropertyField<T, M, R extends Property<T>> {
232
230
233
231
RgetProperty();
234
232
233
+
/**
234
+
* Determines if the value in the model object and the property field are different or not.
235
+
*
236
+
* This method is used to implement the {@link #differentProperty()} flag.
237
+
*
238
+
* @param wrappedObject the wrapped model object
239
+
* @return <code>false</code> if both the wrapped model object and the property field have the same value, otherwise <code>true</code>
240
+
*/
235
241
booleanisDifferent(MwrappedObject);
236
242
}
237
243
@@ -348,8 +354,8 @@ public boolean isDifferent(M wrappedObject) {
348
354
}
349
355
350
356
/**
351
-
* An implementation of {@link PropertyField} that is used when the field of the model class is a {@link List} and
352
-
* and is a JavaFX {@link ListProperty} too.
357
+
* An implementation of {@link PropertyField} that is used when the field of the model class is a {@link List}
358
+
* and will be mapped to a JavaFX {@link ListProperty}.
353
359
*
354
360
* @param <T>
355
361
* @param <E>
@@ -370,7 +376,7 @@ public FxListPropertyField(ListPropertyAccessor<M, E> accessor, List<E> defaultV
0 commit comments