|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.accept.AbstractAcceptance
public abstract class AbstractAcceptance
A DockAcceptance that returns true for all cases.
| Constructor Summary | |
|---|---|
AbstractAcceptance()
|
|
| 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. |
DockAcceptance |
andAccept(DockAcceptance other)
Combines this acceptance with the other acceptance. |
DockAcceptance |
equalAccept(DockAcceptance other)
Combines this acceptance with the other acceptance
in a logical "<->" operation. |
DockAcceptance |
impliedAccept(DockAcceptance other)
Combines this acceptance with the other acceptance
such that the result is a logical implication of the form
"other -> this". |
DockAcceptance |
impliesAccept(DockAcceptance other)
Combines this acceptance with the other acceptance
such that the result is a logical implication of the form
"this -> other" |
DockAcceptance |
orAccept(DockAcceptance other)
Combines this acceptance with the other acceptance in
a logical "OR" operation. |
DockAcceptance |
xorAccept(DockAcceptance other)
Combines this acceptance with the other acceptance
in a logical "XOR" relation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAcceptance()
| Method Detail |
|---|
public boolean accept(DockStation parent,
Dockable child)
DockAcceptancechild is allowed to become a
real child of parent.
accept in interface DockAcceptanceparent - the future parentchild - the future child
child and parent
are allowed to be combined
public boolean accept(DockStation parent,
Dockable child,
Dockable next)
DockAcceptancechild, 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 DockAcceptanceparent - the future parent of the combinationchild - a Dockable which may be a child of parentnext - a new Dockable
public DockAcceptance andAccept(DockAcceptance other)
other acceptance. The new acceptance
returns true only if this and the other
acceptance return true
other - A second acceptance
public DockAcceptance orAccept(DockAcceptance other)
other acceptance in
a logical "OR" operation.
other - The other acceptance
true if this or
the other acceptance returns truepublic DockAcceptance xorAccept(DockAcceptance other)
other acceptance
in a logical "XOR" relation.
other - The other acceptance
true only if
one of this and other returned true,
and the other one returned falsepublic DockAcceptance equalAccept(DockAcceptance other)
other acceptance
in a logical "<->" operation.
other - The other acceptance
true if
this and the other acceptance returned the
same value.public DockAcceptance impliesAccept(DockAcceptance other)
other acceptance
such that the result is a logical implication of the form
"this -> other"
other - The other acceptance
true if this
acceptance returned false or if the other
acceptance returned truepublic DockAcceptance impliedAccept(DockAcceptance other)
other acceptance
such that the result is a logical implication of the form
"other -> this".
other - The other acceptance
true if
this acceptance returned true or if the
other acceptance returned false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||