Codota Logo
ComboBoxBase.isFocused
Code IndexAdd Codota to your IDE (free)

How to use
isFocused
method
in
javafx.scene.control.ComboBoxBase

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: jfoenixadmin/JFoenix

private void createPromptNode() {
  if (promptText != null || !linesWrapper.usePromptText.get()) {
    return;
  }
  promptText = new Text();
  StackPane.setAlignment(promptText, Pos.CENTER_LEFT);
  // create my custom pane for the prompt node
  promptText.textProperty().bind(getSkinnable().promptTextProperty());
  promptText.fillProperty().bind(linesWrapper.animatedPromptTextFill);
  promptText.getStyleClass().addAll("text");
  promptText.getTransforms().add(linesWrapper.promptTextScale);
  promptText.visibleProperty().bind(linesWrapper.usePromptText);
  promptText.setTranslateX(1);
  linesWrapper.promptContainer.getChildren().add(promptText);
  if (getSkinnable().isFocused() && ((JFXComboBox<T>) getSkinnable()).isLabelFloat()) {
    promptText.setTranslateY(-snapPosition(promptText.getBaselineOffset() + promptText.getLayoutBounds().getHeight() * .36));
    linesWrapper.promptTextScale.setX(0.85);
    linesWrapper.promptTextScale.setY(0.85);
  }
}
origin: com.aquafx-project/aquafx

public AquaColorPickerSkin(ColorPicker colorPicker) {
  super(colorPicker);
  registerChangeListener(colorPicker.focusedProperty(), "FOCUSED");
  if (getSkinnable().isFocused()) {
    setFocusBorder();
  } else {
    setDropShadow();
  }
}
origin: com.aquafx-project/aquafx

@Override protected void handleControlPropertyChanged(String p) {
  super.handleControlPropertyChanged(p);
  if (p == "FOCUSED") {
    if (!(getSkinnable().getParent() instanceof ComboBox)) {
      if (getSkinnable().isFocused()) {
        setFocusBorder();
      } else {
        setDropShadow();
      }
    }
  }
}

origin: com.aquafx-project/aquafx

public AquaComboBoxListViewSkin(ComboBox<T> comboBox) {
  super(comboBox);
  registerChangeListener(comboBox.disabledProperty(), "DISABLED");
  if (getSkinnable().isFocused()) {
    setFocusBorder();
  } else if (!getSkinnable().isFocused() && !getSkinnable().isDisabled()) {
    setDropShadow();
  }
  for (Object child : getChildren()) {
    ((Node) child).focusedProperty().addListener(focusListener);
  }
  if (comboBox.isEditable()) {
    getDisplayNode().focusedProperty().addListener(focusListener);
  }
  getSkinnable().focusedProperty().addListener(focusListener);
}
origin: com.jfoenix/jfoenix

private void createPromptNode() {
  if (promptText != null || !linesWrapper.usePromptText.get()) {
    return;
  }
  promptText = new Text();
  StackPane.setAlignment(promptText, Pos.CENTER_LEFT);
  // create my custom pane for the prompt node
  promptText.textProperty().bind(getSkinnable().promptTextProperty());
  promptText.fillProperty().bind(linesWrapper.animatedPromptTextFill);
  promptText.getStyleClass().addAll("text");
  promptText.getTransforms().add(linesWrapper.promptTextScale);
  promptText.visibleProperty().bind(linesWrapper.usePromptText);
  promptText.setTranslateX(1);
  linesWrapper.promptContainer.getChildren().add(promptText);
  if (getSkinnable().isFocused() && ((JFXComboBox<T>) getSkinnable()).isLabelFloat()) {
    promptText.setTranslateY(-snapPositionY(promptText.getBaselineOffset() + promptText.getLayoutBounds().getHeight() * .36));
    linesWrapper.promptTextScale.setX(0.85);
    linesWrapper.promptTextScale.setY(0.85);
  }
}
javafx.scene.controlComboBoxBaseisFocused

Popular methods of ComboBoxBase

  • focusedProperty
  • getHeight
  • getValue
  • hide
  • isEditable
  • isPressed
  • isShowing
  • promptTextProperty
  • setPickOnBounds
  • addEventFilter
  • editableProperty
  • getParent
  • editableProperty,
  • getParent,
  • isDisabled,
  • setEffect,
  • setOnAction

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JButton (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now