public interface Fragments
Fragment editorActions = fragments.create(this, EditorActionsFragment.class)
.init()
.getFragment();
this.getWindow().add(editorActions);
Modifier and Type | Method and Description |
---|---|
default <T extends ScreenFragment> |
create(FrameOwner parent,
java.lang.Class<T> screenFragmentClass)
Creates a screen fragment by its controller class.
|
<T extends ScreenFragment> |
create(FrameOwner parent,
java.lang.Class<T> screenFragmentClass,
ScreenOptions options)
Creates a screen fragment by its controller class.
|
default ScreenFragment |
create(FrameOwner parent,
java.lang.String screenFragmentId)
Creates a screen fragment by its id.
|
ScreenFragment |
create(FrameOwner parent,
java.lang.String screenFragmentId,
ScreenOptions options)
Creates a screen fragment by its id.
|
void |
init(ScreenFragment fragment)
Perform fragment initialization.
|
default <T extends ScreenFragment> T create(FrameOwner parent, java.lang.Class<T> screenFragmentClass)
parent
- parent UI controllerscreenFragmentClass
- screen controller classdefault ScreenFragment create(FrameOwner parent, java.lang.String screenFragmentId)
parent
- parent UI controllerscreenFragmentId
- id of screen fragment<T extends ScreenFragment> T create(FrameOwner parent, java.lang.Class<T> screenFragmentClass, ScreenOptions options)
parent
- parent UI controllerscreenFragmentClass
- screen controller classoptions
- screen parametersScreenFragment create(FrameOwner parent, java.lang.String screenFragmentId, ScreenOptions options)
parent
- parent UI controllerscreenFragmentId
- id of screen fragmentoptions
- screen parametersvoid init(ScreenFragment fragment)
fragment
- fragment