public class ModelMainFrame extends AbstractModel
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
ModelMainFrame()
An empty constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
determineNeedsSaving(java.lang.String oldValue,
java.lang.Object changedObject)
Determines whether or not we need to save by comparing the old value provided
with the new value derived from the given widget.
|
static boolean |
getNeedsSaving()
Indicates whether or not there are changed objects that need to be saved.
|
void |
handleAppEvent(AppEvent ape)
Allows the class to handle AppEvents.
|
void |
handleCheckForUpdatesFailure(boolean failSilently)
Handles the failure to check for updates.
|
void |
handleDownloadUpdateFailed()
Handles the failure to download an update.
|
void |
handleUpdateDownloadCancelled(java.io.File updateFile)
Handles the cancellation of an update download.
|
static void |
setMonitorSaving(boolean monitorSaving)
Sets whether or not we should be monitoring for saving.
|
static void |
setNeedsSaving(boolean needsSaving)
Sets whether or not there are changed objects that need to be saved.
|
getController, setController
public static void setMonitorSaving(boolean monitorSaving)
monitorSaving
- A boolean.public static boolean getNeedsSaving()
public static void setNeedsSaving(boolean needsSaving)
needsSaving
- A boolean.public static void determineNeedsSaving(java.lang.String oldValue, java.lang.Object changedObject)
oldValue
- A string representing the old value for the widget.changedObject
- An object that may have changed.public void handleCheckForUpdatesFailure(boolean failSilently)
failSilently
- In the case of automatic checks, we can safely fail quietly.public void handleDownloadUpdateFailed()
public void handleUpdateDownloadCancelled(java.io.File updateFile)
updateFile
- The update file.public void handleAppEvent(AppEvent ape)
handleAppEvent
in class AbstractModel
ape
- An AppEvent
.