26 lines
664 B
Java
26 lines
664 B
Java
|
package envoy.client.ui;
|
||
|
|
||
|
/**
|
||
|
* This interface defines an action that should be performed when a scene gets
|
||
|
* restored from the scene stack in {@link SceneContext}.
|
||
|
* <p>
|
||
|
* Project: <strong>envoy-client</strong><br>
|
||
|
* File: <strong>Restorable.java</strong><br>
|
||
|
* Created: <strong>03.07.2020</strong><br>
|
||
|
*
|
||
|
* @author Leon Hofmeister
|
||
|
* @since Envoy Client v0.1-beta
|
||
|
*/
|
||
|
@FunctionalInterface
|
||
|
public interface Restorable {
|
||
|
|
||
|
/**
|
||
|
* This method is getting called when a scene gets restored.<br>
|
||
|
* Hence, it can contain anything that should be done when the underlying scene
|
||
|
* gets restored.
|
||
|
*
|
||
|
* @since Envoy Client v0.1-beta
|
||
|
*/
|
||
|
void onRestore();
|
||
|
}
|