bibliothek.gui.dock.themes.nostack
Class NoStackAcceptance

java.lang.Object
  extended by bibliothek.gui.dock.accept.AbstractAcceptance
      extended by bibliothek.gui.dock.themes.nostack.NoStackAcceptance
All Implemented Interfaces:
DockAcceptance

public class NoStackAcceptance
extends AbstractAcceptance

A DockAcceptance which permits the user to set a StackDockStation into another StackDockStation.

Author:
Benjamin Sigg

Constructor Summary
NoStackAcceptance()
           
 
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.
 
Methods inherited from class bibliothek.gui.dock.accept.AbstractAcceptance
andAccept, equalAccept, impliedAccept, impliesAccept, orAccept, xorAccept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoStackAcceptance

public NoStackAcceptance()
Method Detail

accept

public boolean accept(DockStation parent,
                      Dockable child)
Description copied from interface: DockAcceptance
Tells whether or not child is allowed to become a real child of parent.

Specified by:
accept in interface DockAcceptance
Overrides:
accept in class AbstractAcceptance
Parameters:
parent - the future parent
child - the future child
Returns:
whether or not child and parent are allowed to be combined

accept

public boolean accept(DockStation parent,
                      Dockable child,
                      Dockable next)
Description copied from interface: DockAcceptance
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.

Specified by:
accept in interface DockAcceptance
Overrides:
accept in class AbstractAcceptance
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