title: How do I bind CheckMenuItem.selectedProperty() to another ObservableValue?
body: <p>I want to bind a <code>CheckMenuItem</code>'s <code>selectedProperty</code> to another observable value, like <code>cmi.selectedProperty().bind(myObs)</code>. However, this is not possible, since the framework sets the selection property when the check menu item is clicked (see <a href="http://hg.openjdk.java.net/openjfx/8u/rt/file/956e47b045b3/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ContextMenuContent.java#l1394" rel="nofollow noreferrer">line 1394</a> of ContextMenuContent.java).</p>
  
  <p>Is there a way to intercept the click&mdash;so that I can do my own custom processing&mdash;and still bind the selection property to another observable?</p>
  
  <p>I suppose I'm thinking of the click as a request to update some state. The user clicks the menu item, then the program attempts to change some state accordingly, and the selection changes if the state successfully updated. Under 'normal' conditions, the check should toggle upon every click; however, if something bad happens, I'd prefer that the check doesn't toggle and instead reflects the true state of the program.</p>