public interface ScreenDockStationExtension
ScreenDockStation
and changes the functionality of some
methods.Modifier and Type | Interface and Description |
---|---|
static class |
ScreenDockStationExtension.DropArguments
A class offering all the arguments of the method
ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReplace(ScreenDockStation station,
Dockable old,
Dockable next)
Tells whether replacing
old with next is possible on station . |
void |
drop(ScreenDockStation station,
ScreenDockStationExtension.DropArguments arguments)
|
void |
dropped(ScreenDockStation station,
ScreenDockStationExtension.DropArguments arguments,
boolean successfull)
Called after a (modified) call to
ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean)
ended. |
boolean canReplace(ScreenDockStation station, Dockable old, Dockable next)
old
with next
is possible on station
.station
- the source of the callold
- a child of station
next
- a possible replacement of old
old
with next
is allowedvoid drop(ScreenDockStation station, ScreenDockStationExtension.DropArguments arguments)
ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean)
. This method may modify
the arguments in any way it likes.station
- the source of the eventarguments
- the arguments of the method, can be modifiedvoid dropped(ScreenDockStation station, ScreenDockStationExtension.DropArguments arguments, boolean successfull)
ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean)
ended.station
- the source of the eventarguments
- the arguments that were used by the method, should not be modifiedsuccessfull
- whether the call was successfull