@ReactComponent @Unsupported public abstract class WindowPortal extends react4j.core.Component<WindowPortal.Props,react4j.core.BaseState,react4j.core.BaseContext>
TODO: In the future we should pass a control in the context that allows the sub-window to close itself.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WindowPortal.OnCloseCallback |
static class |
WindowPortal.Props |
| Constructor and Description |
|---|
WindowPortal() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
componentWillUnmount()
This method is invoked immediately before a component is unmounted and destroyed.
|
static react4j.core.ReactNode |
create(WindowPortal.Props props,
react4j.core.ReactNode child) |
protected void |
postConstruct()
This method is invoked after the component is constructed and bound to a native react component.
|
protected react4j.core.ReactNode |
render()
Render the component.
|
componentDidCatch, componentDidMount, componentDidUpdate, componentWillReceiveProps, componentWillUpdate, context, getChildContext, performPostConstruct, performRender, props, scheduleRender, scheduleStateUpdate, scheduleStateUpdate, scheduleStateUpdate, scheduleStateUpdate, setInitialState, shouldComponentUpdate, state@Nonnull
public static react4j.core.ReactNode create(@Nonnull
WindowPortal.Props props,
@Nonnull
react4j.core.ReactNode child)
protected void postConstruct()
react4j.core.ComponentComponent.render(), therefore
setting state in this method will not trigger a re-rendering. This replaces the
componentWillMount
lifecycle method from react as well as the code that appears in constructors in native React ES6
components.postConstruct in class react4j.core.Component<WindowPortal.Props,react4j.core.BaseState,react4j.core.BaseContext>protected void componentWillUnmount()
react4j.core.ComponentComponent.componentDidMount()
See the React Component documentation for more details.componentWillUnmount in class react4j.core.Component<WindowPortal.Props,react4j.core.BaseState,react4j.core.BaseContext>@Nullable protected react4j.core.ReactNode render()
react4j.core.Componentrender in class react4j.core.Component<WindowPortal.Props,react4j.core.BaseState,react4j.core.BaseContext>