Enum Class TWindowElement.CloseOperation
java.lang.Object
java.lang.Enum<TWindowElement.CloseOperation>
com.thecsdev.commonmc.api.client.gui.panel.window.TWindowElement.CloseOperation
- All Implemented Interfaces:
Serializable, Comparable<TWindowElement.CloseOperation>, Constable
- Enclosing class:
TWindowElement
Constants used to define what happens when
TWindowElement.close() is called.- API Note:
- Inspired by
WindowConstants.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe current screen instance theTWindowElementbelongs to is closed.TWindowElementis removed from its parent.Nothing happens.TWindowElement's visibility is set tofalse. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TWindowElement.CloseOperation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DO_NOTHING
Nothing happens. The [X] button has no functionality. -
HIDE
TWindowElement's visibility is set tofalse. It is still present, but no longer visible.- See Also:
-
DISPOSE
TWindowElementis removed from its parent.- See Also:
-
CLOSE_SCREEN
The current screen instance theTWindowElementbelongs to is closed.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-