Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

  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. Ziehen Sie aus der Palette das Code-Template unter den generierten Drag the code template from Palette under the generated Button.ClickEvent Handler.
  5. Geben Sie als ersten Parameter die aufzurufende View CustomerView an.

...

  1. Specify the view to be called as the first parameter CustomerView 
Result:
Code Block
languagejava
themeConfluence
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
    languagejava
    themeConfluence
    private void button_buttonClick(Button.ClickEvent event) {
    	((Window)this.getParent()).close();
    }