29 lines
744 B
Java
29 lines
744 B
Java
package envoy.client.event;
|
|
|
|
/**
|
|
* Project: <strong>envoy-client</strong><br>
|
|
* File: <strong>OnCloseChangeEvent.java</strong><br>
|
|
* Created: <strong>22 Dec 2019</strong><br>
|
|
*
|
|
* @author Maximilian Käfer
|
|
* @since Envoy v0.3-alpha
|
|
*/
|
|
public class OnCloseChangeEvent implements Event<Integer> {
|
|
|
|
private Integer closeMode;
|
|
|
|
/**
|
|
* @param closeMode This is the on close mode for the client, that should be
|
|
* set.
|
|
* </br>
|
|
* 0 = ExitOnClose </br>
|
|
* 1 = HideOnClose
|
|
* @since Envoy 0.3-alpha
|
|
*/
|
|
public OnCloseChangeEvent(int closeMode) { this.closeMode = closeMode; }
|
|
|
|
@Override
|
|
public Integer get() { return closeMode; }
|
|
|
|
}
|