Class AbstractOverlay
- java.lang.Object
-
- pro.gravit.launcher.client.gui.raw.AbstractOverlay
-
- All Implemented Interfaces:
AllowDisable
- Direct Known Subclasses:
DebugOverlay,OptionsOverlay,ProcessingOverlay,SettingsOverlay,UpdateOverlay
public abstract class AbstractOverlay extends java.lang.Object implements AllowDisable
-
-
Field Summary
Fields Modifier and Type Field Description protected JavaFXApplicationapplicationprotected AbstractStagecurrentStagejava.lang.StringfxmlPathprotected javafx.scene.layout.Panepane
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOverlay(java.lang.String fxmlPath, JavaFXApplication application)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddisable()protected abstract voiddoInit()voidenable()abstract voiderrorHandle(java.lang.Throwable e)javafx.scene.layout.PanegetPane()protected voidhide(double delay, AbstractScene scene, javafx.event.EventHandler<javafx.event.ActionEvent> onFinished)voidinit()abstract voidreset()
-
-
-
Field Detail
-
fxmlPath
public final java.lang.String fxmlPath
-
application
protected final JavaFXApplication application
-
currentStage
protected AbstractStage currentStage
-
pane
protected javafx.scene.layout.Pane pane
-
-
Constructor Detail
-
AbstractOverlay
protected AbstractOverlay(java.lang.String fxmlPath, JavaFXApplication application)
-
-
Method Detail
-
init
public final void init() throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
hide
protected final void hide(double delay, AbstractScene scene, javafx.event.EventHandler<javafx.event.ActionEvent> onFinished)
-
doInit
protected abstract void doInit()
-
reset
public abstract void reset()
-
errorHandle
public abstract void errorHandle(java.lang.Throwable e)
-
getPane
public javafx.scene.layout.Pane getPane()
-
disable
public void disable()
- Specified by:
disablein interfaceAllowDisable
-
enable
public void enable()
- Specified by:
enablein interfaceAllowDisable
-
-