public abstract class IncrementableProcess extends Object implements IIncrementable, IncrementableListener, Runnable
IncrementableTask.| Modifier and Type | Field and Description |
|---|---|
protected Thread |
blinker
Deprecated.
|
protected static Cancellable |
cancelProcess
Deprecated.
|
protected boolean |
ended
Deprecated.
|
protected boolean |
isCancellable
Deprecated.
|
protected boolean |
isPausable
Deprecated.
|
protected IncrementableTask |
iTask
Deprecated.
|
protected String |
label
Deprecated.
|
protected LogControl |
log
Deprecated.
|
protected int |
percentage
Deprecated.
|
protected long |
t0
Deprecated.
|
protected boolean |
threadSuspended
Deprecated.
|
protected String |
title
Deprecated.
|
| Constructor and Description |
|---|
IncrementableProcess(String title)
Deprecated.
Creates a new process.
|
IncrementableProcess(String title,
String label)
Deprecated.
Creates a new process.
|
IncrementableProcess(String title,
String label,
boolean cancellable,
boolean pausable)
Deprecated.
Creates a new process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionCanceled(IncrementableEvent e)
Deprecated.
Invocado cuando se aprieta el boton Cancelar de la ventana
|
void |
actionResumed(IncrementableEvent e)
Deprecated.
Invocado cuando se aprieta el boton Resumir de la ventana
|
void |
actionSuspended(IncrementableEvent e)
Deprecated.
Invocado cuando se aprieta el boton Suspender de la ventana
|
String |
getLabel()
Deprecated.
Devuelve la etiqueta de la ventana IncrementableTask
|
String |
getLog()
Deprecated.
Devuelve el contenido del log de la ventana IncrementableTask
|
int |
getPercent()
Deprecated.
Devuelve el porcentaje de 0 a 100 de la ventana IncrementableTask
|
String |
getTitle()
Deprecated.
Devuelve el titulo de la ventana IncrementableTask
|
protected void |
insertLineLog(String line)
Deprecated.
Adds a new line to the log.
|
boolean |
isAlive()
Deprecated.
|
boolean |
isCancelable()
Deprecated.
Determines if this process can be canceled.
|
boolean |
isPausable()
Deprecated.
Determines if this process can be paused.
|
boolean |
isSuspended()
Deprecated.
Determines if this thread has been suspended.
|
abstract void |
process()
Deprecated.
|
protected void |
processFinalize()
Deprecated.
Ends the thread that displays the progress dialog with the evolution of
the loading process.
|
void |
run()
Deprecated.
|
void |
setCancelable(boolean b)
Deprecated.
Sets if this process can be canceled.
|
void |
setIncrementableTask(IncrementableTask iTask)
Deprecated.
Sets the object that will display the evolution of this loading process
as a progress dialog.
|
void |
setLabel(String label)
Deprecated.
Sets a brief of the current subprocess.
|
void |
setPausable(boolean b)
Deprecated.
Sets if this process can be paused.
|
void |
start()
Deprecated.
Creates and starts a new thread to execute this importation process.
|
void |
stop()
Deprecated.
|
protected IncrementableTask iTask
protected LogControl log
protected int percentage
protected boolean ended
protected volatile boolean threadSuspended
protected volatile Thread blinker
protected long t0
protected static Cancellable cancelProcess
protected boolean isCancellable
protected boolean isPausable
protected String title
protected String label
public IncrementableProcess(String title)
title - title for the dialog that displays the evolution of the processpublic IncrementableProcess(String title, String label)
title - title for the dialog that displays the evolution of the processlabel - brief of this process, that will be displayed in the dialogpublic IncrementableProcess(String title, String label, boolean cancellable, boolean pausable)
title - title for the dialog that displays the evolution of the processlabel - brief of this process, that will be displayed in the dialogcancellable - determines if this process can be canceledpausable - determines if this process can be pausedpublic String getTitle()
IIncrementablegetTitle in interface IIncrementableprotected void insertLineLog(String line)
line - the line to addpublic String getLabel()
IIncrementablegetLabel in interface IIncrementablepublic void setLabel(String label)
Sets a brief of the current subprocess.
label - brief of the current subprocesspublic String getLog()
IIncrementablegetLog in interface IIncrementablepublic int getPercent()
IIncrementablegetPercent in interface IIncrementablepublic void start()
Thread.start(),
stop()public void stop()
Thread.stop(),
start()public boolean isAlive()
Thread.isAlive(),
start()protected void processFinalize()
IncrementableTask.processFinalize()public void setIncrementableTask(IncrementableTask iTask)
iTask - the object that will display the evolution of this loading
processpublic boolean isSuspended()
true if this thread has been suspended; otherwise falsepublic void actionCanceled(IncrementableEvent e)
IncrementableListeneractionCanceled in interface IncrementableListenerpublic void actionResumed(IncrementableEvent e)
IncrementableListeneractionResumed in interface IncrementableListenerpublic void actionSuspended(IncrementableEvent e)
IncrementableListeneractionSuspended in interface IncrementableListenerpublic boolean isCancelable()
IIncrementableDetermines if this process can be canceled.
isCancelable in interface IIncrementabletrue if this process can be canceled, otherwise falsepublic void setCancelable(boolean b)
Sets if this process can be canceled.
b - true if this process can be canceled, otherwise falsepublic boolean isPausable()
IIncrementableDetermines if this process can be paused.
isPausable in interface IIncrementabletrue if this process can be paused, otherwise falsepublic void setPausable(boolean b)
Sets if this process can be paused.
b - true if this process can be paused, otherwise falsepublic abstract void process()
throws InterruptedException,
Exception
InterruptedExceptionException