-------------------------------- -- @module ListView -- @extend ScrollView -- @parent_module ccui -------------------------------- -- Returns the index of item.
-- param item the item which need to be checked.
-- return the index of item. -- @function [parent=#ListView] getIndex -- @param self -- @param #ccui.Widget item -- @return long#long ret (return value: long) -------------------------------- -- -- @function [parent=#ListView] removeAllItems -- @param self -------------------------------- -- Changes the gravity of listview.
-- see ListViewGravity -- @function [parent=#ListView] setGravity -- @param self -- @param #int gravity -------------------------------- -- Push back custom item into listview. -- @function [parent=#ListView] pushBackCustomItem -- @param self -- @param #ccui.Widget item -------------------------------- -- Returns the item container. -- @function [parent=#ListView] getItems -- @param self -- @return array_table#array_table ret (return value: array_table) -------------------------------- -- Removes a item whose index is same as the parameter.
-- param index of item. -- @function [parent=#ListView] removeItem -- @param self -- @param #long index -------------------------------- -- -- @function [parent=#ListView] getCurSelectedIndex -- @param self -- @return long#long ret (return value: long) -------------------------------- -- Insert a default item(create by a cloned model) into listview. -- @function [parent=#ListView] insertDefaultItem -- @param self -- @param #long index -------------------------------- -- -- @function [parent=#ListView] requestRefreshView -- @param self -------------------------------- -- Changes the margin between each item.
-- param margin -- @function [parent=#ListView] setItemsMargin -- @param self -- @param #float margin -------------------------------- -- -- @function [parent=#ListView] refreshView -- @param self -------------------------------- -- Removes the last item of listview. -- @function [parent=#ListView] removeLastItem -- @param self -------------------------------- -- -- @function [parent=#ListView] getItemsMargin -- @param self -- @return float#float ret (return value: float) -------------------------------- -- -- @function [parent=#ListView] addEventListener -- @param self -- @param #function callback -------------------------------- -- Returns a item whose index is same as the parameter.
-- param index of item.
-- return the item widget. -- @function [parent=#ListView] getItem -- @param self -- @param #long index -- @return Widget#Widget ret (return value: ccui.Widget) -------------------------------- -- Sets a item model for listview
-- A model will be cloned for adding default item.
-- param model item model for listview -- @function [parent=#ListView] setItemModel -- @param self -- @param #ccui.Widget model -------------------------------- -- -- @function [parent=#ListView] doLayout -- @param self -------------------------------- -- Push back a default item(create by a cloned model) into listview. -- @function [parent=#ListView] pushBackDefaultItem -- @param self -------------------------------- -- Insert custom item into listview. -- @function [parent=#ListView] insertCustomItem -- @param self -- @param #ccui.Widget item -- @param #long index -------------------------------- -- Allocates and initializes. -- @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) -------------------------------- -- @overload self, cc.Node, int -- @overload self, cc.Node -- @overload self, cc.Node, int, int -- @overload self, cc.Node, int, string -- @function [parent=#ListView] addChild -- @param self -- @param #cc.Node child -- @param #int zOrder -- @param #string name -------------------------------- -- Changes scroll direction of scrollview.
-- see Direction Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll
-- param dir, set the list view's scroll direction -- @function [parent=#ListView] setDirection -- @param self -- @param #int dir -------------------------------- -- -- @function [parent=#ListView] getDescription -- @param self -- @return string#string ret (return value: string) -------------------------------- -- -- @function [parent=#ListView] removeAllChildrenWithCleanup -- @param self -- @param #bool cleanup -------------------------------- -- -- @function [parent=#ListView] removeAllChildren -- @param self -------------------------------- -- -- @function [parent=#ListView] removeChild -- @param self -- @param #cc.Node child -- @param #bool cleaup -------------------------------- -- Default constructor -- @function [parent=#ListView] ListView -- @param self return nil