|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CoverageDatabaseListener
A listener notified when a Layer or a Grid Coverage Reference is about to be added or removed. Whatever the listener is invoked
before or after the change, and whatever the change is a add or
remove operation, is described by the CoverageDatabaseEvent argument.
It is possible for this listener to be also a controller. In such cases, when a coverage is about to be added in a layer, implementations can modify the values to be added.
Listeners can veto the change when they are invoked before the change.
CoverageDatabase.addListener(CoverageDatabaseListener),
CoverageDatabase.removeListener(CoverageDatabaseListener)
| coverage/geotk-coverage-sql (download) | View source code for this class |
| Method Summary | |
|---|---|
void |
coverageAdding(CoverageDatabaseEvent event,
NewGridCoverageReference reference)
Invoked before or after a Grid Coverage Reference is added. |
void |
layerListChange(CoverageDatabaseEvent event,
String name)
Invoked before or after a Layer is added or removed. |
| Method Detail |
|---|
void layerListChange(CoverageDatabaseEvent event,
String name)
throws DatabaseVetoException
event - The kind of event.name - The name of the layer.
DatabaseVetoException - if the recipient vetos against the change. This exception
will be logged at the WARNING level and
otherwise ignored if it is thrown after the change.
void coverageAdding(CoverageDatabaseEvent event,
NewGridCoverageReference reference)
throws DatabaseVetoException
Implementations can modify in-place the field values of the reference argument.
The changes will be honored if they are applied before the new entry is added to the database, and ignored if the changes are applied after.
event - The kind of event.reference - Information about the coverage reference to be added.
DatabaseVetoException - if the recipient vetos against the change. This exception
will be logged at the WARNING level and
otherwise ignored if it is thrown after the change.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||