|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.accept.MultiDockAcceptance
public class MultiDockAcceptance
A DockAcceptance
which consists of other acceptances, and returns
only true
if all children of this acceptance return true
.
Constructor Summary | |
---|---|
MultiDockAcceptance()
|
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. |
void |
add(DockAcceptance acceptance)
Adds a DockAcceptance to the list of acceptances, which must be
asked, before an accept -method returns true . |
void |
remove(DockAcceptance acceptance)
Removes a DockAcceptance which was earlier added
to this MultiDockAcceptance . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiDockAcceptance()
Method Detail |
---|
public void add(DockAcceptance acceptance)
DockAcceptance
to the list of acceptances, which must be
asked, before an accept
-method returns true
.
acceptance
- the acceptance to askpublic void remove(DockAcceptance acceptance)
DockAcceptance
which was earlier added
to this MultiDockAcceptance
.
acceptance
- the acceptance to removepublic 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 child
child
and parent
are allowed to be combinedpublic 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 Dockable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |