|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.control.relocator.MultiInserter
public class MultiInserter
An Inserter
which consists of several child Inserter
s. In any method the first
result that is not null
is the result of the entire Inserter
.
Constructor Summary | |
---|---|
MultiInserter()
|
Method Summary | |
---|---|
void |
add(Inserter inserter)
Adds a new Inserter to the list of Inserter s. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiInserter()
Method Detail |
---|
public void add(Inserter inserter)
Inserter
to the list of Inserter
s.
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 location
null
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |