Interface TreeDragSource

All Superinterfaces:
Proxy
All Known Implementing Classes:
ListStore, TreeDragSource.TreeDragSource$Impl, TreeModelFilter, TreeModelSort, TreeStore

@Generated("org.javagi.JavaGI") @Deprecated public interface TreeDragSource extends Proxy
Deprecated.
List views use widgets to display their contents. You can use DragSource to implement a drag source
Interface for Drag-and-Drop destinations in GtkTreeView.
  • Method Details

    • getType

      static @Nullable Type getType()
      Deprecated.
      Get the GType of the TreeDragSource class.
      Returns:
      the GType
    • dragDataDelete

      @Deprecated default boolean dragDataDelete(TreePath path)
      Deprecated.
      Use list models instead
      Asks the GtkTreeDragSource to delete the row at path, because it was moved somewhere else via drag-and-drop. Returns false if the deletion fails because path no longer exists, or for some model-specific reason. Should robustly handle a path no longer found in the model!
      Parameters:
      path - row that was being dragged
      Returns:
      true if the row was successfully deleted
    • dragDataGet

      @Deprecated default @Nullable ContentProvider dragDataGet(TreePath path)
      Deprecated.
      Use list models instead
      Asks the GtkTreeDragSource to return a GdkContentProvider representing the row at path. Should robustly handle a path no longer found in the model!
      Parameters:
      path - row that was dragged
      Returns:
      a GdkContentProvider for the given path
    • rowDraggable

      @Deprecated default boolean rowDraggable(TreePath path)
      Deprecated.
      Use list models instead
      Asks the GtkTreeDragSource whether a particular row can be used as the source of a DND operation. If the source doesn’t implement this interface, the row is assumed draggable.
      Parameters:
      path - row on which user is initiating a drag
      Returns:
      true if the row can be dragged