Select
pentaho.visual.action. Select
The Select
action is a synchronous, data and positioned action that is performed when the user interacts with a visual element, typically by clicking on it.
AMD Module
require(["pentaho/visual/action/Select"], function(Select) { /* code goes here */ });
See also: pentaho.visual.action.spec.ISelect , pentaho.visual.action.spec.ISelectType
Extends
- pentaho.visual.action.Base
- pentaho.visual.action.mixins.Data
- pentaho.visual.action.mixins.Positioned
Constructor
Name | Description |
---|---|
new Select(spec) | Creates a data action instance given its specification. |
Members
Name | Description |
---|---|
$isValid : | Determines if this value is a valid. |
$key : | Gets the key of the value. |
$type : | Gets the type of this instance. |
dataFilter : | Gets or sets the data filter of this action. |
position : | Gets or sets the position where the action took place, in screen coordinates. |
selectionMode : | Gets or sets the selection mode of this action. |
Methods
Name | Description |
---|---|
_compare(other) : number Protected | Compares this element to a distinct, non-equal element of the same type according to its relative order. |
_configure(config) Protected | Configures this value with a given distinct and non- |
_configureOrCreate(config) : pentaho.type.Element Protected | Configures this value with a given distinct and non- |
_equals(other) : boolean Protected | Gets a value that indicates if a given distinct, non-null value of the same type represents the same entity. |
_init(spec) Protected | Initializes an action instance given its specification. |
assertValid() | Ensures that the value is valid, and throws the first validation error if it is not. |
clone() : pentaho.type.Value | Creates a shallow clone of this value. |
compare(other) : number | Compares this element to another according to its relative order. |
configure(config) | Configures this value with a given configuration. |
configureOrCreate(config) : pentaho.type.Element | Configures this value with a given configuration, if it is possible. Otherwise creates and returns a new value based on this one, but with the configuration applied. |
equals(other) : boolean | Determines if a given value represents the same entity. |
equalsContent(other) : boolean | Gets a value that indicates if a given equal value has the same content as this one. |
toJSON() : JsonValue | Creates a top-level JSON specification that describes this instance. |
toSpec(keyArgs) : pentaho.type.spec.Instance | Creates a specification that describes this value. |
toSpecInContext(keyArgs) : any | Creates a specification that describes this instance. |
validate() : Array.< | Determines if this value is valid. |
Constructor Details
new Select(spec) | ||||||
---|---|---|---|---|---|---|
Creates a data action instance given its specification. Source: javascript/web/pentaho/visual/action/Select.js, line 120
See also: pentaho.visual.action.spec.ISelect , pentaho.visual.action.spec.ISelectType |
Members Details
$isValid: |
---|
Determines if this value is a valid. This attribute calls |
$key: |
---|
Gets the key of the value. The key of a value must identify it among values of the same concrete type. Two values of the same concrete type and with the same key represent the same entity. If two values have the same concrete type and their keys are equal, then it must also be the case that The default implementation returns the result of calling Source: javascript/web/pentaho/type/Value.js, line 89 Overrides: pentaho.visual.action.mixins.Positioned#$key See also: pentaho.type.Value#equals |
$type: |
---|
Gets the type of this instance. |
dataFilter: |
---|
Gets or sets the data filter of this action. When set to a filter specification, Source: javascript/web/pentaho/visual/action/mixins/Data.js, line 86 Inherited From: pentaho.visual.action.mixins.Data#dataFilter |
position: |
---|
Gets or sets the position where the action took place, in screen coordinates. Source: javascript/web/pentaho/visual/action/mixins/Positioned.js, line 75 Inherited From: pentaho.visual.action.mixins.Positioned#position |
selectionMode: |
---|
Gets or sets the selection mode of this action. The default value is the value of Setting to a Can be set to the name of one of the standard selection modes, Source: javascript/web/pentaho/visual/action/Select.js, line 146 |
Methods Details
_compare(other) : number Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Compares this element to a distinct, non-equal element of the same type according to its relative order. The default implementation does a lexicographical comparison of the elements' Source: javascript/web/pentaho/type/Element.js, line 105 Overrides: pentaho.visual.action.mixins.Positioned#_compare
See also: pentaho.type.Element#compare , pentaho.type.Value#equals |
_configure(config) Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Configures this value with a given distinct and non- This method can only be called when there is an ambient transaction. The default implementation throws an error if this value's type is Source: javascript/web/pentaho/type/Value.js, line 264 Overrides: pentaho.visual.action.mixins.Positioned#_configure
See also: pentaho.type.Value#configure , pentaho.type.Complex#_configure , pentaho.type.List#_configure |
_configureOrCreate(config) : pentaho.type.Element Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Configures this value with a given distinct and non- This method can only be called when there is an ambient transaction. Source: javascript/web/pentaho/type/Element.js, line 175 Inherited From: pentaho.type.Element#_configureOrCreate
See also: pentaho.type.Element#configureOrCreate , pentaho.type.Value#configure |
_equals(other) : boolean Protected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given distinct, non-null value of the same type represents the same entity. The default implementation considers two values equal if they have the equal keys. Source: javascript/web/pentaho/type/Value.js, line 135 Overrides: pentaho.visual.action.mixins.Positioned#_equals
See also: pentaho.type.Value#equals , pentaho.type.Value#$key |
_init(spec) Protected | ||||||
---|---|---|---|---|---|---|
Initializes an action instance given its specification. Source: javascript/web/pentaho/type/action/Base.js, line 172 Overrides: pentaho.visual.action.mixins.Positioned#_init
|
assertValid() | ||||
---|---|---|---|---|
Ensures that the value is valid, and throws the first validation error if it is not. This method calls the Source: javascript/web/pentaho/type/Value.js, line 202 Overrides: pentaho.visual.action.mixins.Positioned#assertValid
|
clone() : pentaho.type.Value | ||||
---|---|---|---|---|
Creates a shallow clone of this value. Source: javascript/web/pentaho/type/Value.js, line 93 Overrides: pentaho.visual.action.mixins.Positioned#clone
|
compare(other) : number | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Compares this element to another according to its relative order. Execution proceeds as follows:
Source: javascript/web/pentaho/type/Element.js, line 76 Overrides: pentaho.visual.action.mixins.Positioned#compare
See also: pentaho.type.Element#_compare , pentaho.type.Value#equals |
configure(config) | ||
---|---|---|
Configures this value with a given configuration. This method ensures a transaction exists and then delegates to For more information on the semantics of configuration, see Source: javascript/web/pentaho/type/Value.js, line 232 Overrides: pentaho.visual.action.mixins.Positioned#configure |
Name | Default Value | Summary |
---|---|---|
config : any | The value configuration. |
Name | Description |
---|---|
TypeError | When the value would be changed and its type is |
See also: pentaho.type.Element#configureOrCreate , pentaho.type.Complex#_configure , pentaho.type.List#_configure
configureOrCreate(config) : pentaho.type.Element | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Configures this value with a given configuration, if it is possible. Otherwise creates and returns a new value based on this one, but with the configuration applied. If the given configuration is This method considers configuration to not be possible in the following situations:
If configuration is considered possible, the actual configuration is delegated to the Source: javascript/web/pentaho/type/Element.js, line 141 Overrides: pentaho.visual.action.mixins.Positioned#configureOrCreate
|
equals(other) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines if a given value represents the same entity. This method checks if the given value is identical to this one. Otherwise, if not Source: javascript/web/pentaho/type/Value.js, line 116 Overrides: pentaho.visual.action.mixins.Positioned#equals
See also: pentaho.type.Value#_equals |
equalsContent(other) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given equal value has the same content as this one. This method must only be called if the The default implementation returns Source: javascript/web/pentaho/type/Value.js, line 152 Overrides: pentaho.visual.action.mixins.Positioned#equalsContent
See also: pentaho.type.Value#equals |
toJSON() : JsonValue | ||||
---|---|---|---|---|
Creates a top-level JSON specification that describes this instance. Attributes which do not have a JSON-compatible specification are omitted. Specifically, for inline types, attributes with a function value are not supported. This method simply calls Source: javascript/web/pentaho/type/Instance.js, line 197 Overrides: pentaho.visual.action.mixins.Positioned#toJSON
See also: pentaho.type.Instance#toSpec |
toSpec(keyArgs) : pentaho.type.spec.Instance | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a specification that describes this value. If an |
Name | Default Value | Summary | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
keyArgs : Object Optional | The keyword arguments object. Passed to every value and type serialized within this scope. Please see the documentation of value subclasses for information on additional, supported keyword arguments.
|
Name | Description |
---|---|
pentaho.type.spec.Instance | A specification of this value. |
toSpecInContext(keyArgs) : any | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Creates a specification that describes this instance. Source: javascript/web/pentaho/type/Instance.js, line 177 Overrides: pentaho.visual.action.mixins.Positioned#toSpecInContext
See also: pentaho.type.Instance#toSpec |
validate() : Array.< | ||||
---|---|---|---|---|
Determines if this value is valid. The default implementation does nothing and considers the instance valid. Override to implement a type's specific validation logic. You can use the error utilities in Source: javascript/web/pentaho/type/Value.js, line 187 Overrides: pentaho.visual.action.mixins.Positioned#validate
See also: pentaho.type.Value#$isValid |