Class sap.m.P13nDialogModule: sap/m/P13nDialog

extends Dialog

The P13nDialog control provides a dialog that contains one or more panels. On each of the panels, one or more changes with regards to a table can be processed. For example, a panel to set a column to invisible, change the order of the columns or a panel to sort or filter tables.


Since: 1.26.0.
Constructor Summary
new sap.m.P13nDialog(sId?, mSettings?)Constructor for a new P13nDialog.
Event Summary
cancel(oControlEvent)Event fired if the 'cancel' button in P13nDialog is clicked.
ok(oControlEvent)Event fired if the 'ok' button in P13nDialog is clicked.
reset(oControlEvent)Event fired if the 'reset' button in P13nDialog is clicked.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.P13nDialog.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.P13nDialog with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.P13nDialog.getMetadata()Returns a metadata object for class sap.m.P13nDialog.
addPanel(oPanel)Adds some panel to the aggregation panels.
attachCancel(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the cancel event of this sap.m.P13nDialog.
attachOk(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the ok event of this sap.m.P13nDialog.
attachReset(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the reset event of this sap.m.P13nDialog.
bindPanels(oBindingInfo)Binds aggregation panels to model data.
destroyPanels()Destroys all the panels in the aggregation panels.
detachCancel(fnFunction, oListener)Detaches event handler fnFunction from the cancel event of this sap.m.P13nDialog.
detachOk(fnFunction, oListener)Detaches event handler fnFunction from the ok event of this sap.m.P13nDialog.
detachReset(fnFunction, oListener)Detaches event handler fnFunction from the reset event of this sap.m.P13nDialog.
fireCancel(mArguments?)Fires event cancel to attached listeners.
fireOk(mArguments?)Fires event ok to attached listeners.
fireReset(mArguments?)Fires event reset to attached listeners.
getInitialVisiblePanelType()Gets current value of property initialVisiblePanelType.
getPanels()Gets content of aggregation panels.
getShowReset()Gets current value of property showReset.
getShowResetEnabled()Gets current value of property showResetEnabled.
getValidationExecutor()Gets current value of property validationExecutor.
getVisiblePanel()Returns visible panel.
indexOfPanel(oPanel)Checks for the provided sap.m.P13nPanel in the aggregation panels.
insertPanel(oPanel, iIndex)Inserts a panel into the aggregation panels.
removeAllPanels()Removes all the controls from the aggregation panels.
removePanel(vPanel)Removes a panel from the aggregation panels.
setInitialVisiblePanelType(sInitialVisiblePanelType)Sets a new value for property initialVisiblePanelType.
setShowReset(bShowReset)Sets a new value for property showReset.
setShowResetEnabled(bShowResetEnabled)Sets a new value for property showResetEnabled.
setValidationExecutor(oValidationExecutor)Sets a new value for property validationExecutor.
unbindPanels()Unbinds aggregation panels from model data.
Constructor Detail
new sap.m.P13nDialog(sId?, mSettings?)
Constructor for a new P13nDialog.

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:

  • Properties
  • Aggregations
  • Events
    • ok : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
    • cancel : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
    • reset : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]

In addition, all settings applicable to the base type sap.m.Dialog can be used as well.

Parameters:
{string}sId? ID for the new control, generated automatically if no ID is given
{object}mSettings? initial settings for the new control
Event Detail
cancel(oControlEvent)
Event fired if the 'cancel' button in P13nDialog is clicked.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Since:
1.26.0
ok(oControlEvent)
Event fired if the 'ok' button in P13nDialog is clicked.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Since:
1.26.0
reset(oControlEvent)
Event fired if the 'reset' button in P13nDialog is clicked.
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Since:
1.26.0
Method Detail
sap.m.P13nDialog.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.P13nDialog with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.m.Dialog.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.m.P13nDialog.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.P13nDialog.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
addPanel(oPanel): sap.m.P13nDialog
Adds some panel to the aggregation panels.
Parameters:
{sap.m.P13nPanel}oPanel the panel to add; if empty, nothing is inserted
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
attachCancel(oData?, fnFunction, oListener?): sap.m.P13nDialog
Attaches event handler fnFunction to the cancel event of this sap.m.P13nDialog.

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.P13nDialog itself.

Event fired if the 'cancel' button in P13nDialog is clicked.

Parameters:
{object}oData? An application-specific payload object that will be passed to the event handler along with the event object when firing the event
{function}fnFunction The function to be called when the event occurs
{object}oListener? Context object to call the event handler with. Defaults to this sap.m.P13nDialog itself
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
attachOk(oData?, fnFunction, oListener?): sap.m.P13nDialog
Attaches event handler fnFunction to the ok event of this sap.m.P13nDialog.

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.P13nDialog itself.

Event fired if the 'ok' button in P13nDialog is clicked.

Parameters:
{object}oData? An application-specific payload object that will be passed to the event handler along with the event object when firing the event
{function}fnFunction The function to be called when the event occurs
{object}oListener? Context object to call the event handler with. Defaults to this sap.m.P13nDialog itself
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
attachReset(oData?, fnFunction, oListener?): sap.m.P13nDialog
Attaches event handler fnFunction to the reset event of this sap.m.P13nDialog.

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.P13nDialog itself.

Event fired if the 'reset' button in P13nDialog is clicked.

Parameters:
{object}oData? An application-specific payload object that will be passed to the event handler along with the event object when firing the event
{function}fnFunction The function to be called when the event occurs
{object}oListener? Context object to call the event handler with. Defaults to this sap.m.P13nDialog itself
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
bindPanels(oBindingInfo): sap.m.P13nDialog
Binds aggregation panels to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

Parameters:
{object}oBindingInfo The binding information
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
destroyPanels(): sap.m.P13nDialog
Destroys all the panels in the aggregation panels.
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
detachCancel(fnFunction, oListener): sap.m.P13nDialog
Detaches event handler fnFunction from the cancel event of this sap.m.P13nDialog.

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

Parameters:
{function}fnFunction The function to be called, when the event occurs
{object}oListener Context object on which the given function had to be called
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
detachOk(fnFunction, oListener): sap.m.P13nDialog
Detaches event handler fnFunction from the ok event of this sap.m.P13nDialog.

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

Parameters:
{function}fnFunction The function to be called, when the event occurs
{object}oListener Context object on which the given function had to be called
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
detachReset(fnFunction, oListener): sap.m.P13nDialog
Detaches event handler fnFunction from the reset event of this sap.m.P13nDialog.

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

Parameters:
{function}fnFunction The function to be called, when the event occurs
{object}oListener Context object on which the given function had to be called
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
fireCancel(mArguments?): sap.m.P13nDialog
Fires event cancel to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
fireOk(mArguments?): sap.m.P13nDialog
Fires event ok to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
fireReset(mArguments?): sap.m.P13nDialog
Fires event reset to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
getInitialVisiblePanelType(): string
Gets current value of property initialVisiblePanelType.

This property determines which panel is initially shown when dialog is opened. Due to extensibility reason the type should be string. So it is feasible to add a custom panel without expanding the type.

Since:
1.26.0
Returns:
{string} Value of property initialVisiblePanelType
getPanels(): sap.m.P13nPanel[]
Gets content of aggregation panels.

The dialog panels displayed in the dialog.

Since:
1.26.0
Returns:
{sap.m.P13nPanel[]}
getShowReset(): boolean
Gets current value of property showReset.

This property determines whether the 'Restore' button is shown inside the dialog. If this property is set to true, clicking the 'Reset' button will trigger the reset event sending a notification that model data must be reset.

Default value is false.

Since:
1.26.0
Returns:
{boolean} Value of property showReset
getShowResetEnabled(): boolean
Gets current value of property showResetEnabled.

This property determines whether the 'Restore' button is enabled and is taken into account only if showReset is set to true.

Default value is false.

Since:
1.36.0
Returns:
{boolean} Value of property showResetEnabled
getValidationExecutor(): object
Gets current value of property validationExecutor.

Calls the validation listener once all panel-relevant validation checks have been done. This callback function is called in order to perform cross-model validation checks.

Returns:
{object} Value of property validationExecutor
getVisiblePanel(): sap.m.P13nPanel|null
Returns visible panel.
Since:
1.26.0
Returns:
{sap.m.P13nPanel|null}
indexOfPanel(oPanel): int
Checks for the provided sap.m.P13nPanel in the aggregation panels. and returns its index if found or -1 otherwise.
Parameters:
{sap.m.P13nPanel}oPanel The panel whose index is looked for
Since:
1.26.0
Returns:
{int} The index of the provided control in the aggregation if found, or -1 otherwise
insertPanel(oPanel, iIndex): sap.m.P13nDialog
Inserts a panel into the aggregation panels.
Parameters:
{sap.m.P13nPanel}oPanel the panel to insert; if empty, nothing is inserted
{int}iIndex the 0-based index the panel should be inserted at; for a negative value of iIndex, the panel is inserted at position 0; for a value greater than the current size of the aggregation, the panel is inserted at the last position
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
removeAllPanels(): sap.m.P13nPanel[]
Removes all the controls from the aggregation panels.

Additionally, it unregisters them from the hosting UIArea.

Since:
1.26.0
Returns:
{sap.m.P13nPanel[]} An array of the removed elements (might be empty)
removePanel(vPanel): sap.m.P13nPanel
Removes a panel from the aggregation panels.
Parameters:
{int|string|sap.m.P13nPanel}vPanel The panelto remove or its index or id
Since:
1.26.0
Returns:
{sap.m.P13nPanel} The removed panel or null
setInitialVisiblePanelType(sInitialVisiblePanelType): sap.m.P13nDialog
Sets a new value for property initialVisiblePanelType.

This property determines which panel is initially shown when dialog is opened. Due to extensibility reason the type should be string. So it is feasible to add a custom panel without expanding the type.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sInitialVisiblePanelType New value for property initialVisiblePanelType
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
setShowReset(bShowReset): sap.m.P13nDialog
Sets a new value for property showReset.

This property determines whether the 'Restore' button is shown inside the dialog. If this property is set to true, clicking the 'Reset' button will trigger the reset event sending a notification that model data must be reset.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

Parameters:
{boolean}bShowReset New value for property showReset
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
setShowResetEnabled(bShowResetEnabled): sap.m.P13nDialog
Sets a new value for property showResetEnabled.

This property determines whether the 'Restore' button is enabled and is taken into account only if showReset is set to true.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

Parameters:
{boolean}bShowResetEnabled New value for property showResetEnabled
Since:
1.36.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
setValidationExecutor(oValidationExecutor): sap.m.P13nDialog
Sets a new value for property validationExecutor.

Calls the validation listener once all panel-relevant validation checks have been done. This callback function is called in order to perform cross-model validation checks.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{object}oValidationExecutor New value for property validationExecutor
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining
unbindPanels(): sap.m.P13nDialog
Unbinds aggregation panels from model data.
Since:
1.26.0
Returns:
{sap.m.P13nDialog} Reference to this in order to allow method chaining