Views lassen sich auch als Popup Fenster aufrufen. Dazu bietet Ihnen RapidClipse in der Palette das Code-Template PopupWindow.
...
can also be opened as pop-up windows. In the Palette, RapidClipse offers you the code template Popup Window.
- Enter a new View, e.g. customer view and add a few UI components.
- Add an XdevButton to the MainView and register a buttonClick event.
- In the code view, set the cursor under the generated Button.ClickEvent Handler.
- Ziehen Sie aus der Palette das Code-Template unter den generierten Drag the code template from Palette under the generated Button.ClickEvent Handler.
- Geben Sie als ersten Parameter die aufzurufende View CustomerView an.
...
- Specify the view to be called as the first parameter CustomerView
Result:
Code Block | ||||
---|---|---|---|---|
| ||||
private void button_buttonClick(Button.ClickEvent event) { PopupWindow.For(new CustomerView()).closable(true).draggable(true).resizable(true).modal(true).show(); } |
Examples:
Popup Fenster schließen - Mit Hilfe eines XdevButton lässt sich das Popup Fenster wieder schließenClose pop-up window - With an XdevButton you can close the pop-up window.
Code Block language java theme Confluence private void button_buttonClick(Button.ClickEvent event) { ((Window)this.getParent()).close(); }