Packageorg.servebox.toolbox.view
Interfacepublic interface IDataSaveViewHelper
ImplementorsAbstractDataSaveViewHelper

IDataSaveViewHelper is a interface for ViewHelper that will force user to save data before leaving view



Public Methods
 MethodDefined by
  
cancelSave():void
Triggers the actions needed to reflect the user cancelling.
IDataSaveViewHelper
  
Returns the IViewSavePrompt instance to use as the save confirmation prompt.
IDataSaveViewHelper
  
Returns the text to display to the user inside the ISavePrompt instance.
IDataSaveViewHelper
  
isViewModified():Boolean
Indicates whether the view can be quit by the FlexBrowser without saving data.
IDataSaveViewHelper
  
save(data:IViewDataSaveWrapper = null):void
Triggers the actions needed to save the data stored inside the view/view helper instances.
IDataSaveViewHelper
  
setClean():void
Specifies that the view need to be considered as not modified.
IDataSaveViewHelper
  
setModified():void
Specifies that the view need to be considered as modified.
IDataSaveViewHelper
Method detail
cancelSave()method
public function cancelSave():void

Triggers the actions needed to reflect the user cancelling.

getSavePromptClass()method 
public function getSavePromptClass():Class

Returns the IViewSavePrompt instance to use as the save confirmation prompt.

Returns
Class
getSavePromptText()method 
public function getSavePromptText():String

Returns the text to display to the user inside the ISavePrompt instance.

Returns
String
isViewModified()method 
public function isViewModified():Boolean

Indicates whether the view can be quit by the FlexBrowser without saving data.

Returns
Boolean
save()method 
public function save(data:IViewDataSaveWrapper = null):void

Triggers the actions needed to save the data stored inside the view/view helper instances.

Parameters
data:IViewDataSaveWrapper (default = null)
setClean()method 
public function setClean():void

Specifies that the view need to be considered as not modified.

setModified()method 
public function setModified():void

Specifies that the view need to be considered as modified.