code: public static void bindToProperty (
          String property, PrefsConfig config, AbstractButton button, boolean defval)
      {
          // create a config binding which will take care of everything
          new ButtonConfigBinding(property, config, button, defval);
      }
docs: Binds the supplied button to the named boolean property in the supplied config repository.
  When the button is pressed, it will update the config property and when the config property
  is changed (by the button or by other means) it will update the selected state of the
  button. When the button is made non-visible, it will be unbound to the config's property and
  rebound again if it is once again visible.