Tabnine Logo
CheckMenuItem.selectedProperty
Code IndexAdd Tabnine to your IDE (free)

How to use
selectedProperty
method
in
javafx.scene.control.CheckMenuItem

Best Java code snippets using javafx.scene.control.CheckMenuItem.selectedProperty (Showing top 5 results out of 315)

origin: speedment/speedment

  final CheckMenuItem mi = new CheckMenuItem("_Project Tree");
  mi.setGraphic(SpeedmentIcon.APPLICATION_SIDE_TREE.view());
  mi.selectedProperty().bindBidirectional(ui.projectTreeVisibleProperty());
  return mi;
})
  final CheckMenuItem mi = new CheckMenuItem("_Workspace");
  mi.setGraphic(SpeedmentIcon.APPLICATION_FORM.view());
  mi.selectedProperty().bindBidirectional(ui.workspaceVisibleProperty());
  return mi;
})
  final CheckMenuItem mi = new CheckMenuItem("_Output");
  mi.setGraphic(SpeedmentIcon.APPLICATION_XP_TERMINAL.view());
  mi.selectedProperty().bindBidirectional(ui.outputVisibleProperty());
  return mi;
});
origin: org.drombler.commons/drombler-commons-action-fx

  /**
   * Configures a {@link CheckMenuItem} with the specified toggle action.
   *
   * @param menuItem the menu item to configre
   * @param action the action
   * @param iconSize the icon size
   */
  public static void configureCheckMenuItem(CheckMenuItem menuItem, FXToggleAction action, int iconSize) {
    configureMenuItem(menuItem, action, iconSize);
    menuItem.selectedProperty().bindBidirectional(action.selectedProperty());
  }
}
origin: com.aquafx-project/aquafx

final CheckMenuItem menu113 = new CheckMenuItem("Show \"foo\" item");
menu113.setSelected(true);
menu113.selectedProperty().addListener(new InvalidationListener() {
  @Override public void invalidated(Observable valueModel) {
    menu112.setVisible(menu113.isSelected());
origin: org.controlsfx/controlsfx

private static void unconfigure(final MenuItem menuItem) {
  if (menuItem == null || !(menuItem.getOnAction() instanceof Action)) {
    return;
  }
  Action action = (Action) menuItem.getOnAction();
  menuItem.styleProperty().unbind();
  menuItem.textProperty().unbind();
  menuItem.disableProperty().unbind();
  menuItem.acceleratorProperty().unbind();
  menuItem.graphicProperty().unbind();
  action.getProperties().removeListener(new MenuItemPropertiesMapChangeListener<>(menuItem, action));
  if (menuItem instanceof RadioMenuItem) {
    ((RadioMenuItem) menuItem).selectedProperty().unbindBidirectional(action.selectedProperty());
  } else if (menuItem instanceof CheckMenuItem) {
    ((CheckMenuItem) menuItem).selectedProperty().unbindBidirectional(action.selectedProperty());
  }
  menuItem.setOnAction(null);
}
origin: org.controlsfx/controlsfx

  ((RadioMenuItem)menuItem).selectedProperty().bindBidirectional(action.selectedProperty());
} else if ( menuItem instanceof CheckMenuItem ) {
  ((CheckMenuItem)menuItem).selectedProperty().bindBidirectional(action.selectedProperty());
javafx.scene.controlCheckMenuItemselectedProperty

Popular methods of CheckMenuItem

  • <init>
  • isSelected
  • setSelected
  • setOnAction
  • setAccelerator
  • setGraphic

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JList (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now