Interface DataChangedListener
- All Known Implementing Classes:
ButtonList, CheckBoxList, FilterProxyListModel, RadioButtonList, SwitchList
public interface DataChangedListener
Event callback interface invoked when a
com.codename1.ui.list.ListModel
changes its state thus indicating to the view that it should refresh.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddataChanged(int type, int index) Invoked when there was a change in the underlying model
-
Field Details
-
REMOVED
static final int REMOVEDType value for removed data in ListModel- See Also:
-
ADDED
static final int ADDEDType value for added data in ListModel- See Also:
-
CHANGED
static final int CHANGEDType value for changed data in ListModel- See Also:
-
-
Method Details
-
dataChanged
void dataChanged(int type, int index) Invoked when there was a change in the underlying model
Parameters
-
type: the type data change; REMOVED, ADDED or CHANGED -
index: item index in a list model
-
-