bibliothek.gui.dock.accept
Interface DockAcceptance

All Known Implementing Classes:
AbstractAcceptance, AcceptanceDockRelocatorMode, CombinatoryAcceptance, ExtendedModeAcceptance, MultiDockAcceptance, NoStackAcceptance, StackableAcceptance, WorkingAreaAcceptance

public interface DockAcceptance

Used by a DockController to decide globally which Dockable can become child of which DockStation.
The acceptance can be set through the method DockController.addAcceptance(DockAcceptance)

Author:
Benjamin Sigg

Method Summary
 boolean accept(DockStation parent, Dockable child)
          Tells whether or not child is allowed to become a real child of parent.
 boolean accept(DockStation parent, Dockable child, Dockable next)
          Tells whether child, which may be already a child of parent, and next are allowed to be combined.
 

Method Detail

accept

boolean accept(DockStation parent,
               Dockable child)
Tells whether or not child is allowed to become a real child of parent.

Parameters:
parent - the future parent
child - the future child
Returns:
whether or not child and parent are allowed to be combined

accept

boolean accept(DockStation parent,
               Dockable child,
               Dockable next)
Tells whether child, which may be already a child of parent, and next are allowed to be combined. The result of this combination would replace child on parent.

Parameters:
parent - the future parent of the combination
child - a Dockable which may be a child of parent
next - a new Dockable
Returns:
whether the combination is allowed or not