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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Subscription
addAfterDetachListener
(Screen screen, Consumer<Screen.AfterDetachEvent> listener) static Subscription
addDetachListener
(ScreenFragment screen, Consumer<ScreenFragment.DetachEvent> listener) static <E> void
fireEvent
(FrameOwner screen, Class<E> eventType, E event) static EventHub
getEventHub
(FrameOwner frameOwner) static <T extends Facet>
Tstatic Frame
getFrame
(FrameOwner frameOwner) static Screen
getHostScreen
(ScreenFragment fragment) static String
getPackage
(Class controllerClass) static Screen
getScreen
(FrameOwner screen) static ScreenContext
getScreenContext
(FrameOwner frameOwner) static ScreenData
getScreenData
(FrameOwner frameOwner) static List<org.springframework.context.ApplicationListener>
getUiEventListeners
(FrameOwner frameOwner) static boolean
isAlreadyOpened
(Screen newScreen, Screen openedScreen) static boolean
isMultipleOpen
(Screen screen) static void
setFrame
(FrameOwner screen, Frame window) static void
setHostController
(ScreenFragment fragment, FrameOwner hostController) static void
setScreenContext
(FrameOwner screen, ScreenContext screenContext) static void
setScreenData
(FrameOwner screen, ScreenData screenData) static void
setUiEventListeners
(FrameOwner frameOwner, List<org.springframework.context.ApplicationListener> listeners) static void
setWindowId
(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
-