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(); }
XDEV Software Corp. - One Embarcadero Center, San Francisco, CA 94111, US
Copyright © 2015. XDEV Software Corp. All rights reserved.