@FrameworkOnly public class WorkingAreaAcceptance extends java.lang.Object implements DockAcceptance
DockAcceptance
ensuring that the CDockable.getWorkingArea()
property is respected.Constructor and Description |
---|
WorkingAreaAcceptance(CControlAccess control)
Creates a new acceptance
|
Modifier and Type | Method and Description |
---|---|
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. |
public WorkingAreaAcceptance(CControlAccess control)
control
- access to the CControl
public boolean accept(DockStation parent, Dockable child, Dockable next)
DockAcceptance
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
.accept
in interface DockAcceptance
parent
- the future parent of the combinationchild
- a Dockable which may be a child of parentnext
- a new Dockablepublic boolean accept(DockStation parent, Dockable child)
DockAcceptance
child
is allowed to become a
real child of parent
.accept
in interface DockAcceptance
parent
- the future parentchild
- the future childchild
and parent
are allowed to be combined