Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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();
    }
  • No labels