@@ -38,7 +38,7 @@ protected EditableObjectPropertyBuilder(@NotNull final Class<? extends C> type)
3838 protected void buildForImpl (@ NotNull final Object object , @ Nullable final Object parent ,
3939 @ NotNull final VBox container , @ NotNull final C changeConsumer ) {
4040
41- final List <EditableProperty <?, ?>> properties = getProperties (object );
41+ final List <EditableProperty <?, ?>> properties = getProperties (object , parent , changeConsumer );
4242 if (properties == null || properties .isEmpty ()) return ;
4343
4444 for (final EditableProperty <?, ?> description : properties ) {
@@ -208,14 +208,29 @@ protected <T> void addControl(@NotNull final VBox container, @NotNull final Edit
208208 FXUtils .addToPane (propertyControl , container );
209209 }
210210
211+ /**
212+ * Get the list of editable properties of the object.
213+ *
214+ * @param object the editable object.
215+ * @param parent the parent.
216+ * @param changeConsumer the change consumer.
217+ * @return the list of properties or null.
218+ */
219+ @ FXThread
220+ protected @ Nullable List <EditableProperty <?, ?>> getProperties (@ NotNull final Object object ,
221+ @ Nullable final Object parent ,
222+ @ NotNull final C changeConsumer ) {
223+ return getProperties (object );
224+ }
225+
211226 /**
212227 * Get the list of editable properties of the object.
213228 *
214229 * @param object the editable object.
215230 * @return the list of properties or null.
216231 */
217232 @ FXThread
218- protected @ Nullable List <EditableProperty <?, ?>> getProperties (final @ NotNull Object object ) {
233+ protected @ Nullable List <EditableProperty <?, ?>> getProperties (@ NotNull final Object object ) {
219234 return null ;
220235 }
221236
0 commit comments