public class ResourceHandler extends java.lang.Object implements IModelResourceHandler
| Constructor and Description |
|---|
ResourceHandler(boolean saveAndRestore,
boolean clearPersistedState)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
createResourceWithApp(MApplication theApp)
Creates a resource with an app Model, used for saving copies of the main app model.
|
protected long |
getLastApplicationModification() |
boolean |
hasTopLevelWindows() |
Resource |
loadMostRecentModel()
Loads an returns the most recent model that was persisted
|
void |
save()
Saves the model
|
public ResourceHandler(boolean saveAndRestore,
boolean clearPersistedState)
saveAndRestore - clearPersistedState - public boolean hasTopLevelWindows()
true if the current application model has top-level windows.public Resource loadMostRecentModel()
IModelResourceHandlerloadMostRecentModel in interface IModelResourceHandlerpublic void save()
throws java.io.IOException
IModelResourceHandlersave in interface IModelResourceHandlerjava.io.IOException - if storing failspublic Resource createResourceWithApp(MApplication theApp)
createResourceWithApp in interface IModelResourceHandlertheApp - the application model to add to the resourceprotected long getLastApplicationModification()