You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EagerWidgetMapGenerator.java 946B

1234567891011121314151617181920212223242526272829
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.widgetsetutils;
  5. import com.vaadin.shared.ui.Connect.LoadStyle;
  6. import com.vaadin.terminal.gwt.client.ServerConnector;
  7. /**
  8. * WidgetMap generator that builds a widgetset that packs all included widgets
  9. * into a single JavaScript file loaded at application initialization. Initially
  10. * loaded data will be relatively large, but minimal amount of server requests
  11. * will be done.
  12. * <p>
  13. * This is the default generator in version 6.4 and produces similar type of
  14. * widgetset as in previous versions of Vaadin. To activate "code splitting",
  15. * use the {@link WidgetMapGenerator} instead, that loads most components
  16. * deferred.
  17. *
  18. * @see WidgetMapGenerator
  19. *
  20. */
  21. public class EagerWidgetMapGenerator extends WidgetMapGenerator {
  22. @Override
  23. protected LoadStyle getLoadStyle(Class<? extends ServerConnector> connector) {
  24. return LoadStyle.EAGER;
  25. }
  26. }