Versions Compared

Key

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

...

  • Der 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.
     

  • 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 - Erstes Programmfenster das für ein neues Projekt standardmäßig angelegt wirdRapidClipse angelegte View. Die Bezeichnung MainView hat keine spezielle Bedeutung und kann  kann jederzeit geändert werden.

    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 (Servlet) im Servlet-Container.

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

...