Codota Logo
ComboBoxBase.focusedProperty
Code IndexAdd Codota 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)

  • 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: 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

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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