fr.ove.openmath.mathematica
Interface Savable

All Known Implementing Classes:
MyJInternalFrame, OMWorkSheet, WorkBook

public interface Savable

An interface to implement to be condidered as savable.


Method Summary
 boolean isSaveNeeded()
          Checks if the instance need to be saved.
 java.lang.Object save()
          Saves the instance.
 java.lang.Object save(java.io.File file)
          Saves the instance into the specified file.
 java.lang.Object saveAs(java.lang.String name)
          Saves the instance with the specified name.
 void setSaveNeeded(boolean needed)
          Sets if the instance need to be saved.
 

Method Detail

save

public java.lang.Object save()
Saves the instance.


save

public java.lang.Object save(java.io.File file)
Saves the instance into the specified file.


saveAs

public java.lang.Object saveAs(java.lang.String name)
Saves the instance with the specified name.

Parameters:
name - the specified name.

isSaveNeeded

public boolean isSaveNeeded()
Checks if the instance need to be saved.

Returns:
true if the instance need to be saved. false otherwise.

setSaveNeeded

public void setSaveNeeded(boolean needed)
Sets if the instance need to be saved.

Parameters:
needed - true if the instance need to be saved. false otherwise.


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.