Module ilusr.core

Class LocalDragboard


  • public class LocalDragboard
    extends Object
    Author:
    Jeff Riggle
    • Method Detail

      • getInstance

        public static LocalDragboard getInstance()
        Returns:
        A @see LocalDragboard.
      • putValue

        public <T> void putValue​(Class<T> type,
                                 T value)
        Parameters:
        type - The class to put on the drag board.
        value - The value to associate with that class on the drag board.
      • getValue

        public <T> T getValue​(Class<T> type)
        Parameters:
        type - The class to pull from the drag board.
        Returns:
        The value for the class on the drag board.
      • hasType

        public boolean hasType​(Class<?> type)
        Parameters:
        type - The class to evaluate on the drag board.
        Returns:
        If the class exists on the drag board.
      • clear

        public void clear​(Class<?> type)
        Parameters:
        type - The class to remove from the drag board.
      • clearAll

        public void clearAll()
        Clears all objects from the drag board.