Package | com.yworks.remote |
Class | public class SaveHandler |
Inheritance | SaveHandler AbstractFileWriteHandler flash.events.EventDispatcher |
flash.net.FileReference
.
For a server-based write handler, see class DownloadHandler
See also
Method | Defined By | ||
---|---|---|---|
SaveHandler(roundtripHandler:RoundtripHandler = null)
Creates a new instance with the given RoundtripHandler as output handler. | SaveHandler | ||
Opens a file dialog and saves the GraphML which represents the given graph. | SaveHandler |
SaveHandler | () | Constructor |
public function SaveHandler(roundtripHandler:RoundtripHandler = null)
Creates a new instance with the given RoundtripHandler
as output handler.
roundtripHandler:RoundtripHandler (default = null ) — The handler to use as provider for an output handler.
If none is provided a new DefaultGraphMLIOHandler is used as output handler.
|
save | () | method |
public function save(graph:IGraph, defaultFileName:String):void
Opens a file dialog and saves the GraphML which represents the given graph.
Event handling can be customized by overriding the various protected event handler functions.
Parameters
graph:IGraph — The graph instance that is to be serialized.
| |
defaultFileName:String — The default file name to be shown in the browser's download dialog.
|