search

Class myphysicslab.lab.util.ParameterBoolean

Provided By
All Implemented Interfaces

Provides access to a boolean value of a Subject. See myphysicslab.lab.util.Parameter for more documentation.

new ParameterBoolean( subject, name, localName, getter, setter, opt_choices, opt_values )

Parameters
subjectmyphysicslab.lab.util.Subject

the Subject whose value this ParameterBoolean represents

namestring

the name of this Parameter; this will be underscorized so the English name can be passed in here. See myphysicslab.lab.util.UtilityCore#toName.

localNamestring

the localized name of this Parameter

getterfunction(this: myphysicslab.lab.util.Subject): boolean

A method of subject with no arguments that returns the value of this Parameter

setterfunction(this: myphysicslab.lab.util.Subject, boolean): ?

A method of subject with one argument that sets the value of this Parameter

opt_choices(Array<string>|undefined)

the translated localized strings corresponding to the values (optional)

opt_values(Array<boolean>|undefined)

the booleans corresponding to the choices that the parameter can be set to (optional)

Instance Methods