org.malai.ui
Interface ISOpenSaver

All Known Implementing Classes:
SVGDocumentGenerator

public interface ISOpenSaver

Defines an interface for objects that must open and save abstract presentations and instruments data into a file.

This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

06/05/2010

Since:
0.2
Version:
0.2
Author:
Arnaud BLOUIN

Method Summary
 boolean open(java.lang.String path, UI ui, MProgressBar progressBar, java.lang.Object statusWidget)
          Opens the given file and sets the abstract presentations and the instruments parameters of the given UI to the given file.
 boolean save(java.lang.String path, UI ui, MProgressBar progressBar, java.lang.Object statusWidget)
          Saves the abstract presentations and the instruments parameters of the given UI to the given file.
 

Method Detail

save

boolean save(java.lang.String path,
             UI ui,
             MProgressBar progressBar,
             java.lang.Object statusWidget)
Saves the abstract presentations and the instruments parameters of the given UI to the given file.

Parameters:
path - The destination path.
ui - The user interface that contains abstract presentations and instruments.
progressBar - The progress bar used to show the progress of the saving. Can be null.
statusWidget - The widget that displays the status of the saving operation. Can be null.
Returns:
True: the operation is successful.
Since:
0.2

open

boolean open(java.lang.String path,
             UI ui,
             MProgressBar progressBar,
             java.lang.Object statusWidget)
Opens the given file and sets the abstract presentations and the instruments parameters of the given UI to the given file.

Parameters:
path - The source path that contains information for presentations and instruments.
ui - The user interface that contains abstract presentations and instruments.
progressBar - The progress bar used to show the progress of the saving. Can be null.
statusWidget - The widget that displays the status of the loading operation. Can be null.
Returns:
True: the operation is successful.
Since:
0.2