public class FileHandlerListenerAdapter extends Object implements FileHandlerListener
An adapter class simplifying the implementation of custom
FileHandlerListener
classes.
This class provides empty dummy implementations for all methods defined by
the FileHandlerListener
interface. Custom listener implementations
can extend this adapter class and override only the methods they actually
need.
Constructor and Description |
---|
FileHandlerListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
loaded(FileHandler handler)
Notification that the associated file has been loaded.
|
void |
loading(FileHandler handler)
Notification that the associated file is about to be loaded.
|
void |
locationChanged(FileHandler handler)
Notification that a property of the monitored
FileHandler has
changed. |
void |
saved(FileHandler handler)
Notification that the associated file has been saved.
|
void |
saving(FileHandler handler)
Notification that the associated file is about to be saved.
|
public void loading(FileHandler handler)
FileHandlerListener
loading
in interface FileHandlerListener
handler
- the file handlerpublic void loaded(FileHandler handler)
FileHandlerListener
loaded
in interface FileHandlerListener
handler
- the file handlerpublic void saving(FileHandler handler)
FileHandlerListener
saving
in interface FileHandlerListener
handler
- the file handlerpublic void saved(FileHandler handler)
FileHandlerListener
saved
in interface FileHandlerListener
handler
- the file handlerpublic void locationChanged(FileHandler handler)
FileHandlerListener
FileHandler
has
changed.locationChanged
in interface FileHandlerListener
handler
- the file handlerCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.