Gamalto

Fork me on GitHub

Object SectionList Overview

Gamalto. SectionList

new Gamalto.SectionList()

abstract

Abstract object to create a list a sections. It is not meant to be used directly.

Extends

Members

length :number

readonly

Number of items in the list.

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

addSections(size, count, r) Gamalto.SectionList

abstract

Adds a new set of sections to the list using the specified parameters.

Parameters
Name Type Description
size Gamalto.Size

Size of a section.

count number

Number of sections to compute.

r Gamalto.IBox

Rectangle defining the bounds of the container.

Returns
  • Current object for method chaining.

clone() object

inherited abstract

Clones the object. It will be shallow copy unless otherwise specfied.

Inherited From
Returns
  • New instance of the object. Defaults to null.

getSection(index) object

Gets the section at the specified index.

Parameters
Name Type Description
index number

Zero-based index of the section.

Returns
  • Requested section. The type depends on the implementation.

insertSection(at, section)

Inserts an existing section into the list.

Parameters
Name Type Description
at number

Zero-based index where the section must be inserted.

section object

Section to be added. The type depends on the implementation.

setMargin(x, y)

Sets the global margin around the sections in the container.

Parameters
Name Type Description
x number

Horizontal margin.

y number

Vertical margin.

setSpacing(x, y)

Sets the spacing around a section in the container.

Parameters
Name Type Description
x number

Horizontal spacing between sections.

y number

Vertical spacing between sections.

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)