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.

  1. Enter a new View, e.g. customer view and add a few UI components.
  2. Add an XdevButton to the MainView and register a buttonClick event.
  3. In the code view, set the cursor under the generated Button.ClickEvent Handler. 
  4. Drag the code template from Palette under the generated Button.ClickEvent Handler.
  5. 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.