Constructor and Description |
---|
MultiInserter() |
Modifier and Type | Method and Description |
---|---|
void |
add(Inserter inserter)
|
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. |
Inserter |
get(int index)
Gets the
index 'th inserter in the list of inserters. |
void |
remove(Inserter inserter)
Removes
inserter from the list of Inserter s. |
int |
size()
Gets the total number of
Inserter s in this list of inserters. |
public void add(Inserter inserter)
inserter
- the new item, not null
public void remove(Inserter inserter)
inserter
from the list of Inserter
s.inserter
- the item to removepublic int size()
Inserter
s in this list of inserters.public Inserter get(int index)
index
'th inserter in the list of inserters.index
- the locationnull
public StationDropOperation before(InserterSource source)
Inserter
DockStationDropLayer.contains(int, int)
confirmed that a point belongs
to the layer, but before DockStation.prepareDrop(bibliothek.gui.dock.station.StationDropItem)
was invoked.before
in interface Inserter
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 Inserter.after(InserterSource)
is not called either.public StationDropOperation after(InserterSource source)
Inserter
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.after
in interface Inserter
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)