Replace
pentaho.type.action Replace
The Replace
class describes the primitive operation that replaces the value of an element property
of a complex instance.
This type of change is always part of a pentaho.type.action.ComplexChangeset
.
AMD Module
require(["pentaho/type/action/Replace"], function(Replace) { /* code goes here */ });
Extends
Constructor
Name | Description |
---|---|
new Replace(propType, valueNew, stateNew) | Creates an instance. |
Members
Name | Description |
---|---|
id Static | |
eventName | |
property : | Gets the property whose value is replaced. |
state : | Gets the state that will replace the current state of the property. |
transactionVersion | |
type : | Gets the type of change. |
value : | Gets the value that will replace the current value of the property. |
Methods
Name | Description |
---|---|
_apply() | |
_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 Replace(propType, valueNew, stateNew) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance. Source: javascript/web/pentaho/type/action/Replace.js, line 49
|
Members Details
id: Static |
---|
Source: javascript/web/pentaho/type/action/Replace.js, line 154 |
eventName: |
---|
Source: javascript/web/pentaho/type/action/Change.js, line 40 Inherited From: pentaho.type.action.Change#eventName |
property: |
---|
Gets the property whose value is replaced. Source: javascript/web/pentaho/type/action/Replace.js, line 50 |
state: |
---|
Gets the state that will replace the current state of the property. Source: javascript/web/pentaho/type/action/Replace.js, line 142 |
transactionVersion: |
---|
Source: javascript/web/pentaho/type/action/PrimitiveChange.js, line 49 Inherited From: pentaho.type.action.PrimitiveChange#transactionVersion |
type: |
---|
Gets the type of change. Source: javascript/web/pentaho/type/action/Replace.js, line 122 Default Value: "replace" See also: pentaho.type.action.Change#type |
value: |
---|
Gets the value that will replace the current value of the property. Source: javascript/web/pentaho/type/action/Replace.js, line 132 |
Methods Details
_apply() |
---|
Source: javascript/web/pentaho/type/action/Replace.js, line 147 |
_cancel(changeset) Protected | ||||||
---|---|---|---|---|---|---|
Unregisters reference changes caused by this change. Source: javascript/web/pentaho/type/action/PrimitiveChange.js, line 83 Overrides: 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 Overrides: 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
|