2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ListView
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend ScrollView
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module ccui
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] getIndex
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget widget
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] removeAllItems
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] setGravity
|
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @param #ccui.ListView::Gravity gravity
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] pushBackCustomItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget widget
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] getItems
|
|
|
|
-- @param self
|
|
|
|
-- @return array_table#array_table ret (return value: array_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] removeItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #long long
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] getCurSelectedIndex
|
|
|
|
-- @param self
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] insertDefaultItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #long long
|
|
|
|
|
2014-06-04 13:58:29 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] requestRefreshView
|
|
|
|
-- @param self
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] setItemsMargin
|
|
|
|
-- @param self
|
|
|
|
-- @param #float float
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] refreshView
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] removeLastItem
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] getItemsMargin
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2014-05-12 16:14:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] addEventListener
|
|
|
|
-- @param self
|
|
|
|
-- @param #function func
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] getItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #long long
|
|
|
|
-- @return Widget#Widget ret (return value: ccui.Widget)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] setItemModel
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget widget
|
|
|
|
|
|
|
|
--------------------------------
|
2014-06-04 13:58:29 +08:00
|
|
|
-- @function [parent=#ListView] doLayout
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] pushBackDefaultItem
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] insertCustomItem
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccui.Widget widget
|
|
|
|
-- @param #long long
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] create
|
|
|
|
-- @param self
|
|
|
|
-- @return ListView#ListView ret (return value: ccui.ListView)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] createInstance
|
|
|
|
-- @param self
|
|
|
|
-- @return Ref#Ref ret (return value: cc.Ref)
|
|
|
|
|
2014-05-27 10:21:22 +08:00
|
|
|
--------------------------------
|
2014-06-25 17:36:50 +08:00
|
|
|
-- overload function: addChild(cc.Node, int)
|
|
|
|
--
|
|
|
|
-- overload function: addChild(cc.Node)
|
2014-05-27 10:21:22 +08:00
|
|
|
--
|
|
|
|
-- overload function: addChild(cc.Node, int, int)
|
|
|
|
--
|
2014-06-25 17:36:50 +08:00
|
|
|
-- overload function: addChild(cc.Node, int, string)
|
|
|
|
--
|
2014-05-27 10:21:22 +08:00
|
|
|
-- @function [parent=#ListView] addChild
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @param #int int
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @param #string str
|
2014-05-27 10:21:22 +08:00
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] setDirection
|
|
|
|
-- @param self
|
2014-05-12 16:14:14 +08:00
|
|
|
-- @param #ccui.ScrollView::Direction direction
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-05-27 10:21:22 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] removeAllChildrenWithCleanup
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] removeAllChildren
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] removeChild
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @param #bool bool
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ListView] ListView
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|