Tabnine Logo
ComboBoxBase.isFocused
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best IntelliJ plugins
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