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.

LazyWidgetMapGenerator.java 610B

1234567891011121314151617181920212223
  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 optimizes the transferred
  9. * data. Widgets are loaded only when used if the widgetset is built with this
  10. * generator.
  11. *
  12. * @see WidgetMapGenerator
  13. *
  14. */
  15. public class LazyWidgetMapGenerator extends WidgetMapGenerator {
  16. @Override
  17. protected LoadStyle getLoadStyle(Class<? extends ServerConnector> connector) {
  18. return LoadStyle.LAZY;
  19. }
  20. }