T - the row typepublic class OptionsBuilder<T> extends GenericOptionsBuilder<OptionsBuilder<T>,T>
class FooBar {
final String foo;
final String bar;
FooBar() {
this.foo = "Foo-" + String.valueOf(Random.nextInt(12345));
this.bar = "Bar-" + String.valueOf(Random.nextInt(12345));
}
}
Options<FooBar> options = new OptionsBuilder<FooBar>()
.button("Click Me", (table) -> Window.alert("Hello"))
.column("foo", "Foo", (cell, type, row, meta) -> row.foo)
.column("bar", "Bar", (cell, type, row, meta) -> row.bar)
.options();
| Constructor and Description |
|---|
OptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected OptionsBuilder<T> |
that()
In order to make builders work with inheritance, sub-builders must return a reference to their instance.
|
protected OptionsBuilder<T> that()
GenericOptionsBuilderthat in class GenericOptionsBuilder<OptionsBuilder<T>,T>thisCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.