Package xyz.xenondevs.invui.window
Class AbstractSingleWindow.AbstractBuilder<W extends Window,S extends Window.Builder.Single<W,S>>
java.lang.Object
xyz.xenondevs.invui.window.AbstractWindow.AbstractBuilder<W,S>
xyz.xenondevs.invui.window.AbstractSingleWindow.AbstractBuilder<W,S>
- Type Parameters:
W
- The type of the window.S
- The type of the builder.
- All Implemented Interfaces:
Cloneable
,Window.Builder<W,
,S> Window.Builder.Single<W,
S>
- Enclosing class:
AbstractSingleWindow
public abstract static class AbstractSingleWindow.AbstractBuilder<W extends Window,S extends Window.Builder.Single<W,S>>
extends AbstractWindow.AbstractBuilder<W,S>
implements Window.Builder.Single<W,S>
Builder for a
AbstractSingleWindow
.
This class should only be used directly if you're creating a custom AbstractSingleWindow.AbstractBuilder
for a custom
AbstractSingleWindow
implementation. Otherwise, use the static builder functions in the Window
interface, such as Window.single()
to obtain a builder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface xyz.xenondevs.invui.window.Window.Builder
Window.Builder.Double<W extends Window,
S extends Window.Builder.Double<W, S>>, Window.Builder.Normal<V, S extends Window.Builder.Normal<V, S>>, Window.Builder.Single<W extends Window, S extends Window.Builder.Single<W, S>> -
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class xyz.xenondevs.invui.window.AbstractWindow.AbstractBuilder
closeable, closeHandlers, modifiers, openHandlers, outsideClickHandlers, title, viewer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetGui
(Gui.Builder<?, ?> builder) Sets theGui.Builder
for thisWindow Builder
.Methods inherited from class xyz.xenondevs.invui.window.AbstractWindow.AbstractBuilder
addCloseHandler, addModifier, addOpenHandler, addOutsideClickHandler, applyModifiers, build, clone, open, setCloseable, setCloseHandlers, setModifiers, setOpenHandlers, setOutsideClickHandlers, setTitle, setTitle, setTitle, setViewer
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.xenondevs.invui.window.Window.Builder
addCloseHandler, addModifier, addOpenHandler, addOutsideClickHandler, build, build, clone, open, setCloseable, setCloseHandlers, setModifiers, setOpenHandlers, setOutsideClickHandlers, setTitle, setTitle, setTitle, setViewer
-
Field Details
-
guiSupplier
-
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
setGui
Description copied from interface:Window.Builder.Single
Sets theGui
Supplier
for thisWindow Builder
. TheSupplier
will be called every time a newWindow
is created using this builder.- Specified by:
setGui
in interfaceWindow.Builder.Single<W extends Window,
S extends Window.Builder.Single<W, S>> - Parameters:
guiSupplier
- TheGui
Supplier
- Returns:
- This
Window Builder
-
setGui
Description copied from interface:Window.Builder.Single
- Specified by:
setGui
in interfaceWindow.Builder.Single<W extends Window,
S extends Window.Builder.Single<W, S>> - Parameters:
gui
- TheGui
of theWindow
- Returns:
- This
Window Builder
-
setGui
Description copied from interface:Window.Builder.Single
Sets theGui.Builder
for thisWindow Builder
. TheGui.Builder
will be called every time a newWindow
is created using this builder.- Specified by:
setGui
in interfaceWindow.Builder.Single<W extends Window,
S extends Window.Builder.Single<W, S>> - Parameters:
builder
- TheGui.Builder
for thisWindow Builder
- Returns:
- This
Window Builder
-