Package org.jdesktop.application
Enum Task.BlockingScope
- All Implemented Interfaces:
Serializable
,Comparable<Task.BlockingScope>
,java.lang.constant.Constable
Specifies to what extent the GUI should be blocked a Task
is executed by a TaskService. Input blocking is carried
out by the Task's
inputBlocker
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlock anAction
while the task is executing, typically by temporarily disabling it.Block all of the application's top level windows, typically by showing a application-modal dialog.Block a component while the task is executing, typically by temporarily disabling it.Don't block the GUI while this Task is executing.Block a top level window while the task is executing, typically by showing a window-modal dialog. -
Method Summary
Modifier and TypeMethodDescriptionstatic Task.BlockingScope
Returns the enum constant of this type with the specified name.static Task.BlockingScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Don't block the GUI while this Task is executing. -
ACTION
Block anAction
while the task is executing, typically by temporarily disabling it. -
COMPONENT
Block a component while the task is executing, typically by temporarily disabling it. -
WINDOW
Block a top level window while the task is executing, typically by showing a window-modal dialog. -
APPLICATION
Block all of the application's top level windows, typically by showing a application-modal dialog.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-