if you are using a toggle button (i.e toggle property of
button is set to true)
then you can set the 'selected' property of button to either
true or false and
click the button programmatically, while doing the
'valueCommit' event will be fired
where you can do whatsoever you want to do.
and if you are not using toggle button then previous solution