Enum ProbeImageSwingJFrame.ClosingManagementStrategy
- java.lang.Object
-
- java.lang.Enum<ProbeImageSwingJFrame.ClosingManagementStrategy>
-
- fr.univ_artois.lgi2a.similar.microkernel.libs.probes.ProbeImageSwingJFrame.ClosingManagementStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<ProbeImageSwingJFrame.ClosingManagementStrategy>
- Enclosing class:
- ProbeImageSwingJFrame
public static enum ProbeImageSwingJFrame.ClosingManagementStrategy extends Enum<ProbeImageSwingJFrame.ClosingManagementStrategy>
Defines the various strategies to the reaction of the application when the user requests the closure of the frame.- Author:
- Yoann Kubera
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORT_SIMULATION
The simulation will be aborted if the frame is closed.HIDE_AND_WAIT_FOR_SIMULATION_END
The simulation will continue when the frame is closed.NEVER_HIDE
The frame does not hide, even when the user clicks on the cross.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProbeImageSwingJFrame.ClosingManagementStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProbeImageSwingJFrame.ClosingManagementStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER_HIDE
public static final ProbeImageSwingJFrame.ClosingManagementStrategy NEVER_HIDE
The frame does not hide, even when the user clicks on the cross.
-
HIDE_AND_WAIT_FOR_SIMULATION_END
public static final ProbeImageSwingJFrame.ClosingManagementStrategy HIDE_AND_WAIT_FOR_SIMULATION_END
The simulation will continue when the frame is closed.
-
ABORT_SIMULATION
public static final ProbeImageSwingJFrame.ClosingManagementStrategy ABORT_SIMULATION
The simulation will be aborted if the frame is closed.
-
-
Method Detail
-
values
public static ProbeImageSwingJFrame.ClosingManagementStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProbeImageSwingJFrame.ClosingManagementStrategy c : ProbeImageSwingJFrame.ClosingManagementStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProbeImageSwingJFrame.ClosingManagementStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-