bibliothek.gui.dock.control.relocator
Interface InserterSource

All Known Implementing Classes:
DefaultInserterSource

public interface InserterSource

Contains information about a drop and drop operation that needs to be examined by an Inserter.

Author:
Benjamin Sigg

Method Summary
 StationDropItem getItem()
          Gets information about the item that is dropped.
 StationDropOperation getOperation()
          Gets the StationDropOperation that was created by DockStation.prepareDrop(StationDropItem), this might be null if the station was not yet asked or if the station does not accept the new child.
 DockStation getParent()
          Gets the DockStation which might be the next parent of getItem().
 

Method Detail

getParent

DockStation getParent()
Gets the DockStation which might be the next parent of getItem().

Returns:
the future parent, never null

getItem

StationDropItem getItem()
Gets information about the item that is dropped.

Returns:
detailed information about the dropping Dockable

getOperation

StationDropOperation getOperation()
Gets the StationDropOperation that was created by DockStation.prepareDrop(StationDropItem), this might be null if the station was not yet asked or if the station does not accept the new child.

Returns:
the pending operation, can be null