public void onAnchorRemoved(Anchor anchor) {
callbackOrdering.add(RemoveListener.class);
}
});
doc.getLineCountListenerRegistrar().add(new LineCountListener() {
@Override
public void onLineCountChanged(Document document, int lineCount) {
callbackOrdering.add(LineCountListener.class);
}
});