public static ScreenContext getScreenContext(FrameOwner frameOwner) { if (frameOwner instanceof Screen) { return ((Screen) frameOwner).getScreenContext(); } return ((ScreenFragment) frameOwner).getScreenContext(); }
/** * Shows this screen. * * @see Screens#show(Screen) */ public Screen show() { getScreenContext().getScreens().show(this); return this; }