Tabnine Logo
ComboBoxBase.focusedProperty
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.jfoenix/jfoenix

private void removeParentFakeFocusListener(ComboBoxBase<T> comboBoxBase) {
  // handle FakeFocusField cast exception
  try {
    final ReadOnlyBooleanProperty focusedProperty = comboBoxBase.focusedProperty();
    ExpressionHelper value = ReflectionHelper.getFieldContent(focusedProperty.getClass().getSuperclass(), focusedProperty, "helper");
    ChangeListener[] changeListeners = ReflectionHelper.getFieldContent(value.getClass(), value, "changeListeners");
    // remove parent focus listener to prevent editor class cast exception
    for(int i = changeListeners.length - 1; i > 0; i--) {
      if (changeListeners[i] != null && changeListeners[i].getClass().getName().contains("ComboBoxPopupControl")) {
        focusedProperty.removeListener(changeListeners[i]);
        break;
      }
    }
  } catch (Exception e) {
    e.printStackTrace();
  }
}
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);
}
javafx.scene.controlComboBoxBasefocusedProperty

Popular methods of ComboBoxBase

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

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFileChooser (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 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