Button

UI Object for a button. The button can be connected to a parameter of a module and will set that parameter to 1 when the button is pressed. When the button is released again, the parameter is set to 0. Normally, the parameter should initially be set to 0 in the module.

the button object
Example Button View with Three Buttons

Example XML definition

  <object
    class="Button" 
    module="MY_MODULE"
    parameter="p"
    x="0"
    y="0" 
  />

Attributes

Attribute Description Default
class must be "Button"  
title title of the button module.parameter
x placement of the object  
y placement of the object  
w width of the object 1
h height of the object 1
module name of the module where the parameter will be controlled  
parameter name of the paramater to control  
select index of the element of the parameter if array or matrix [0,0]
min value when the button is released 0
max value when the button is pressed 1
Attributes without default values must be specified except where described above.

Author

Christian Balkenius
Lund University Cognitive Science
christian.balkenius@lucs.lu.se

Files

Button.js