Function Widget.updateStateFromAction

apply enabled, visibile and checked state for this widget from action's state

void updateStateFromAction(
  Action a
);