 KDView             = require './../../core/view.coffee'
 KDViewController   = require './../../core/viewcontroller.coffee'
+KDScrollView       = require './../scrollview/scrollview.coffee'
 KDCustomScrollView = require './../scrollview/customscrollview.coffee'
 KDListView         = require './../list/listview.coffee'
 KDLoaderView       = require './../loader/loaderview.coffee'

      @setListView listView = new KDListView viewOptions

    if options.scrollView
      @customScrollView = new KDCustomScrollView
        lazyLoadThreshold : options.lazyLoadThreshold
        ownScrollBars     : options.ownScrollBars
      @scrollView = @customScrollView.wrapper

    options.view = if options.wrapper
    then new KDView cssClass : "listview-wrapper"


  constructor:(options = {}, data)->

    options.wrapper                ?= yes
    options.scrollView             ?= yes
    options.keyNav                 ?= no
    options.multipleSelection      ?= no
    options.selection              ?= no
    options.ownScrollBars          ?= no
    options.startWithLazyLoader    ?= no
    options.itemChildClass        or= null
    options.itemChildOptions      or= {}
    options.useCustomScrollView    ?= no
    # rename these options
    options.noItemFoundWidget     or= null
    options.noMoreItemFoundWidget or= null
