public interface ConfigurationNodeListener<P extends ParseContext<P>> extends EventListener
| Modifier and Type | Method and Description |
|---|---|
void |
childInserted(ConfigurationNodeEvent<P> nodeEvent)
Receive notification that a child has been inserted.
|
void |
childRemoved(ConfigurationNodeEvent<P> nodeEvent)
Receive notification that a child has been removed.
|
void |
insertRequest(ConfigurationNodeEvent<P> nodeEvent)
A
ConfigurationNode will make a request to all
listeners before inserting a node. |
void |
removalRequest(ConfigurationNodeEvent<P> nodeEvent)
A
ConfigurationNode will make a request to all
listeners before removing a node. |
void insertRequest(ConfigurationNodeEvent<P> nodeEvent) throws ModificationRefusedException
ConfigurationNode will make a request to all
listeners before inserting a node.
An instance of this use is that a simple property will only allow a single child.
nodeEvent - The modification event.ModificationRefusedException - If the listener veto's the request.void removalRequest(ConfigurationNodeEvent<P> nodeEvent) throws ModificationRefusedException
ConfigurationNode will make a request to all
listeners before removing a node.nodeEvent - The modification event.ModificationRefusedException - If the listener veto's the request.void childInserted(ConfigurationNodeEvent<P> nodeEvent)
nodeEvent - The modification event.void childRemoved(ConfigurationNodeEvent<P> nodeEvent)
nodeEvent - The modification event.Copyright © 2023. All rights reserved.