Package io.jmix.ui
Interface Fragments
- All Known Implementing Classes:
FragmentsImpl
public interface Fragments
Interface defining methods for creation and displaying of reusable screen parts that have their own UI controller.
Usage example (this - Screen controller):
Usage example (this - Screen controller):
Fragment editorActions = fragments.create(this, EditorActionsFragment.class)
.init()
.getFragment();
this.getWindow().add(editorActions);
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends ScreenFragment>
Tcreate
(FrameOwner parent, Class<T> screenFragmentClass) Creates a screen fragment by its controller class.<T extends ScreenFragment>
Tcreate
(FrameOwner parent, Class<T> screenFragmentClass, ScreenOptions options) Creates a screen fragment by its controller class.default ScreenFragment
create
(FrameOwner parent, String screenFragmentId) Creates a screen fragment by its id.create
(FrameOwner parent, String screenFragmentId, ScreenOptions options) Creates a screen fragment by its id.void
init
(ScreenFragment fragment) Perform fragment initialization.
-
Method Details
-
create
Creates a screen fragment by its controller class.- Parameters:
parent
- parent UI controllerscreenFragmentClass
- screen controller class
-
create
Creates a screen fragment by its id.- Parameters:
parent
- parent UI controllerscreenFragmentId
- id of screen fragment
-
create
<T extends ScreenFragment> T create(FrameOwner parent, Class<T> screenFragmentClass, ScreenOptions options) Creates a screen fragment by its controller class.- Parameters:
parent
- parent UI controllerscreenFragmentClass
- screen controller classoptions
- screen parameters
-
create
Creates a screen fragment by its id.- Parameters:
parent
- parent UI controllerscreenFragmentId
- id of screen fragmentoptions
- screen parameters
-
init
Perform fragment initialization. Clients must always perform init.- Parameters:
fragment
- fragment
-