How To Load and Sort On Demand using Custom AbstractListModel and Sortable"
From Documentation
Line 11: | Line 11: | ||
= Overview = | = 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! | ||
Revision as of 12:40, 24 November 2022
Author
Edilson Alexandre Cuamba, Software Engineer, EXI - Engenharia e Comercialização de Sistemas Informáticos
Edilson Alexandre Cuamba, Software Engineer, EXI - Engenharia e Comercialização de Sistemas Informáticos
Date
November 18, 2022
November 18, 2022
Version
ZK 9.6.1-Eval
ZK 9.6.1-Eval
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>