Advertisement
LaCaraDeLaVerga

Base UI proyecto megafono

Jun 11th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.51 KB | None | 0 0
  1.  
  2.  
  3. import javax.servlet.annotation.WebServlet;
  4.  
  5. import com.vaadin.annotations.Theme;
  6. import com.vaadin.annotations.Title;
  7. import com.vaadin.annotations.VaadinServletConfiguration;
  8. //import com.vaadin.ejercicios.domain.model.Contact;
  9. //import com.vaadin.ejercicios.services.ContactService;
  10. import com.vaadin.server.VaadinRequest;
  11. import com.vaadin.server.VaadinServlet;
  12. import com.vaadin.ui.Label;
  13. import com.vaadin.ui.UI;
  14.  
  15. /* User Interface written in Java.
  16.  *
  17.  * Define the user interface shown on the Vaadin generated web page by extending the UI class.
  18.  * By default, a new UI instance is automatically created when the page is loaded. To reuse
  19.  * the same instance, add @PreserveOnRefresh.
  20.  */
  21. @Title("Addressbook")
  22. @Theme("valo")
  23. public class JereUI extends UI {
  24.  
  25. /**
  26.      *
  27.      */
  28.     private static final long serialVersionUID = 1L;
  29.  
  30.     /*
  31.      * The "Main method".
  32.      *
  33.      * This is the entry point method executed to initialize and configure the
  34.      * visible user interface. Executed on every browser reload because a new
  35.      * instance is created for each web page loaded.
  36.      */
  37.     @Override
  38.     protected void init(VaadinRequest request) {
  39.         Label  hola = new Label("Hola maxi bueno , hola maxi scout");
  40.         setContent(hola);
  41.     }
  42.  
  43.     @WebServlet(urlPatterns = "/*")
  44.     @VaadinServletConfiguration(ui = JereUI.class, productionMode = false)
  45.     public static class MyUIServlet extends VaadinServlet {
  46.  
  47.         /**
  48.          *
  49.          */
  50.         private static final long serialVersionUID = 1L;
  51.     }
  52.  
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement