public class CoatMux extends ControlWrapper.AroundControl<Composite>
Modifier and Type | Class and Description |
---|---|
class |
CoatMux.Layer<T>
Represents a persistent layer within this `CoatMux`.
|
ControlWrapper.AroundControl<T extends Control>, ControlWrapper.AroundWrapper<T extends ControlWrapper>
wrapped
Constructor and Description |
---|
CoatMux(Composite parent) |
CoatMux(Composite parent,
int style) |
Modifier and Type | Method and Description |
---|---|
<T> CoatMux.Layer<T> |
add(Coat.Returning<T> coat)
Deprecated.
use
addCoat(com.diffplug.common.swt.Coat.Returning) instead |
<T> CoatMux.Layer<T> |
add(Coat coat,
T value)
Deprecated.
use
add(Coat, Object) instead |
<T> CoatMux.Layer<T> |
addCoat(Coat.Returning<T> coat)
Adds a persistent
CoatMux.Layer which will be populated immediately by the given `Coat.Returning`, using the return value as the key. |
<T> CoatMux.Layer<T> |
addCoat(Coat coat,
T value)
Adds a persistent
CoatMux.Layer which will be populated immediately by the given `Coat`, using `value` as the key. |
<T extends Control> |
addControl(Function<Composite,T> creator)
Adds a persistent
CoatMux.Layer which will be populated immediately by the given `Function |
<T extends ControlWrapper> |
addWrapper(Function<Composite,T> creator)
Adds a persistent
CoatMux.Layer which will be populated immediately by the given `Function |
Control |
getTopControl()
The Control at the top of the stack (possibly null).
|
RxGetter<Optional<CoatMux.Layer<?>>> |
rxCurrent()
The current layer (if any).
|
<T> T |
set(Coat.Returning<T> coat)
Deprecated.
use
setCoat(com.diffplug.common.swt.Coat.Returning) instead |
<T> T |
setCoat(Coat.Returning<T> coat)
Sets the current content of this `CoatMux`, gets disposed as soon as anything else becomes the top layer.
|
<T> T |
setCoat(Coat coat,
T value)
Sets the current content of this `CoatMux`, gets disposed as soon as anything else becomes the top layer.
|
<T extends Control> |
setControl(Function<Composite,T> creator)
Sets the current content of this `CoatMux`, gets disposed as soon as anything else becomes the top layer.
|
<T extends ControlWrapper> |
setWrapper(Function<Composite,T> creator)
Sets the current content of this `CoatMux`, gets disposed as soon as anything else becomes the top layer.
|
getRootControl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLayoutData, getParent, getShell, setLayoutData
public CoatMux(Composite parent)
public CoatMux(Composite parent, int style)
public RxGetter<Optional<CoatMux.Layer<?>>> rxCurrent()
public Control getTopControl()
public <T> CoatMux.Layer<T> addCoat(Coat coat, @Nullable T value)
CoatMux.Layer
which will be populated immediately by the given `Coat`, using `value` as the key.public <T> CoatMux.Layer<T> addCoat(Coat.Returning<T> coat)
CoatMux.Layer
which will be populated immediately by the given `Coat.Returning`, using the return value as the key.public <T extends Control> CoatMux.Layer<T> addControl(Function<Composite,T> creator)
CoatMux.Layer
which will be populated immediately by the given `FunctionThe function must create exactly one child of the composite, and must return that child.
public <T extends ControlWrapper> CoatMux.Layer<T> addWrapper(Function<Composite,T> creator)
CoatMux.Layer
which will be populated immediately by the given `FunctionThe function must create exactly one child of the composite, and it must return that child.
public <T> T setCoat(Coat coat, @Nullable T value)
public <T> T setCoat(Coat.Returning<T> coat)
public <T extends Control> T setControl(Function<Composite,T> creator)
public <T extends ControlWrapper> T setWrapper(Function<Composite,T> creator)
public <T> CoatMux.Layer<T> add(Coat coat, T value)
add(Coat, Object)
insteadCoatMux.Layer
which will be populated immediately by the given `Coat`, with the layer containing the given value.public <T> CoatMux.Layer<T> add(Coat.Returning<T> coat)
addCoat(com.diffplug.common.swt.Coat.Returning)
insteadCoatMux.Layer
which will be populated immediately by the given `Coat`, with the layer containing the given value.public <T> T set(Coat.Returning<T> coat)
setCoat(com.diffplug.common.swt.Coat.Returning)
instead