|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.accept.AbstractAcceptance bibliothek.gui.dock.accept.CombinatoryAcceptance
public class CombinatoryAcceptance
A DockAcceptance that is a combination out of two other acceptances.
Nested Class Summary | |
---|---|
static class |
CombinatoryAcceptance.Combination
|
Constructor Summary | |
---|---|
CombinatoryAcceptance(CombinatoryAcceptance.Combination combination,
DockAcceptance first,
DockAcceptance second)
Constructor, sets up all fields of this acceptance |
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. |
protected boolean |
compare(boolean first,
boolean second)
Makes a logical operation with first and
second according to the operation specified
as combination . |
CombinatoryAcceptance.Combination |
getCombination()
Gets how the combination is calculated |
DockAcceptance |
getFirst()
Gets the "left" operand of the combination |
DockAcceptance |
getSecond()
Gets the "right" operand of the combination |
void |
setCombination(CombinatoryAcceptance.Combination combination)
Sets, how the two acceptances of this CombinatoryAcceptance
have to be combined |
void |
setFirst(DockAcceptance first)
Sets the "left" operand of the combination |
void |
setSecond(DockAcceptance second)
Sets the "right" operand of the combination |
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 |
---|
public CombinatoryAcceptance(CombinatoryAcceptance.Combination combination, DockAcceptance first, DockAcceptance second)
combination
- How the two Acceptances first
and
second
will be combined.first
- The acceptance at the "left" side of the operationsecond
- The acceptance at the "right" side of the operationMethod Detail |
---|
public boolean accept(DockStation parent, Dockable child)
DockAcceptance
child
is allowed to become a
real child of parent
.
accept
in interface DockAcceptance
accept
in class AbstractAcceptance
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
accept
in class AbstractAcceptance
parent
- the future parent of the combinationchild
- a Dockable which may be a child of parentnext
- a new Dockable
protected boolean compare(boolean first, boolean second)
first
and
second
according to the operation specified
as combination
.
first
- The operand at the left sidesecond
- The operand at the right side
public void setCombination(CombinatoryAcceptance.Combination combination)
CombinatoryAcceptance
have to be combined
combination
- How to calculate accept(DockStation, Dockable)
out of the results of first
and
of second
IllegalArgumentException
- if combination
is null
public CombinatoryAcceptance.Combination getCombination()
setCombination(bibliothek.gui.dock.accept.CombinatoryAcceptance.Combination)
public void setFirst(DockAcceptance first)
first
- The first acceptance whose opinion for an
accept
will be asked.
IllegalArgumentException
- if the argument is null
public DockAcceptance getFirst()
setFirst(DockAcceptance)
public void setSecond(DockAcceptance second)
second
- The second acceptance whose opinion for
accept(DockStation, Dockable)
will be asked.
IllegalArgumentException
- if the argument is null
public DockAcceptance getSecond()
setSecond(DockAcceptance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |