Move
pentaho.type.action Move
The Move
class describes the primitive operation that changes an element position inside a list.
This type of change is always part of a pentaho.type.action.ListChangeset
.
AMD Module
require(["pentaho/type/action/Move"], function(Move) { /* code goes here */ });
Extends
Constructor
Name | Description |
---|---|
new Move(elem, indexOld, indexNew) | Creates an instance. |
Members
Name | Description |
---|---|
element : | Gets the element that is about to be moved in the list. |
eventName | |
indexNew : | Gets the new index of the element in the list. |
indexOld : | Gets the old index of the element in the list. |
transactionVersion |
Methods
Name | Description |
---|---|
_cancel(changeset) Protected | Unregisters reference changes caused by this change. |
_prepare(changeset) Protected | Registers reference changes caused by this change. |
_setTransactionVersion(txnVersion) Protected | Sets the new transaction version of this change. |
Constructor Details
new Move(elem, indexOld, indexNew) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance. Source: javascript/web/pentaho/type/action/Move.js, line 54
|
Members Details
element: |
---|
Gets the element that is about to be moved in the list. |
eventName: |
---|
Source: javascript/web/pentaho/type/action/Change.js, line 40 Inherited From: pentaho.type.action.Change#eventName |
indexNew: |
---|
Gets the new index of the element in the list. |
indexOld: |
---|
Gets the old index of the element in the list. |
transactionVersion: |
---|
Source: javascript/web/pentaho/type/action/PrimitiveChange.js, line 49 Inherited From: pentaho.type.action.PrimitiveChange#transactionVersion |
Methods Details
_cancel(changeset) Protected | ||||||
---|---|---|---|---|---|---|
Unregisters reference changes caused by this change. Source: javascript/web/pentaho/type/action/PrimitiveChange.js, line 83 Inherited From: pentaho.type.action.PrimitiveChange#_cancel
|
_prepare(changeset) Protected | ||||||
---|---|---|---|---|---|---|
Registers reference changes caused by this change. Source: javascript/web/pentaho/type/action/PrimitiveChange.js, line 72 Inherited From: pentaho.type.action.PrimitiveChange#_prepare
|
_setTransactionVersion(txnVersion) Protected | ||||||
---|---|---|---|---|---|---|
Sets the new transaction version of this change. Source: javascript/web/pentaho/type/action/PrimitiveChange.js, line 60 Inherited From: pentaho.type.action.PrimitiveChange#_setTransactionVersion
|