Class sap.m.PagingButtonModule: sap/m/PagingButton

extends Control

Enables users to navigate between items/entities.
Since: 1.30.
Constructor Summary
new sap.m.PagingButton(sId?, mSettings?)Constructor for a new PagingButton.
Event Summary
positionChange(oControlEvent)Fired when the current position is changed.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.PagingButton.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.PagingButton with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.PagingButton.getMetadata()Returns a metadata object for class sap.m.PagingButton.
attachPositionChange(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the positionChange event of this sap.m.PagingButton.
detachPositionChange(fnFunction, oListener)Detaches event handler fnFunction from the positionChange event of this sap.m.PagingButton.
firePositionChange(mParameters?)Fires event positionChange to attached listeners.
getCount()Gets current value of property count.
getNextButtonTooltip()Gets current value of property nextButtonTooltip.
getPosition()Gets current value of property position.
getPreviousButtonTooltip()Gets current value of property previousButtonTooltip.
Constructor Detail
new sap.m.PagingButton(sId?, mSettings?)

Constructor for a new PagingButton.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.

Parameters:
stringsId?ID for the new control, generated automatically if no ID is given
objectmSettings?Initial settings for the new control
Event Detail
positionChange(oControlEvent)
Fired when the current position is changed.
Parameters:
sap.ui.base.EventoControlEvent
sap.ui.base.EventProvideroControlEvent.getSource
objectoControlEvent.getParameters
intoControlEvent.getParameters.newPositionThe number of the new position.
intoControlEvent.getParameters.oldPositionThe number of the old position.
Method Detail
sap.m.PagingButton.extend(sClassName, oClassInfo?, FNMetaImpl?): function

Creates a new subclass of class sap.m.PagingButton with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Control.extend.

Parameters:
stringsClassNameName of the class being created
objectoClassInfo?Object literal with information about the class
functionFNMetaImpl?Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
functionCreated class / constructor function
sap.m.PagingButton.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.PagingButton.
Returns:
sap.ui.base.MetadataMetadata object describing this class
attachPositionChange(oData?, fnFunction, oListener?): sap.m.PagingButton

Attaches event handler fnFunction to the positionChange event of this sap.m.PagingButton.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.PagingButton itself.

Fired when the current position is changed.

Parameters:
objectoData?An application-specific payload object that will be passed to the event handler along with the event object when firing the event
functionfnFunctionThe function to be called when the event occurs
objectoListener?Context object to call the event handler with. Defaults to this sap.m.PagingButton itself
Returns:
sap.m.PagingButtonReference to this in order to allow method chaining
detachPositionChange(fnFunction, oListener): sap.m.PagingButton

Detaches event handler fnFunction from the positionChange event of this sap.m.PagingButton.

The passed function and listener object must match the ones used for event registration.

Parameters:
functionfnFunctionThe function to be called, when the event occurs
objectoListenerContext object on which the given function had to be called
Returns:
sap.m.PagingButtonReference to this in order to allow method chaining
firePositionChange(mParameters?): sap.m.PagingButton
Fires event positionChange to attached listeners.
Parameters:
objectmParameters?Parameters to pass along with the event
intmParameters.newPosition?The number of the new position.
intmParameters.oldPosition?The number of the old position.
Returns:
sap.m.PagingButtonReference to this in order to allow method chaining
getCount(): int

Gets current value of property count.

Determines the total count of items/entities that the control navigates through. The minimum number of items/entities is 1.

Default value is 1.

Returns:
intValue of property count
getNextButtonTooltip(): string

Gets current value of property nextButtonTooltip.

Determines the tooltip of the next button.

Default value is .

Returns:
stringValue of property nextButtonTooltip
Since:
1.36
getPosition(): int

Gets current value of property position.

Determines the current position in the items/entities that the control navigates through. Starting (minimum) number is 1.

Default value is 1.

Returns:
intValue of property position
getPreviousButtonTooltip(): string

Gets current value of property previousButtonTooltip.

Determines the tooltip of the previous button.

Default value is .

Returns:
stringValue of property previousButtonTooltip
Since:
1.36