Interface PathManager.Callback
-
- Enclosing interface:
- PathManager
public static interface PathManager.Callback
A callback, seePathManager.registerCallback(String, Callback, Event...)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PathManager.Callback.Handle
A handle to a callback
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
pathEvent(PathManager.Event event, PathEntry pathEntry)
Called once the model has been successfully updated, and the path has been updated in the path manager.void
pathModelEvent(PathManager.PathEventContext eventContext, String name)
Called when a path is modified in the model.
-
-
-
Method Detail
-
pathModelEvent
void pathModelEvent(PathManager.PathEventContext eventContext, String name)
Called when a path is modified in the model. This happens before any changes are made to the path in the path manager. IfPathManager.PathEventContext.reloadRequired()
orPathManager.PathEventContext.restartRequired()
are called the path will not get updated in the path manager, and {@code pathEvent) does not get called.- Parameters:
eventContext
- the eventthe
- name of the path being modified
-
pathEvent
void pathEvent(PathManager.Event event, PathEntry pathEntry)
Called once the model has been successfully updated, and the path has been updated in the path manager.- Parameters:
event
- the eventpathEntry
- the path entry after the event takes place
-
-