public abstract class MustAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
causer |
protected static java.awt.Cursor |
defaultCursor |
protected static java.awt.Cursor |
waitCursor |
Constructor and Description |
---|
MustAction() |
MustAction(java.lang.Object causer)
Constructs a new action class.
|
MustAction(java.lang.Object causer,
ThreadDoneListener threadDoneListener)
Constructs a new action class.
|
Modifier and Type | Method and Description |
---|---|
ThreadDoneListener |
getThreadDoneListener() |
void |
run() |
void |
runInBackground()
Constructs a new thread to call the run method.
|
protected abstract void |
runIndividualStuff()
Runs the individual stuff.
|
void |
setThreadDoneListener(ThreadDoneListener threadDoneListener) |
protected void |
startThread(InterruptibleBatchThread thread)
Starts a thread.
|
protected void |
startThread(InterruptibleBatchThread thread,
ThreadController threadController)
Starts a thread using a BatchThreadControllerFrame for interrupt opportunity.
|
protected static java.awt.Cursor defaultCursor
protected static java.awt.Cursor waitCursor
protected java.lang.Object causer
public MustAction()
public MustAction(java.lang.Object causer)
causer
- the object that causes the action, e.g. a framepublic MustAction(java.lang.Object causer, ThreadDoneListener threadDoneListener)
causer
- the object that causes the action, e.g. a framethreadDoneListener
- the listener for thread done eventspublic void setThreadDoneListener(ThreadDoneListener threadDoneListener)
public final ThreadDoneListener getThreadDoneListener()
public final void run()
public final void runInBackground()
protected abstract void runIndividualStuff()
AccountPrinting thread = new AccountPrinting();
thread.setLeser(Global.getInstance().currentReader.getIdentifier());
startThread(thread, R.getString("Konto-Druck"));
protected final void startThread(InterruptibleBatchThread thread)
thread
- the thread to be startedprotected final void startThread(InterruptibleBatchThread thread, ThreadController threadController)
thread
- the thread to be startedthreadController
- the thread controllerCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de