ResultType
- Rückgabe-Typpublic abstract class ImmoToolTask<T,V> extends SwingWorker<T,V> implements PropertyChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
ImmoToolTask.Adapter |
static class |
ImmoToolTask.Callback |
static interface |
ImmoToolTask.Listener |
SwingWorker.StateValue
Modifier | Constructor and Description |
---|---|
protected |
ImmoToolTask() |
protected |
ImmoToolTask(String title) |
protected |
ImmoToolTask(String title,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ImmoToolTask.Listener l) |
protected void |
cancelled() |
protected void |
checkCancelled() |
ImmoToolTask.Callback |
createCallback() |
protected abstract T |
doInBackground() |
protected void |
done() |
T |
executeAndWait() |
T |
executeAndWait(long timeout,
TimeUnit unit) |
protected void |
failed(Throwable t) |
protected void |
finished() |
String |
getDescription() |
long |
getId() |
String |
getMessage() |
Window |
getParentWindow() |
Window |
getTaskDialog()
Deprecated.
|
String |
getTitle() |
static boolean |
isCancelException(Throwable ex) |
boolean |
isPending() |
boolean |
isStarted() |
protected void |
process(List<V> chunks) |
void |
propertyChange(PropertyChangeEvent evt) |
void |
removeListener(ImmoToolTask.Listener l) |
protected void |
setDescription(String description) |
protected void |
setMessage(String message) |
void |
setParentWindow(Window window) |
protected void |
setProgress(float percentage) |
protected void |
setProgress(float value,
float min,
float max) |
protected void |
setProgress(int value,
int min,
int max) |
protected void |
setProgress(long value,
long min,
long max) |
void |
setTaskDialog(Window window)
Deprecated.
|
protected void |
setTitle(String title) |
protected void |
succeeded(T result) |
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
protected ImmoToolTask()
protected ImmoToolTask(String title)
public final void addListener(ImmoToolTask.Listener l)
protected void cancelled()
public ImmoToolTask.Callback createCallback()
protected void checkCancelled() throws CancellationException
CancellationException
protected abstract T doInBackground() throws Exception
doInBackground
in class SwingWorker<T,V>
Exception
protected void done()
done
in class SwingWorker<T,V>
public final T executeAndWait() throws CancellationException, InterruptedException, ExecutionException
public final T executeAndWait(long timeout, TimeUnit unit) throws CancellationException, InterruptedException, ExecutionException, TimeoutException
protected void failed(Throwable t)
protected void finished()
public String getDescription()
public final long getId()
public String getMessage()
public Window getParentWindow()
@Deprecated public Window getTaskDialog()
public String getTitle()
public static boolean isCancelException(Throwable ex)
public final boolean isPending()
public final boolean isStarted()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public final void removeListener(ImmoToolTask.Listener l)
protected void setDescription(String description)
protected void setMessage(String message)
public void setParentWindow(Window window)
protected final void setProgress(long value, long min, long max)
protected final void setProgress(int value, int min, int max)
protected final void setProgress(float percentage)
protected final void setProgress(float value, float min, float max)
@Deprecated public void setTaskDialog(Window window)
protected void setTitle(String title)
protected void succeeded(T result)
Copyright © 2015 OpenEstate. All rights reserved.