Opening a Pop-Up Window
Views 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.
Drag the code template from Palette under the generated Button.ClickEvent Handler.
Specify the view to be called as the first parameter CustomerView
Result:
private void button_buttonClick(Button.ClickEvent event) {
PopupWindow.For(new CustomerView()).closable(true).draggable(true).resizable(true).modal(true).show();
}Examples:
Close pop-up window - With an XdevButton you can close the pop-up window.
private void button_buttonClick(Button.ClickEvent event) { ((Window)this.getParent()).close(); }