Default loadStyle is now eager. Only RichTextArea and ColorPicker are set as lazy.
Change-Id: Icc22ea7f861a1435f94ff74426a958c9ca32ba77
import com.vaadin.client.communication.RpcProxy;
import com.vaadin.client.ui.VColorPickerArea;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.shared.ui.colorpicker.ColorPickerServerRpc;
+import com.vaadin.ui.ColorPickerArea;
/**
* A class that defines an implementation for a color picker connector. Connects
*
* @since 7.0.0
*/
-@Connect(com.vaadin.ui.ColorPickerArea.class)
+@Connect(value = ColorPickerArea.class, loadStyle = LoadStyle.LAZY)
public class ColorPickerAreaConnector extends AbstractColorPickerConnector {
private ColorPickerServerRpc rpc = RpcProxy.create(
import com.vaadin.client.communication.RpcProxy;
import com.vaadin.client.ui.VColorPicker;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.shared.ui.colorpicker.ColorPickerServerRpc;
+import com.vaadin.ui.ColorPicker;
/**
* A class that defines default implementation for a color picker connector.
*
* @since 7.0.0
*/
-@Connect(com.vaadin.ui.ColorPicker.class)
+@Connect(value = ColorPicker.class, loadStyle = LoadStyle.LAZY)
public class ColorPickerConnector extends AbstractColorPickerConnector {
private ColorPickerServerRpc rpc = RpcProxy.create(
import com.vaadin.client.communication.StateChangeEvent;
import com.vaadin.client.ui.AbstractComponentConnector;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.shared.ui.colorpicker.ColorPickerGradientServerRpc;
import com.vaadin.shared.ui.colorpicker.ColorPickerGradientState;
+import com.vaadin.ui.components.colorpicker.ColorPickerGradient;
/**
* A class that defines the default implementation for a color picker gradient
*
* @since 7.0.0
*/
-@Connect(com.vaadin.ui.components.colorpicker.ColorPickerGradient.class)
+@Connect(value = ColorPickerGradient.class, loadStyle = LoadStyle.LAZY)
public class ColorPickerGradientConnector extends AbstractComponentConnector
implements MouseUpHandler {
import com.vaadin.client.communication.StateChangeEvent;
import com.vaadin.client.ui.AbstractComponentConnector;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.shared.ui.colorpicker.ColorPickerGridServerRpc;
import com.vaadin.shared.ui.colorpicker.ColorPickerGridState;
+import com.vaadin.ui.components.colorpicker.ColorPickerGrid;
/**
* A class that defines the default implementation for a color picker grid
*
* @since 7.0.0
*/
-@Connect(com.vaadin.ui.components.colorpicker.ColorPickerGrid.class)
+@Connect(value = ColorPickerGrid.class, loadStyle = LoadStyle.LAZY)
public class ColorPickerGridConnector extends AbstractComponentConnector
implements ClickHandler {
import com.vaadin.client.ui.VMenuBar;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.shared.ui.Connect;
-import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.shared.ui.menubar.MenuBarConstants;
import com.vaadin.shared.ui.menubar.MenuBarState;
-@Connect(value = com.vaadin.ui.MenuBar.class, loadStyle = LoadStyle.LAZY)
+@Connect(com.vaadin.ui.MenuBar.class)
public class MenuBarConnector extends AbstractComponentConnector implements
Paintable, SimpleManagedLayout {
import com.vaadin.client.ui.AbstractComponentConnector;
import com.vaadin.client.ui.VUpload;
import com.vaadin.shared.ui.Connect;
-import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.ui.Upload;
-@Connect(value = Upload.class, loadStyle = LoadStyle.LAZY)
+@Connect(Upload.class)
public class UploadConnector extends AbstractComponentConnector implements
Paintable {
* @return the hint for the widget set generator how the client side
* implementation should be loaded to the browser
*/
- LoadStyle loadStyle() default LoadStyle.DEFERRED;
+ LoadStyle loadStyle() default LoadStyle.EAGER;
public enum LoadStyle {
/**