fjalvingh / domui

The DomUI Java User interface library
https://etc.to/confluence/display/DOM
GNU Lesser General Public License v2.1
10 stars 7 forks source link

Add isAcceptable method for filtering and better item selection logic #525

Closed milosilic closed 7 months ago

milosilic commented 7 months ago

Enhancement on DataTable and InstanceSelectionModel classes to improve item filtering and selection logic.

In InstanceSelectionModel, a new method isAcceptable(T instance) has been added. This method allows for a customizable check to determine if an row meets certain criteria before being accepted.

In DataTable, the selection/unselect logic has been improved with isAcceptable method.

fjalvingh commented 7 months ago

I rewrote the implementation for both keyed and instance models.