Class DirectRecordListModel<R extends SRecordInstance>

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

    public class DirectRecordListModel<R extends SRecordInstance>
    extends java.lang.Object
    implements org.apache.wicket.model.IModel<java.util.List<R>>, java.io.Externalizable
    A Model that directly holds a list of SRecordInstance objects, ensuring that they are serialized safely.
    See Also:
    Serialized Form
    • Constructor Detail

      • DirectRecordListModel

        public DirectRecordListModel()
        Do not call - for Externalizable
      • DirectRecordListModel

        public DirectRecordListModel​(java.util.List<R> records)
    • Method Detail

      • getObject

        public java.util.List<R> getObject()
        Specified by:
        getObject in interface org.apache.wicket.model.IModel<R extends SRecordInstance>
      • setObject

        public void setObject​(java.util.List<R> object)
        Specified by:
        setObject in interface org.apache.wicket.model.IModel<R extends SRecordInstance>
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException