tornadofx / tornadofx.osgi / javafx.event.EventTarget / addViewsWhen

addViewsWhen

fun EventTarget.addViewsWhen(acceptor: (ViewProvider) -> Boolean): Unit

Subscribe to ViewProvider events from other OSGi bundles and add the provided view to this UI element if the acceptor returns true.