Open mokun opened 3 years ago
Something like this would work right now:
final WebCheckBoxList list = new WebCheckBoxList ();
list.addListDataListener ( new ListDataAdapter ()
{
@Override
public void contentsChanged ( final ListDataEvent e )
{
final int index = e.getIndex0 ();
final boolean selected = list.isCheckBoxSelected ( index );
}
} );
That being said, these events can also be thrown when list data itself changes. It's not the best way to handle it, so i'll keep this issue and will add a separate check state listener in next update.
How do you write an action listener method to just detect changes in any boxes in a
WebCheckBoxList
?