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

How to use
CheckMenuItem
in
javafx.scene.control

Best Java code snippets using javafx.scene.control.CheckMenuItem (Showing top 17 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;
})
.set("workspace", () -> {
  final CheckMenuItem mi = new CheckMenuItem("_Workspace");
  mi.setGraphic(SpeedmentIcon.APPLICATION_FORM.view());
  mi.selectedProperty().bindBidirectional(ui.workspaceVisibleProperty());
  return mi;
})
.set("output", () -> {
  final CheckMenuItem mi = new CheckMenuItem("_Output");
  mi.setGraphic(SpeedmentIcon.APPLICATION_XP_TERMINAL.view());
  mi.selectedProperty().bindBidirectional(ui.outputVisibleProperty());
  return mi;
});
origin: com.aquafx-project/aquafx

CheckMenuItem showMessagesItem = new CheckMenuItem("Enable onShowing/onHiding _messages");
MenuItem menu15 = new MenuItem("E_xit");
final String change[] = {"Change Text", "Change Back"};
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: com.aquafx-project/aquafx

MenuItem windowDock = new MenuItem("Im Dock ablegen");
windowDock.setAccelerator(KeyCombination.keyCombination("shortcut+M"));
CheckMenuItem actual = new CheckMenuItem("Datum & Uhrzeit");
actual.setSelected(true);
menuWindow.getItems().addAll(windowClose, windowDock, new SeparatorMenuItem(), actual);
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

fullScreenMenuItem = new CheckMenuItem("FullScreen");
fullScreenMenuItem.setOnAction(e -> switchFullscreen());
fullScreenMenuItem.setAccelerator(new KeyCodeCombination(KeyCode.F, KeyCombination.CONTROL_DOWN, KeyCombination.SHORTCUT_DOWN));
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.github.almasb/fxgl-base

public void onTrackClicks(ActionEvent event) {
  CheckMenuItem item = (CheckMenuItem) event.getSource();
  if (item.isSelected()) {
    //app.getGameScene().addEventHandler(MouseEvent.MOUSE_PRESSED, clickTracker);
  } else {
    //app.getGameScene().removeEventHandler(MouseEvent.MOUSE_PRESSED, clickTracker);
  }
}
origin: org.controlsfx/controlsfx

/**
 * Takes the provided {@link Action} and returns a {@link CheckMenuItem} instance
 * with all relevant properties bound to the properties of the Action.
 *
 * @param action The {@link Action} that the {@link CheckMenuItem} should bind to.
 * @return A {@link CheckMenuItem} that is bound to the state of the provided
 *      {@link Action}
 */
public static CheckMenuItem createCheckMenuItem(final Action action) {
  return configure(new CheckMenuItem(), action);
}
origin: com.github.wshackle/poseList3DPlot

  autoSetScale();
});
showRotationFrames.setOnAction(e -> {
  scene3DController.setShowRotationFrames(showRotationFrames.isSelected());
  scene3DController.refreshScene(scene3DController.tracksList);
});
origin: org.codehaus.griffon/griffon-javafx

public static void configure(@Nonnull final CheckMenuItem control, @Nonnull final JavaFXAction action) {
  configure((MenuItem) control, action);
  action.selectedProperty().addListener((v, o, n) -> runInsideUIThread(() -> control.setSelected(n)));
  runInsideUIThread(() -> control.setSelected(action.isSelected()));
}
origin: com.aquafx-project/aquafx

MenuItem windowDock = new MenuItem("Im Dock ablegen");
windowDock.setAccelerator(KeyCombination.keyCombination("shortcut+M"));
CheckMenuItem actual = new CheckMenuItem("Datum & Uhrzeit");
actual.setSelected(true);
menuWindow.getItems().addAll(windowClose, windowDock, new SeparatorMenuItem(), actual);
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: com.aquafx-project/aquafx

  @Override public void invalidated(Observable valueModel) {
    menu112.setVisible(menu113.isSelected());
    System.err.println("MenuItem \"foo\" is now " + (menu112.isVisible() ? "" : "not") + " visible.");
  }
});
origin: org.controlsfx/controlsfx

/**
 * Takes the provided {@link Action} and returns a {@link MenuItem} instance
 * with all relevant properties bound to the properties of the Action.
 *
 * @param action The {@link Action} that the {@link MenuItem} should bind to.
 * @return A {@link MenuItem} that is bound to the state of the provided
 *      {@link Action}
 */
public static MenuItem createMenuItem(final Action action) {
  MenuItem menuItem =
    action.getClass().isAnnotationPresent(ActionCheck.class)? new CheckMenuItem(): new MenuItem();
  return configure( menuItem, action);
}
origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

fullScreenMenuItem.setSelected(fullscreenState.booleanValue());
maximize.setVisible(!fullscreenState.booleanValue());
iconify.setVisible(!fullscreenState.booleanValue());
origin: org.controlsfx/controlsfx

  ((RadioMenuItem)menuItem).selectedProperty().bindBidirectional(action.selectedProperty());
} else if ( menuItem instanceof CheckMenuItem ) {
  ((CheckMenuItem)menuItem).selectedProperty().bindBidirectional(action.selectedProperty());
origin: com.github.almasb/fxgl-base

public void onShowPosition(ActionEvent event) {
  CheckMenuItem item = (CheckMenuItem) event.getSource();
  FXGL.getSettings().getDevShowPosition().setValue(item.isSelected());
}
origin: com.github.almasb/fxgl-base

public void onShowBBox(ActionEvent event) {
  CheckMenuItem item = (CheckMenuItem) event.getSource();
  FXGL.getSettings().getDevShowBBox().setValue(item.isSelected());
}
javafx.scene.controlCheckMenuItem

Most used methods

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Top plugins for Android Studio
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