public abstract class BeforeSavingAdapter extends Object implements BeforeSavingListener
Extend this class to create a SaveEvent
listener
and override the methods for the events of interest. (If you implement the
BeforeSavingListener
interface, you have to define all of
the methods in it. This abstract class defines null methods for them
all, so you can only have to define methods for events you care about.)
Create a listener object using the extended class and then register it with
a component using the component's addBeforeSavingListener
method. When an object that provides support of notification
about saving files, is going to save a file,
the relevant method in the listener object is invoked,
and the SaveEvent
is passed to it.
SaveEvent
,
BeforeSavingListener
Constructor and Description |
---|
BeforeSavingAdapter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
beforeSaving(SaveEvent e)
Invoked after saving a file.
|
public abstract void beforeSaving(SaveEvent e)
BeforeSavingListener
SaveEvent
for a definition of
is going to save an event.beforeSaving
in interface BeforeSavingListener