public class ConcurrentFeature
extends Object
Constructor and Description |
---|
ConcurrentFeature()
Instantiates a new default ConcurrentFeature.
|
ConcurrentFeature(boolean showProgress)
Instantiates a new ConcurrentFeature.
|
ConcurrentFeature(boolean showProgress,
String message,
ProgressDelegate progress,
boolean enableBackground)
Instantiates a new ConcurrentFeature.
|
ConcurrentFeature(ProgressDelegate progress)
Instantiates a new ProgressDelegate
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Gets the message which is displayed on the progress indicator.
|
ParallelProgressCallback |
getParallelProgressCallback()
Gets the parallel progress callback.
|
ProgressDelegate |
getProgressDelegate()
Gets the current ProgressDelegate
|
String |
getTaskName()
Gets the task name.
|
boolean |
isEnableBackground()
Checks if execution in background enabled.
|
boolean |
isEnableCancel()
Checks if cancel functionality is enabled.
|
boolean |
isShowProgress()
Checks if progress indicator is configured to be displayed.
|
void |
setEnableBackground(boolean value)
Enables or disables background execution.
|
void |
setEnableCancel(boolean value)
Enables or disables cancel functionality.
|
void |
setMessage(String value)
Sets the message which will be displayed on progress indicator.
|
void |
setParallelProgressCallback(ParallelProgressCallback value)
Sets the parallel progress callback.
|
void |
setProgressDelegate(ProgressDelegate value)
Sets the new ProgressDelegate.
|
void |
setShowProgress(boolean value)
Sets the new show progress value.
|
void |
setTaskName(String value)
Sets the name.
|
public ConcurrentFeature()
public ConcurrentFeature(boolean showProgress)
showProgress
- if true the progress indicator will be displayedpublic ConcurrentFeature(boolean showProgress, String message, ProgressDelegate progress, boolean enableBackground)
showProgress
- if true the progress indicator will be displayedmessage
- the message to displayprogress
- the ProgressDelegate. If null the default for the current execution mode ProgressDelegate will be usedenableBackground
- if true execution is background is enabledpublic ConcurrentFeature(ProgressDelegate progress)
progress
- the ProgressDelegate. If parameter is null the default for the current execution mode ProgressDelegate will be used.public String getMessage()
public ParallelProgressCallback getParallelProgressCallback()
public ProgressDelegate getProgressDelegate()
public String getTaskName()
public boolean isEnableBackground()
public boolean isEnableCancel()
public boolean isShowProgress()
public void setEnableBackground(boolean value)
value
- the new value for the enable background execution falfpublic void setEnableCancel(boolean value)
value
- the new valuepublic void setMessage(String value)
value
- the new messagepublic void setParallelProgressCallback(ParallelProgressCallback value)
value
- the new parallel progress callbackpublic void setProgressDelegate(ProgressDelegate value)
value
- the new ProgressDelegatepublic void setShowProgress(boolean value)
value
- the new show progress valuepublic void setTaskName(String value)
value
- the new nameCopyright © 2010-2020 Toolsverse. All Rights Reserved.