Class ComplexPropertyEmbeddedModel<O extends Serializable,​T extends Serializable>

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<T>, org.apache.wicket.util.io.IClusterable

    public class ComplexPropertyEmbeddedModel<O extends Serializable,​T extends Serializable>
    extends Object
    implements org.apache.wicket.model.IModel<T>
    Created by Viliam Repan (lazyman).
    See Also:
    Serialized Form
    • Constructor Detail

      • ComplexPropertyEmbeddedModel

        public ComplexPropertyEmbeddedModel​(@NotNull
                                            @NotNull org.apache.wicket.model.IModel<O> model,
                                            @NotNull
                                            @NotNull SerializableFunction<O,​T> get,
                                            @NotNull
                                            @NotNull SerializableBiConsumer<O,​T> set)
    • Method Detail

      • getObject

        public T getObject()
        Specified by:
        getObject in interface org.apache.wicket.model.IModel<O extends Serializable>
      • setObject

        public void setObject​(T object)
        Specified by:
        setObject in interface org.apache.wicket.model.IModel<O extends Serializable>
      • createEmptyParentObject

        protected O createEmptyParentObject()
      • isParentModelObjectEmpty

        protected boolean isParentModelObjectEmpty​(O object)