How To Load and Sort On Demand using Custom AbstractListModel and Sortable

From Documentation
Revision as of 12:40, 24 November 2022 by Ecuamba (talk | contribs) (→‎Overview)
DocumentationSmall Talks2022NovemberHow To Load and Sort On Demand using Custom AbstractListModel and Sortable
How To Load and Sort On Demand using Custom AbstractListModel and Sortable

Author
Edilson Alexandre Cuamba, Software Engineer, EXI - Engenharia e Comercialização de Sistemas Informáticos
Date
November 18, 2022
Version
ZK 9.6.1-Eval

WarningTriangle-32x32.png This page is under construction, so we cannot guarantee the accuracy of the content!


Overview

Sometimes when you want to display data with a table structure, you use Listbox. This component is appropriate to it and works fine until your data gets huge and passes millions of rows; you will notice a little delay when you open the view with this component. For that reason, I needed to create a custom AbstractListModel that supports fetching only the data for the current page on the screen. In this article, I will show you how to build your own CustomAbstractListModel<T> that supports pagination at the database layer. Let’s do it!


Second Level

code snippet

public class ImageSaver {

public void save(String imageDataUrl) throws IOException {
        //Sample Code for code syntax
    }
}

Inline Code

This is an Inline Code

Download

put your github code link etc.

Summary

A short conclusion, welcome feedback

Comments



Copyright © {{{name}}}. This article is licensed under GNU Free Documentation License.

</includeonly>