@FunctionalInterface public interface Coat
Composite
.
An SWT Composite is a blank canvas. As such, it's common to write functions
that look like void initializeCmp(Composite cmp)
. In order to make higher-order
functionality, such as a utility for stacking Composite
s, you need a way to pass
these kinds of functions as arguments. That's what Coat
does.
Modifier and Type | Interface and Description |
---|---|
static interface |
Coat.Returning<T>
A Coat which returns a handle to the content it created.
|
Modifier and Type | Method and Description |
---|---|
static Coat |
empty()
A Coat which does nothing.
|
void |
putOn(Composite cmp)
Populates the given composite.
|