Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Wählen Sie im MenüIn the menu, select File > New > RapidClipse Project.
  2. Geben Sie im folgenden Projekt-Assistenten bei Project name den Namen Ihres Projektes ein, z.BIn the following project wizard, enter the name of your project under Project name, e.g. Example.

  3. Wählen Sie bei Under Data Source > Connection eine Datenquelle aus oder klicken Sie auf , select a data source or click New... um eine neue Datenquelle anzulegen to create a new data source

  4. Klicken Sie auf Click Finish.

...

Note:

Beim Anlegen eines neuen RapidClipse Projektes werden einmalig alle für ein RapidClipse Projekt benötigten Bibliotheken mit deren Abhängigkeiten automatisch vom Maven Central Repository downgeloaded. Dazu müssen Sie online sein. Der Download kann je nach Internet-Verbindung einige Minuten dauern. Anschließend können Sie mit RapidClipse auch offline arbeiten.

Optionen:

...

The first time you create a new RapidClipse project, all libraries required for a RapidClipse project, along with their dependencies, will be automatically downloaded from the Maven Central Repository. This is why you have to be online. Depending on your Internet connection, the download can take a few minutes. After that, you can also work with RapidClipse offline.

Options:
  • Data Source - Enables you to select an already existing data source and to create a new one.
    • Show import wizard - Shows the database import wizard that imports the metadata in your database and generates appropriate entities
  • User Interface
    • Create UIs for multiple devices - Generiert ein RapidClipse Multi-Plattform-Projekt mit unterschiedlichen MainUIs inklusive der jeweils ersten View (MainView) für den Desktop, Smartphones und Tablets Generates a RapidClipse multiple UI project with different MainUIs, including the respective first view (MainView) for desktops, smartphones, and tablets.
  • Authentication and Authorization
    • Enable authentication - Standard-Konzept für Authentifizierung. Legt einen neuen Authentication Provider an Standard concept for authentication. Creates a new authentication provider.
    • Enable authorization - Standard -Konzept für Autorisierung. Legt einen neuen Authorization Configuration Provider an. Um Autorisierung nutzen zu können, muss auch die Option Enable authentication selektiert seinconcept for authorization. Creates a new authorization provider. To use the authorization option, make sure to also select Enable authentication.
  • MobileKit
    • Enable MobileKit - Bindet das Connects the XDEV Mobile Kit ein. Damit erhalten Sie Zugriff auf Geräte- und Systemfunktionen mobiler Geräte und können hybride Mobile Apps für Android, iOS und Windows Geräte deployen. Gives you access to device and system functions of mobile devices and can deploy hybrid mobile apps for Android, iOS and Windows devices.
  • XDEV CloudDer Assistent lädt automatisch alle für ein RapidClipse Projekt benötigten Libraries mit dazugehörigen Dependencies via Maven und legt ein RapidClipse Projekt mit einer leerer MainUI und einer ersten View (MainView) an
    • Create project in the XDEV Cloud - Legt ein  Creates an XDEV Cloud Projekt an. Dazu benötigen Sie einen XDEV Cloud Account.
Ergebnis:
    • project. You'll first need an XDEV Cloud account.
Result:
  • The wizard automatically downloads all the libraries with their dependencies, that are required for a RapidClipse project via Maven and creates a RapidClipse project with an empty MainUI and a first view (MainView).
     

  • MainUI.java

    Code Block
    languagejava
    themeConfluence
    package com.company.example.ui;
    
    import com.vaadin.annotations.Push;
    import com.vaadin.annotations.Theme;
    import com.vaadin.navigator.ViewDisplay;
    import com.vaadin.server.VaadinRequest;
    import com.xdev.ui.XdevUI;
    import com.xdev.ui.navigation.XdevNavigator;
    
    
    @Push
    @Theme("Example")
    public class MainUI extends XdevUI {
    	public MainUI() {
    		super();
    	}
    
    	/**
    	 * {@inheritDoc}
    	 */
    	@Override
    	public void init(VaadinRequest request) {
    		this.initUI();
    	}
    
    	String username = "";
    	
    	
    	/*
    	 * WARNING: Do NOT edit!<br>The content of this method is always regenerated
    	 * by the UI designer.
    	 */
    	// <generated-code name="initUI">
    	private void initUI() {
    		this.navigator = new XdevNavigator(this, (ViewDisplay) null);
    	
    		this.navigator.addView("", MainView.class);
    	
    		this.setSizeFull();
    	} // </generated-code>
    
    	// <generated-code name="variables">
    	private XdevNavigator navigator; // </generated-code>
    	
    }
  • MainView.java - View created by RapidClipse angelegte View. Die Bezeichnung MainView kann jederzeit geändert werden. The name, MainView, can be changed at any time.

    Code Block
    languagejava
    themeConfluence
    import com.xdev.ui.XdevView;
    
    public class MainView extends XdevView {
    
    /**
     * 
     */
    public MainView() {
    	super();
    	this.initUI();
    }
    
    /*
     * WARNING: Do NOT edit!<br>The content of this method is always regenerated
     * by the UI designer.
     */
    // <generated-code name="initUI">
    private void initUI() {
    	this.gridLayout = new XdevGridLayout();
    
    	this.gridLayout.setSizeFull();
    	this.setContent(this.gridLayout);
    	this.setSizeFull();
    } // </generated-code>
    
    // <generated-code name="variables">
    private XdevGridLayout gridLayout; // </generated-code>
    
    
    }
  • Servlet.java - Startet die Anwendung Starts the application (Servlet) im in the Servlet -Containercontainer.

    Code Block
    languagejava
    themeConfluence
    package com.company.example.ui;
    
    import javax.servlet.annotation.WebServlet;
    import com.vaadin.annotations.VaadinServletConfiguration;
    import com.xdev.communication.XdevServlet;
    
    @WebServlet(value = "/*", asyncSupported = true)
    @VaadinServletConfiguration(productionMode = false, ui = MainUI.class)
    public class Servlet extends XdevServlet {
    	public Servlet() {
    		super();
    	}
    }