bibliothek.gui.dock.themes.nostack
Class NoStackAcceptance
java.lang.Object
bibliothek.gui.dock.accept.AbstractAcceptance
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
|
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 |
NoStackAcceptance
public NoStackAcceptance()
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 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- Overrides:
accept in class AbstractAcceptance
- 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