Package org.openstreetmap.josm.gui.layer
Interface SaveToFile
-
- All Known Implementing Classes:
AbstractModifiableLayer
,AbstractOsmDataLayer
,AdvancedPreference.UnclearableOsmDataLayer
,CorrelationSupportLayer
,GeoImageLayer
,GpxLayer
,GpxRouteLayer
,NoteLayer
,OsmDataLayer
,WikimediaCommonsLayer
public interface SaveToFile
Interface for layers that can save data to a file.- Since:
- 9751
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSavable()
Replies the savable state of the layer (i.e.void
onPostSaveToFile()
Initializes the layer after a successful save of data to a file.boolean
requiresSaveToFile()
Determines if the data managed by this layer needs to be saved to a file.
-
-
-
Method Detail
-
isSavable
boolean isSavable()
Replies the savable state of the layer (i.e. if it can be saved through a "File → Save" dialog). A layer that implements theSaveToFile
interface must returntrue
.- Returns:
true
if the layer can be saved to a file;false
, otherwise
-
requiresSaveToFile
boolean requiresSaveToFile()
Determines if the data managed by this layer needs to be saved to a file. Only replies true if a file is assigned to this layer and if the data managed by this layer has been modified since the last save operation to the file.- Returns:
true
if the data managed by this layer needs to be saved to a file;false
, otherwise
-
onPostSaveToFile
void onPostSaveToFile()
Initializes the layer after a successful save of data to a file.
-
-