Class AbstractTransformerWindowManager<P extends Pane>
java.lang.Object
com.xpdustry.distributor.api.gui.transform.AbstractTransformerWindowManager<P>
- Type Parameters:
P- the pane type
- All Implemented Interfaces:
TransformerWindowManager<P>,WindowManager,PluginAware
public abstract class AbstractTransformerWindowManager<P extends Pane>
extends Object
implements TransformerWindowManager<P>, PluginAware
An abstract implementation of a
TransformerWindowManager.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddTransformer(Transformer<P> transformer) Adds a transformer to this window manager.final WindowCreates a new window for the given parent window.final Windowcreate(mindustry.gen.Player viewer) Creates a new window for the given viewer.protected abstract Pfinal voiddispose()Disposes this window manager.final Collection<Window>Returns the active windows.final MindustryPluginReturns the owning plugin.protected final Map<MUUID,AbstractTransformerWindowManager<P>.SimpleWindow> protected final booleanprotected voidprotected voidprotected abstract void
-
Constructor Details
-
AbstractTransformerWindowManager
-
-
Method Details
-
onWindowOpen
-
onWindowClose
-
onDispose
protected void onDispose() -
createPane
-
create
Description copied from interface:WindowManagerCreates a new window for the given parent window.- Specified by:
createin interfaceWindowManager- Parameters:
parent- the parent window- Returns:
- the window
-
create
Description copied from interface:WindowManagerCreates a new window for the given viewer.- Specified by:
createin interfaceWindowManager- Parameters:
viewer- the viewer- Returns:
- the window
-
getActiveWindows
Description copied from interface:WindowManagerReturns the active windows.- Specified by:
getActiveWindowsin interfaceWindowManager
-
addTransformer
Description copied from interface:TransformerWindowManagerAdds a transformer to this window manager.- Specified by:
addTransformerin interfaceTransformerWindowManager<P extends Pane>- Parameters:
transformer- the transformer
-
getPlugin
Description copied from interface:PluginAwareReturns the owning plugin.- Specified by:
getPluginin interfacePluginAware
-
dispose
public final void dispose()Description copied from interface:WindowManagerDisposes this window manager.- Specified by:
disposein interfaceWindowManager
-
getWindows
-
isDisposed
protected final boolean isDisposed()
-