Package io.jmix.ui.screen
Class UiControllerUtils
java.lang.Object
io.jmix.ui.screen.UiControllerUtils
Internal methods used in Screens and Fragments implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionaddAfterDetachListener(Screen screen, Consumer<Screen.AfterDetachEvent> listener) static SubscriptionaddDetachListener(ScreenFragment screen, Consumer<ScreenFragment.DetachEvent> listener) static <E> voidfireEvent(FrameOwner screen, Class<E> eventType, E event) static EventHubgetEventHub(FrameOwner frameOwner) static <T extends Facet>
Tstatic FramegetFrame(FrameOwner frameOwner) static ScreengetHostScreen(ScreenFragment fragment) static StringgetPackage(Class controllerClass) static ScreengetScreen(FrameOwner screen) static ScreenContextgetScreenContext(FrameOwner frameOwner) static ScreenDatagetScreenData(FrameOwner frameOwner) static List<org.springframework.context.ApplicationListener>getUiEventListeners(FrameOwner frameOwner) static booleanisAlreadyOpened(Screen newScreen, Screen openedScreen) static booleanisMultipleOpen(Screen screen) static voidsetFrame(FrameOwner screen, Frame window) static voidsetHostController(ScreenFragment fragment, FrameOwner hostController) static voidsetScreenContext(FrameOwner screen, ScreenContext screenContext) static voidsetScreenData(FrameOwner screen, ScreenData screenData) static voidsetUiEventListeners(FrameOwner frameOwner, List<org.springframework.context.ApplicationListener> listeners) static voidsetWindowId(FrameOwner screen, String id)
-
Constructor Details
-
UiControllerUtils
public UiControllerUtils()
-
-
Method Details
-
setWindowId
-
setFrame
-
fireEvent
-
getEventHub
-
setScreenContext
-
getScreenContext
-
getScreenData
-
setScreenData
-
getFrame
-
setUiEventListeners
public static void setUiEventListeners(FrameOwner frameOwner, List<org.springframework.context.ApplicationListener> listeners) -
getUiEventListeners
@Nullable public static List<org.springframework.context.ApplicationListener> getUiEventListeners(FrameOwner frameOwner) -
getPackage
-
setHostController
-
addAfterDetachListener
public static Subscription addAfterDetachListener(Screen screen, Consumer<Screen.AfterDetachEvent> listener) -
addDetachListener
public static Subscription addDetachListener(ScreenFragment screen, Consumer<ScreenFragment.DetachEvent> listener) -
getHostScreen
-
getScreen
-
isMultipleOpen
-
isAlreadyOpened
-
getFacet
-