public interface Inserter
Inserter
is used by the DockRelocator
to build and execute
StationDropOperation
s independent from the involved DockStation
s and Dockable
s. The
Inserter
is a very powerful interface, as it can completely override any decision
that was made by a DockStation
.Inserter
does not have access to the internals of a DockStation
, nor does any DockStation
know of the existence of the Inserter
. Some station may however offer special methods to create
fitting StationDropOperation
s.Modifier and Type | Method and Description |
---|---|
StationDropOperation |
after(InserterSource source)
This method is called after
DockStation.prepareDrop(bibliothek.gui.dock.station.StationDropItem) was executed, the
method is called in any case independent of whether prepareDrop returned a StationDropOperation
or not. |
StationDropOperation |
before(InserterSource source)
This method is called if
DockStationDropLayer.contains(int, int) confirmed that a point belongs
to the layer, but before DockStation.prepareDrop(bibliothek.gui.dock.station.StationDropItem) was invoked. |
StationDropOperation before(InserterSource source)
DockStationDropLayer.contains(int, int)
confirmed that a point belongs
to the layer, but before DockStation.prepareDrop(bibliothek.gui.dock.station.StationDropItem)
was invoked.source
- information about the current position of the mouse, the invoked DockElement
s and
other things related to a drag and drop operation.null
if this Inserter
is not interested in the event, a value
not null
will override DockStation.prepareDrop(bibliothek.gui.dock.station.StationDropItem)
(the
method will never be called), in this case after(InserterSource)
is not called either.StationDropOperation after(InserterSource source)
DockStation.prepareDrop(bibliothek.gui.dock.station.StationDropItem)
was executed, the
method is called in any case independent of whether prepareDrop
returned a StationDropOperation
or not.source
- information about the current position of the mouse, the invoked DockElement
s and
other things related to a drag and drop operation.null
if this Inserter
is not interested in the event, a value
not null
will override the result of DockStation.prepareDrop(bibliothek.gui.dock.station.StationDropItem)