bibliothek.gui.dock.common.intern.ui
Class StackableAcceptance
java.lang.Object
bibliothek.gui.dock.common.intern.ui.StackableAcceptance
- All Implemented Interfaces:
- DockAcceptance
@FrameworkOnly
public class StackableAcceptance
- extends Object
- implements DockAcceptance
A DockAcceptance
ensuring that the CDockable.isStackable()
property is respected.
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackableAcceptance
public StackableAcceptance()
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
- Parameters:
parent
- the future parentchild
- 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
- Parameters:
parent
- the future parent of the combinationchild
- a Dockable which may be a child of parentnext
- a new Dockable
- Returns:
- whether the combination is allowed or not