Class actuate.parameter.NameValuePair
Description
The NameValuePair object contains a display name associated with a value. The actuate.parameterDefinition.setSelectNameValueList( ) function takes an array of actuate.parameter.NameValuePair objects to use in a selection list. In this way, a ParameterDefinition can display a list of names and map them to values used internally. For example, set the name "My Default Country" for a NameValuePair to display "My Default Country" in the drop-down list in the interface, and set the value to "United States" internally for a US user.
Constructor
Syntax
Constructs a new NameValuePair object.
Parameters
String. The name to display in the selection list.
String. The value that selecting the name sets internally.
Function summary
Table 4-21 lists actuate.parameter.NameValuePair functions.
Table 4-21 actuate.parameter.NameValuePair functions getName( ) setName( )actuate.parameter.NameValuePair.getName
Syntax
Returns the name for this NameValuePair.
Returns
Example
This sample code returns the name component of the myNVPair NameValuePair object.
actuate.parameter.NameValuePair.getValue
Syntax
Returns the value for this NameValuePair.
Returns
Example
This sample code returns the value component of the myNVPair NameValuePair object.
actuate.parameter.NameValuePair.setName
Syntax
Sets the name for the NameValuePair.
Parameters
Example
This sample code sets the name component of the myNVPair NameValuePair object to "My hometown".
actuate.parameter.NameValuePair.setValue
Syntax
Sets the value for the NameValuePair.
Parameters
Example
This sample code sets the value component of the myNVPair NameValuePair object to Cleveland.
(c) Copyright Actuate Corporation 2011 |
![]() |