Interface NodeUtils


public interface NodeUtils
Utility class for working with nodes.
Author:
Besmir Beqiri
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Object
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <K, V> V
    getPropertyValue(javafx.scene.Node node, K key, V defaultValue)
    Retrieves the value of a property associated with the given key from a node.
  • Field Details

    • MULTI_FILE_UPLOADER_KEY

      static final Object MULTI_FILE_UPLOADER_KEY
  • Method Details

    • getPropertyValue

      static <K, V> V getPropertyValue(javafx.scene.Node node, K key, V defaultValue)
      Retrieves the value of a property associated with the given key from a node.
      Type Parameters:
      K - the type of the key
      V - the type of the value
      Parameters:
      node - the node to retrieve the property value from
      key - the key of the property to retrieve
      defaultValue - the default value to return if the property does not exist
      Returns:
      the value of the property associated with the given key, or the default value if the property does not exist