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()
IIncrementable
getTitle
in interface IIncrementable
protected void insertLineLog(String line)
line
- the line to addpublic String getLabel()
IIncrementable
getLabel
in interface IIncrementable
public void setLabel(String label)
Sets a brief of the current subprocess.
label
- brief of the current subprocesspublic 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 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 InterruptedException, Exception
InterruptedException
Exception