Package io.jmix.flowui.screen.builder
Class AbstractWindowBuilder<S extends Screen<?>>
java.lang.Object
io.jmix.flowui.screen.builder.AbstractWindowBuilder<S>
- All Implemented Interfaces:
DialogWindowBuilder<S>
- Direct Known Subclasses:
EditorWindowBuilder
,LookupWindowBuilder
,WindowBuilder
public class AbstractWindowBuilder<S extends Screen<?>>
extends Object
implements DialogWindowBuilder<S>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Consumer<DialogWindow.AfterCloseEvent<S>>
protected Consumer<DialogWindow.AfterOpenEvent<S>>
protected final Function<AbstractWindowBuilder<S>,
DialogWindow<S>> protected final Screen<?>
protected String
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractWindowBuilder
(Screen<?> origin, Function<? extends AbstractWindowBuilder<S>, DialogWindow<S>> handler) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Screen<?>
open()
withAfterCloseListener
(Consumer<DialogWindow.AfterCloseEvent<S>> listener) withAfterOpenListener
(Consumer<DialogWindow.AfterOpenEvent<S>> listener)
-
Field Details
-
origin
-
handler
protected final Function<AbstractWindowBuilder<S extends Screen<?>>,DialogWindow<S extends Screen<?>>> handler -
screenId
-
afterOpenListener
-
afterCloseListener
-
-
Constructor Details
-
AbstractWindowBuilder
protected AbstractWindowBuilder(Screen<?> origin, Function<? extends AbstractWindowBuilder<S>, DialogWindow<S>> handler)
-
-
Method Details
-
withAfterOpenListener
public AbstractWindowBuilder<S> withAfterOpenListener(@Nullable Consumer<DialogWindow.AfterOpenEvent<S>> listener) -
withAfterCloseListener
public AbstractWindowBuilder<S> withAfterCloseListener(@Nullable Consumer<DialogWindow.AfterCloseEvent<S>> listener) -
getOrigin
- Specified by:
getOrigin
in interfaceDialogWindowBuilder<S extends Screen<?>>
-
getScreenId
- Specified by:
getScreenId
in interfaceDialogWindowBuilder<S extends Screen<?>>
-
getAfterOpenListener
- Specified by:
getAfterOpenListener
in interfaceDialogWindowBuilder<S extends Screen<?>>
-
getAfterCloseListener
- Specified by:
getAfterCloseListener
in interfaceDialogWindowBuilder<S extends Screen<?>>
-
build
-
open
-