@Override public B withDetachListener(DetachListener listener) { getInstance().addDetachListener(listener); return builder(); }
/** * Add an {@link DetachListener} to the component, called before the component is detached from the application. * @param listener Listener to add * @return this */ B withDetachListener(DetachListener listener);