| 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 Inserters. |
int |
size()
Gets the total number of
Inserters in this list of inserters. |
public void add(Inserter inserter)
inserter - the new item, not nullpublic void remove(Inserter inserter)
inserter from the list of Inserters.inserter - the item to removepublic int size()
Inserters in this list of inserters.public Inserter get(int index)
index'th inserter in the list of inserters.index - the locationnullpublic StationDropOperation before(InserterSource source)
InserterDockStationDropLayer.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 Insertersource - information about the current position of the mouse, the invoked DockElements 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)
InserterDockStation.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 Insertersource - information about the current position of the mouse, the invoked DockElements 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)Copyright © 2017 Docking Frames. All rights reserved.