bibliothek.gui.dock.station.screen
Interface ScreenDockStationExtension


public interface ScreenDockStationExtension

This extension is used by ScreenDockStation and changes the functionality of some methods.

Author:
Benjamin Sigg

Nested Class Summary
static class ScreenDockStationExtension.DropArguments
          A class offering all the arguments of the method ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean)
 
Method Summary
 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)
          Called by ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean).
 void dropped(ScreenDockStation station, ScreenDockStationExtension.DropArguments arguments, boolean successfull)
          Called after a (modified) call to ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean) ended.
 

Method Detail

canReplace

boolean canReplace(ScreenDockStation station,
                   Dockable old,
                   Dockable next)
Tells whether replacing old with next is possible on station.

Parameters:
station - the source of the call
old - a child of station
next - a possible replacement of old
Returns:
whether replacing old with next is allowed

drop

void drop(ScreenDockStation station,
          ScreenDockStationExtension.DropArguments arguments)
Called by ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean). This method may modify the arguments in any way it likes.

Parameters:
station - the source of the event
arguments - the arguments of the method, can be modified

dropped

void dropped(ScreenDockStation station,
             ScreenDockStationExtension.DropArguments arguments,
             boolean successfull)
Called after a (modified) call to ScreenDockStation.drop(Dockable, ScreenDockProperty, boolean) ended.

Parameters:
station - the source of the event
arguments - the arguments that were used by the method, should not be modified
successfull - whether the call was successfull