CheckBoxWidget:
available constructors:
CheckBoxWidget(IPatch patch, IParameter param)
CheckBoxWidget(String label, IPatch patch, IParamModel pmodel, ISender sender)
addWidget(
    lfoPane, // the parent JComponent
    new CheckBoxWidget( // type of widget
        "LFO Sync", // the label
        patch, // the patch
        new ParamModel(patch,105), // the ParamModel
        new ParamSender(58) // the Sender
    ),
    1, // gridx
    6, // gridy
    1, // gridwidth
    1, // gridheight
    18 // slidernum
);
see ParamModel and SysexSender
example:
CheckBoxWidget.png
import core.*;
 
public class SPD11PadEditor extends PatchEditorFrame {
    public SPD11PadEditor (Patch pad){
        super("SPD11 Pad editor", pad);
        addWidget(scrollPane, // the parent JComponent
            new CheckBoxWidget( // the widget type
            "On / Off", // the label
            pad, // the patch
            new ParamModel( // the ParamModel
            pad,
            1),
            new SPD11Sender(1) // the ParamSender
            ),
            0, // gridx
            0, // gridy
            1, // gridwidth
            1, // gridheight
            1); // slidernum
    }
 
 
}
 

back to SysexWidgets