Class RecordModel<R extends PersistentRecord>

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

    public class RecordModel<R extends PersistentRecord>
    extends org.apache.wicket.model.LoadableDetachableModel<R>
    A LoadableDetachableModel that safely looks up a record instead of trying to serialize it
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordModel​(R record)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected R load()  
      void setObject​(R record)  
      • Methods inherited from class org.apache.wicket.model.LoadableDetachableModel

        detach, getObject, isAttached, onAttach, onDetach, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RecordModel

        public RecordModel​(R record)
    • Method Detail

      • setObject

        public void setObject​(R record)
        Specified by:
        setObject in interface org.apache.wicket.model.IModel<R extends PersistentRecord>
        Overrides:
        setObject in class org.apache.wicket.model.LoadableDetachableModel<R extends PersistentRecord>
      • load

        protected R load()
        Specified by:
        load in class org.apache.wicket.model.LoadableDetachableModel<R extends PersistentRecord>