N
- the native typepublic interface WWindow<N> extends WWidget<org.eclipse.e4.ui.model.application.ui.basic.MWindow>
WWidget.WidgetState
Modifier and Type | Method and Description |
---|---|
void |
addChild(int idx,
@NonNull WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MWindowElement> widget)
Insert a child widget at the given index
|
void |
addChild(@NonNull WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MWindowElement> widget)
Append a child widget shown in the center
|
void |
addChildWindow(@NonNull WWindow<N> widget)
Add a child window
|
void |
close()
Hide the window
|
void |
removeChild(@NonNull WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MWindowElement> widget)
Remove a child widget
|
void |
removeChildWindow(@NonNull WWindow<N> widget)
Remove the given child window
|
void |
setBottomTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
Set the bottom trim
|
void |
setLeftTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
Set the left trim
|
void |
setMainMenu(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.menu.MMenu> menuWidget)
Set a main menu
|
void |
setOnCloseCallback(@NonNull WCallback<WWindow<N>,java.lang.Boolean> closeCallback)
Add a callback to veto the closing of the window
|
void |
setRightTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
Set the right trim
|
void |
setTopTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
Set the top trim
|
void |
show()
Show the window
|
activate, addStyleClasses, addStyleClasses, deactivate, getDomElement, getWidget, getWidgetState, isActive, registerActivationCallback, removeStyleClasses, removeStyleClasses, setDomElement, setPropertyChangeHandler, setStyleId, setWidgetState
void setMainMenu(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.menu.MMenu> menuWidget)
menuWidget
- the main menu widgetvoid setTopTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
trimBar
- the widget shown in the top trim areavoid setLeftTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
trimBar
- the widget shown in the left trim areavoid setRightTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
trimBar
- the widget shown in the right trim areavoid setBottomTrim(@Nullable WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MTrimBar> trimBar)
trimBar
- the widget shown in the bottom trim areavoid addChild(@NonNull WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MWindowElement> widget)
widget
- the widgetvoid addChild(int idx, @NonNull WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MWindowElement> widget)
idx
- the indexwidget
- the widgetvoid removeChild(@NonNull WLayoutedWidget<org.eclipse.e4.ui.model.application.ui.basic.MWindowElement> widget)
widget
- the widgetvoid addChildWindow(@NonNull WWindow<N> widget)
widget
- the windowvoid removeChildWindow(@NonNull WWindow<N> widget)
widget
- the windowvoid setOnCloseCallback(@NonNull WCallback<WWindow<N>,java.lang.Boolean> closeCallback)
closeCallback
- the callbackvoid show()
void close()