Class ccs.PageView
- Defined in: UIPageView.js
- Extends ccs.Layout
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.PageView
|
Method Summary
Class Detail
ccs.PageView()
Base class for ccs.PageView
Method Detail
-
{boolean} addChild(widget, zOrder, tag)Add widget
- Parameters:
- {ccs.Widget} widget
- {Number} zOrder
- {Number} tag
- Returns:
- {boolean}
-
addEventListenerPageView(selector, target)
- Parameters:
- {Function} selector
- {Object} target
-
addPage(page)Push back a page to pageview.
- Parameters:
- {ccs.Layout} page
-
addWidgetToPage(widget, pageIdx, forceCreate)Add a widget to a page of pageview.
- Parameters:
- {ccs.Widget} widget
- {number} pageIdx
- {Boolean} forceCreate
-
allocates and initializes a UIPageView.
// example var uiPageView = ccs.PageView.create();
- Returns:
- {ccs.PageView}
-
{ccs.Layout} createPage()create page
- Returns:
- {ccs.Layout}
-
{number} getCurPageIndex()get cur page index
- Returns:
- {number}
-
{string} getDescription()Returns the "class name" of widget.
- Returns:
- {string}
-
{Array} getPages()get pages
- Returns:
- {Array}
-
{number} getPositionXByIndex(idx)Get x position by index
- Parameters:
- {number} idx
- Returns:
- {number}
-
insertPage(page, idx)Inert a page to pageview.
- Parameters:
- {ccs.Layout} page
- {Number} idx
-
removeChild(child)remove widget child override
- Parameters:
- {ccs.Widget} child
-
removePage(page)Remove a page of pageview.
- Parameters:
- {ccs.Layout} page
-
removePageAtIndex(index)Remove a page at index of pageview.
- Parameters:
- {number} index
-
scrollToPage(idx)scroll pageview to index.
- Parameters:
- {number} idx