public abstract class IncrementableProcess extends java.lang.Object implements IIncrementable, IncrementableListener, java.lang.Runnable
IncrementableTask
.Modifier and Type | Field and Description |
---|---|
protected java.lang.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 java.lang.String |
label
Deprecated.
|
protected LogControl |
log
Deprecated.
|
protected int |
percentage
Deprecated.
|
protected long |
t0
Deprecated.
|
protected boolean |
threadSuspended
Deprecated.
|
protected java.lang.String |
title
Deprecated.
|
Constructor and Description |
---|
IncrementableProcess(java.lang.String title)
Deprecated.
Creates a new process.
|
IncrementableProcess(java.lang.String title,
java.lang.String label)
Deprecated.
Creates a new process.
|
IncrementableProcess(java.lang.String title,
java.lang.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
|
java.lang.String |
getLabel()
Deprecated.
Devuelve la etiqueta de la ventana IncrementableTask
|
java.lang.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
|
java.lang.String |
getTitle()
Deprecated.
Devuelve el titulo de la ventana IncrementableTask
|
protected void |
insertLineLog(java.lang.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(java.lang.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 java.lang.Thread blinker
protected long t0
protected static Cancellable cancelProcess
protected boolean isCancellable
protected boolean isPausable
protected java.lang.String title
protected java.lang.String label
public IncrementableProcess(java.lang.String title)
title
- title for the dialog that displays the evolution of the processpublic IncrementableProcess(java.lang.String title, java.lang.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(java.lang.String title, java.lang.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 java.lang.String getTitle()
IIncrementable
getTitle
in interface IIncrementable
protected void insertLineLog(java.lang.String line)
line
- the line to addpublic java.lang.String getLabel()
IIncrementable
getLabel
in interface IIncrementable
public void setLabel(java.lang.String label)
Sets a brief of the current subprocess.
label
- brief of the current subprocesspublic java.lang.String getLog()
IIncrementable
getLog
in interface IIncrementable
public int getPercent()
IIncrementable
getPercent
in interface IIncrementable
public 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 false
public void run()
run
in interface java.lang.Runnable
public void actionCanceled(IncrementableEvent e)
IncrementableListener
actionCanceled
in interface IncrementableListener
public void actionResumed(IncrementableEvent e)
IncrementableListener
actionResumed
in interface IncrementableListener
public void actionSuspended(IncrementableEvent e)
IncrementableListener
actionSuspended
in interface IncrementableListener
public boolean isCancelable()
IIncrementable
Determines if this process can be canceled.
isCancelable
in interface IIncrementable
true
if this process can be canceled, otherwise false
public void setCancelable(boolean b)
Sets if this process can be canceled.
b
- true
if this process can be canceled, otherwise false
public boolean isPausable()
IIncrementable
Determines if this process can be paused.
isPausable
in interface IIncrementable
true
if this process can be paused, otherwise false
public void setPausable(boolean b)
Sets if this process can be paused.
b
- true
if this process can be paused, otherwise false
public abstract void process() throws java.lang.InterruptedException, java.lang.Exception
java.lang.InterruptedException
java.lang.Exception