|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.support.CombinerWrapper
public class CombinerWrapper
A CombinerWrapper
encloses a Combiner
and uses
the combiner as delegate. If the wrapper has no delegate, it uses
the DockUI
to get a combiner from the current DockTheme
.
Constructor Summary | |
---|---|
CombinerWrapper()
|
Method Summary | |
---|---|
Dockable |
combine(CombinerSource source,
CombinerTarget target)
Merges two Dockable s into a new Dockable. |
Combiner |
getDelegate()
Gets the delegate of this wrapper. |
CombinerTarget |
prepare(CombinerSource source,
boolean force)
Prepares information telling how two Dockable s may be combined. |
void |
setDelegate(Combiner delegate)
Sets the delegate for this wrapper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinerWrapper()
Method Detail |
---|
public Combiner getDelegate()
null
public void setDelegate(Combiner delegate)
delegate
- the delegate or null
if the default combiner
should be usedpublic CombinerTarget prepare(CombinerSource source, boolean force)
Combiner
Dockable
s may be combined.
prepare
in interface Combiner
source
- the Dockable
which may be combined, their parent station and
other helpful information.force
- if true
then a combination must happen, otherwise the
result may be null
indicating that a combination is not desired by
this Combiner
.
Dockable
s, may be null
to indicate that
a combination is not desiredpublic Dockable combine(CombinerSource source, CombinerTarget target)
Combiner
Dockable
s into a new Dockable. This method may
set the DockController
of the created element in order to initialize
it more efficiently.
combine
in interface Combiner
source
- information about the two Dockable
s that are going to be merged, not null
. This
object may or may not have been created by this Combiner
, some sanity checks are advised before using ittarget
- information that was created by Combiner.prepare(CombinerSource, boolean)
using source
, not null
Dockable
, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |