# 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
  Modifier and Type
  Field
  Description
  `static final int`
  `ADDED`
  Type value for added data in ListModel
  `static final int`
  `CHANGED`
  Type value for changed data in ListModel
  `static final int`
  `REMOVED`
  Type value for removed data in ListModel

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `dataChanged(int type, int index)`
  Invoked when there was a change in the underlying model

- ## Field Details

  - ### REMOVED

    static final int REMOVED
    Type value for removed data in ListModel
    See Also:
      - Constant Field Values

  - ### ADDED

    static final int ADDED
    Type value for added data in ListModel
    See Also:
      - Constant Field Values

  - ### CHANGED

    static final int CHANGED
    Type value for changed data in ListModel
    See Also:
      - Constant Field Values

- ## 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