org.openide.awt 7.55.1

org.netbeans.api.actions
Interface Savable

All Known Implementing Classes:
AbstractSavable

public interface Savable

Context interface that represents ability to persist its state to long term storage. To get best interaction with the system, it is preferable to use AbstractSavable to create instances of this interface rather than implementing it directly.

Since:
7.33

Field Summary
static Lookup REGISTRY
          Global registry of all Savables that are modified in the application and subject to save by Save All action.
 
Method Summary
 void save()
          Invoke the save operation.
 String toString()
          Human descriptive, localized name of the savable.
 

Field Detail

REGISTRY

static final Lookup REGISTRY
Global registry of all Savables that are modified in the application and subject to save by Save All action. See AbstractSavable for description how to register your own implementation into the registry.

Method Detail

save

void save()
          throws IOException
Invoke the save operation.

Throws:
IOException - if the object could not be saved

toString

String toString()
Human descriptive, localized name of the savable. It is advised that all implementations of Savable override the toString method to provide human readable name.

Overrides:
toString in class Object
Returns:
human readable name representing the savable

org.openide.awt 7.55.1

Built on June 6 2013.  |  Portions Copyright 1997-2013 Oracle. All rights reserved.