Squiz Matrix
4.12.2
|
Public Member Functions | |
AssetRefreshWorker (boolean throwVisibleError) | |
AssetRefreshWorker (String[] assetids, boolean throwVisibleError) | |
AssetRefreshWorker (MatrixTreeNode node, boolean throwVisibleError) | |
Object | construct () |
void | finished () |
void | start () |
Public Member Functions inherited from MatrixSwingWorker | |
void | finished () |
void | interrupt () |
Object | get () |
MatrixSwingWorker () | |
void | start () |
Protected Member Functions | |
String | getStatusBarFailMessage () |
String | getStatusBarSuccessMessage () |
String | getStatusBarWaitMessage () |
String | getErrorMessage () |
String | getErrorTitle () |
String | getLogMessage () |
int | getStatusClearTime () |
Protected Member Functions inherited from MatrixSwingWorker | |
synchronized Object | getValue () |
The AssetRefreshWorker makes a request to the Matrix system for the specified assets in a separate thread, then refresh the assets in the EventDispachThread. You should use this class over all other methods of refreshing as it correctly obeys the swing thread laws.
Example:
AssetRefreshWorker worker = new AssetRefreshWorker(assetid, true); worker.start();
Definition at line 39 of file AssetRefreshWorker.java.
|
inline |
Refreshes all known assets.
throwVisibleError | if TRUE an dialog error is thrown if one occurs |
Definition at line 49 of file AssetRefreshWorker.java.
|
inline |
Refreshes the specified assets.
assetids | the assetids to refresh |
throwVisibleError | if TRUE an dialog error is thrown if one occurs |
Definition at line 59 of file AssetRefreshWorker.java.
|
inline |
Refreshes the specified node and its children.
node | the node to refresh |
throwVisibleError | if TRUE an dialog error is thrown if one occurs |
Definition at line 69 of file AssetRefreshWorker.java.
|
inlinevirtual |
Constructs the worker and returns the object to be used by get(). No GUI updates should be executed in the method. GUI updates should occur in finished()
Implements MatrixSwingWorker.
Definition at line 85 of file AssetRefreshWorker.java.
|
inline |
Called from the EventDispachThread once construct has completed.
Definition at line 98 of file AssetRefreshWorker.java.
|
inlineprotected |
Returns the message used in the dialog error popup By default the error is 'Error While Requesting' followed by the error
Definition at line 160 of file AssetRefreshWorker.java.
|
inlineprotected |
Returns the message used in the dialog title when an error occurs By default the error is 'Error Refreshing Assets'
Definition at line 167 of file AssetRefreshWorker.java.
|
inlineprotected |
Returns the message used logging an error message. By default this method calls getErrorMessage()
Definition at line 174 of file AssetRefreshWorker.java.
|
inlineprotected |
Returns the message used when in the status bar when an error occurs. By default the error is 'Failed!'
Definition at line 139 of file AssetRefreshWorker.java.
|
inlineprotected |
Returns the message used when in the status bar when no error occurs. By default the message is 'Success!'
Definition at line 146 of file AssetRefreshWorker.java.
|
inlineprotected |
Returns the message used while waiting for construct() to return By default the message is 'Requesting...'
Definition at line 153 of file AssetRefreshWorker.java.
|
inlineprotected |
Returns the duration in milliseconds that the status bar waits before clearing the success or error message. By default this is set to 1000 ms.
Definition at line 181 of file AssetRefreshWorker.java.
|
inline |
Starts the worker.
Definition at line 129 of file AssetRefreshWorker.java.