Package be.gaudry.model.thread
Enum Class EProgressInfo
- All Implemented Interfaces:
Serializable
,Comparable<EProgressInfo>
,Constable
Action to perform with the
progress
event. This enum
may be used to set the progress int
value with negative values.
\n
Provided by the broldev.core.model project.- Since:
- 1.0 Jun 10, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 Jun 10, 2008
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptioncurrent file nameget a Int32 value with count of directories to parseJob done, cancelled, or stoppedSub-process with a "false" result, or something opposite to the OK_MSG, or operation like delete...Sub-process with a "true" result, or something opposite to the NEGATIVE_MSG, or operation like create, insert...Normal progress.adapt the progressBarStyle.adapt the progressBarStyle.Not to be confused with a warning.Argument value offromInt(int key)
method. -
Method Summary
Modifier and TypeMethodDescriptionstatic EProgressInfo
fromInt(int key)
int
Allows to get the real value in case of UNDEFINED state.int
getValue()
The value is a numeric representation of thisEProgressInfo
, independent of theEnum.ordinal()
information.toString()
static EProgressInfo
Returns the enum constant of this class with the specified name.static EProgressInfo[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROGRESS
Normal progress. May get an array of objects -
CURRENT_INFO
current file name -
PROGRESSBARSTYLE_BLOCK
adapt the progressBarStyle. May get a string info -
PROGRESSBARSTYLE_MARQUEE
adapt the progressBarStyle. May get a string info -
DIR_SIZE
get a Int32 value with count of directories to parse -
VALUE
Argument value offromInt(int key)
method. A numeric value, out of the possiblevalues
of this enumeration, may be used to be mapped to a EProgressInfo -
DONE
Job done, cancelled, or stopped -
CURRENT_INFO_IMPORTANT
-
ERROR_MSG
-
WARNING_MSG
-
OK_MSG
Sub-process with a "true" result, or something opposite to the NEGATIVE_MSG, or operation like create, insert... -
NEGATIVE_MSG
Sub-process with a "false" result, or something opposite to the OK_MSG, or operation like delete... -
REMARK
Not to be confused with a warning. A remark is a simple piece of information, less important than CURRENT_INFO
-
-
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
-
getValue
public int getValue()The value is a numeric representation of thisEProgressInfo
, independent of theEnum.ordinal()
information.- Returns:
- the numeric representation of this
-
getEnclosedUndefinedValue
public int getEnclosedUndefinedValue()Allows to get the real value in case of UNDEFINED state.- Returns:
- the enclosed value
- Throws:
UnsupportedOperationException
- if called on other state than UNDEFINED
-
toString
- Overrides:
toString
in classEnum<EProgressInfo>
-
fromInt
- Parameters:
key
- numeric representation of theEProgressInfo
,value given by thegetValue()
method.- Returns:
- the matching
EProgressInfo
, orVALUE
in case of wrong parameter
-