public interface DataChangedListener

Known subtypesButtonList, CheckBoxList, RadioButtonList, SwitchList, FilterProxyListModel

Event callback interface invoked when a com.codename1.ui.list.ListModel changes its state thus indicating to the view that it should refresh.

Fields

public static final int REMOVED = 0Type value for removed data in ListModel
public static final int ADDED = 1Type value for added data in ListModel
public static final int CHANGED = 2Type value for changed data in ListModel

Methods

public abstract void dataChanged(int type, int index)Invoked when there was a change in the underlying model

Field details

REMOVED

public static final int REMOVED = 0
Type value for removed data in ListModel

ADDED

public static final int ADDED = 1
Type value for added data in ListModel

CHANGED

public static final int CHANGED = 2
Type value for changed data in ListModel

Method details

dataChanged

public abstract void dataChanged(int type, int index)
Invoked when there was a change in the underlying model

Parameters

type int
the type data change; REMOVED, ADDED or CHANGED
index int
item index in a list model