- java.lang.Object
-
- ilusr.core.javafx.LocalDragboard
-
public class LocalDragboard extends Object
- Author:
- Jeff Riggle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear(Class<?> type)
void
clearAll()
Clears all objects from the drag board.static LocalDragboard
getInstance()
<T> T
getValue(Class<T> type)
boolean
hasType(Class<?> type)
<T> void
putValue(Class<T> type, T value)
-
-
-
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.
-
-