Class RecordListModel<R extends PersistentRecord>

  • All Implemented Interfaces:
    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 RecordListModel<R extends PersistentRecord>
    extends org.apache.wicket.model.LoadableDetachableModel<java.util.List<R>>
    A LoadableDetachableModel that loads a record list on demand
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean filter​(R record)  
      protected SFieldMeta getSortField​(SRecordMeta<R> meta)
      Results will be sorted ascending based on this field.
      protected java.util.List<R> load()  
      • Methods inherited from class org.apache.wicket.model.LoadableDetachableModel

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

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

      • RecordListModel

        public RecordListModel​(RecordMeta<R> meta)
    • Method Detail

      • getSortField

        protected SFieldMeta getSortField​(SRecordMeta<R> meta)
        Results will be sorted ascending based on this field. Default is Name
      • load

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

        protected boolean filter​(R record)