]> source.dussan.org Git - vaadin-framework.git/commitdiff
Renamed ComponentState to AbstractComponentState (#9032) 02/302/2
authorArtur Signell <artur@vaadin.com>
Tue, 20 Nov 2012 10:04:11 +0000 (12:04 +0200)
committerVaadin Code Review <review@vaadin.com>
Tue, 20 Nov 2012 11:54:40 +0000 (11:54 +0000)
Change-Id: Ida6e0cb7064580be36627fd735d79b82ee69356d

35 files changed:
client/src/com/vaadin/client/ApplicationConnection.java
client/src/com/vaadin/client/ComponentConnector.java
client/src/com/vaadin/client/ComponentLocator.java
client/src/com/vaadin/client/Util.java
client/src/com/vaadin/client/VCaption.java
client/src/com/vaadin/client/ui/AbstractComponentConnector.java
client/src/com/vaadin/client/ui/VFilterSelect.java
client/src/com/vaadin/client/ui/VFormLayout.java
client/src/com/vaadin/client/ui/VScrollTable.java
client/src/com/vaadin/client/ui/VTabsheet.java
client/src/com/vaadin/client/ui/layout/LayoutDependencyTree.java
server/src/com/vaadin/ui/AbstractComponent.java
shared/src/com/vaadin/shared/AbstractComponentState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ComponentState.java [deleted file]
shared/src/com/vaadin/shared/ui/AbstractEmbeddedState.java
shared/src/com/vaadin/shared/ui/AbstractLayoutState.java
shared/src/com/vaadin/shared/ui/AbstractMediaState.java
shared/src/com/vaadin/shared/ui/BrowserPopupExtensionState.java
shared/src/com/vaadin/shared/ui/ComponentStateUtil.java
shared/src/com/vaadin/shared/ui/JavaScriptComponentState.java
shared/src/com/vaadin/shared/ui/TabIndexState.java
shared/src/com/vaadin/shared/ui/button/ButtonState.java
shared/src/com/vaadin/shared/ui/label/LabelState.java
shared/src/com/vaadin/shared/ui/link/LinkState.java
shared/src/com/vaadin/shared/ui/menubar/MenuBarState.java
shared/src/com/vaadin/shared/ui/panel/PanelState.java
shared/src/com/vaadin/shared/ui/popupview/PopupViewState.java
shared/src/com/vaadin/shared/ui/splitpanel/AbstractSplitPanelState.java
shared/src/com/vaadin/shared/ui/tabsheet/TabsheetState.java
shared/src/com/vaadin/shared/ui/ui/UIState.java
uitest/src/com/vaadin/tests/minitutorials/v7b1/Addition.java
uitest/src/com/vaadin/tests/widgetset/client/DelegateState.java
uitest/src/com/vaadin/tests/widgetset/client/LabelState.java
uitest/src/com/vaadin/tests/widgetset/client/minitutorials/v7a2/ComponentInStateState.java
uitest/src/com/vaadin/tests/widgetset/client/minitutorials/v7a2/MyComponentState.java

index 9133e3dfc52af6eec6091a13d2b0c14ba3b64e1b..48815a3d8d56703e63e2b8458ec917fc1f105964 100644 (file)
@@ -84,7 +84,7 @@ import com.vaadin.client.ui.dd.VDragAndDropManager;
 import com.vaadin.client.ui.ui.UIConnector;
 import com.vaadin.client.ui.window.WindowConnector;
 import com.vaadin.shared.ApplicationConstants;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.Version;
 import com.vaadin.shared.communication.LegacyChangeVariablesInvocation;
 import com.vaadin.shared.communication.MethodInvocation;
@@ -2890,7 +2890,7 @@ public class ApplicationConnection {
      * @return true if at least one listener has been registered on server side
      *         for the event identified by eventIdentifier.
      * @deprecated as of Vaadin 7. Use
-     *             {@link ComponentState#hasEventListener(String)} instead
+     *             {@link AbstractComponentState#hasEventListener(String)} instead
      */
     @Deprecated
     public boolean hasEventListeners(ComponentConnector paintable,
@@ -2990,7 +2990,7 @@ public class ApplicationConnection {
 
     /**
      * @deprecated as of Vaadin 7. Use
-     *             {@link ComponentState#hasEventListener(String)} instead
+     *             {@link AbstractComponentState#hasEventListener(String)} instead
      */
     @Deprecated
     public boolean hasEventListeners(Widget widget, String eventIdentifier) {
index 9858ff6abde181f8459950984d459e148278ce03..ae889c1dbdb451d5dd776c921d2e5c529b6c9d96 100644 (file)
@@ -18,7 +18,7 @@ package com.vaadin.client;
 
 import com.google.gwt.dom.client.Element;
 import com.google.gwt.user.client.ui.Widget;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
 /**
  * An interface used by client-side widgets or paintable parts to receive
@@ -36,7 +36,7 @@ public interface ComponentConnector extends ServerConnector {
      * @see com.vaadin.client.VPaintable#getState()
      */
     @Override
-    public ComponentState getState();
+    public AbstractComponentState getState();
 
     /**
      * Returns the widget for this {@link ComponentConnector}
index 99f973c467f60a3df3a8a0fb497e5438bf2727b5..854c8535c4a57edad915285e8277e8068771b654 100644 (file)
@@ -34,7 +34,7 @@ import com.vaadin.client.ui.VTabsheetPanel;
 import com.vaadin.client.ui.VUI;
 import com.vaadin.client.ui.VWindow;
 import com.vaadin.client.ui.window.WindowConnector;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.Connector;
 import com.vaadin.shared.communication.SharedState;
 
@@ -694,8 +694,8 @@ public class ComponentLocator {
 
     private ServerConnector findConnectorById(ServerConnector root, String id) {
         SharedState state = root.getState();
-        if (state instanceof ComponentState
-                && id.equals(((ComponentState) state).id)) {
+        if (state instanceof AbstractComponentState
+                && id.equals(((AbstractComponentState) state).id)) {
             return root;
         }
         for (ServerConnector child : root.getChildren()) {
index d111bd3093ab5be0f43693d0751038076933a355..7548cfe42afb3e3e16aa481d7d6309f3a16b02ed 100644 (file)
@@ -45,7 +45,7 @@ import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.client.RenderInformation.FloatSize;
 import com.vaadin.client.ui.VOverlay;
 import com.vaadin.shared.ApplicationConstants;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.communication.MethodInvocation;
 import com.vaadin.shared.ui.ComponentStateUtil;
 
@@ -523,7 +523,7 @@ public class Util {
      * @param state
      * @return
      */
-    public static FloatSize parseRelativeSize(ComponentState state) {
+    public static FloatSize parseRelativeSize(AbstractComponentState state) {
         if (ComponentStateUtil.isUndefinedHeight(state)
                 && ComponentStateUtil.isUndefinedWidth(state)) {
             return null;
index aadc7b88ad5b8b1e8cb30dc4eada23297fad916f..a662ef4a7bb3ed0068db52f7f4c205deb25e4720 100644 (file)
@@ -24,7 +24,7 @@ import com.vaadin.client.ui.AbstractFieldConnector;
 import com.vaadin.client.ui.Icon;
 import com.vaadin.shared.AbstractFieldState;
 import com.vaadin.shared.ComponentConstants;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.ui.ComponentStateUtil;
 
 public class VCaption extends HTML {
@@ -393,7 +393,7 @@ public class VCaption extends HTML {
         }
     }
 
-    public static boolean isNeeded(ComponentState state) {
+    public static boolean isNeeded(AbstractComponentState state) {
         if (state.caption != null) {
             return true;
         }
index 8b6c4fb8aa46f467ef25c2980231d942d398d47f..49e879a6817359c3eefb9402bff2eccba4bd8a86 100644 (file)
@@ -41,7 +41,7 @@ import com.vaadin.client.metadata.TypeData;
 import com.vaadin.client.ui.datefield.PopupDateFieldConnector;
 import com.vaadin.client.ui.ui.UIConnector;
 import com.vaadin.shared.ComponentConstants;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.Connector;
 import com.vaadin.shared.ui.ComponentStateUtil;
 import com.vaadin.shared.ui.TabIndexState;
@@ -116,8 +116,8 @@ public abstract class AbstractComponentConnector extends AbstractConnector
     }
 
     @Override
-    public ComponentState getState() {
-        return (ComponentState) super.getState();
+    public AbstractComponentState getState() {
+        return (AbstractComponentState) super.getState();
     }
 
     @Override
@@ -267,7 +267,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector
      * </p>
      */
     protected void updateWidgetStyleNames() {
-        ComponentState state = getState();
+        AbstractComponentState state = getState();
 
         String primaryStyleName = getWidget().getStylePrimaryName();
         if (state.primaryStyleName != null) {
index 54498c432f709a48d94b1a5fef91d09549c82c79..bca68a86f345be4fa09c30a45845b4105dd42aaa 100644 (file)
@@ -68,7 +68,7 @@ import com.vaadin.client.Util;
 import com.vaadin.client.VConsole;
 import com.vaadin.client.ui.menubar.MenuBar;
 import com.vaadin.client.ui.menubar.MenuItem;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.EventId;
 import com.vaadin.shared.ui.ComponentStateUtil;
 import com.vaadin.shared.ui.combobox.FilteringMode;
@@ -598,7 +598,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
          * @param componentState
          *            shared state of the combo box
          */
-        public void updateStyleNames(UIDL uidl, ComponentState componentState) {
+        public void updateStyleNames(UIDL uidl, AbstractComponentState componentState) {
             setStyleName(VFilterSelect.this.getStylePrimaryName()
                     + "-suggestpopup");
             menu.setStyleName(VFilterSelect.this.getStylePrimaryName()
index a46a0a41c838a3e54a71ef1093a809856332e009..49c991b39c4206cc1e4b37ce42ea3750a31c4769 100644 (file)
@@ -35,7 +35,7 @@ import com.vaadin.client.Focusable;
 import com.vaadin.client.StyleConstants;
 import com.vaadin.client.VTooltip;
 import com.vaadin.shared.ComponentConstants;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.ui.ComponentStateUtil;
 import com.vaadin.shared.ui.MarginInfo;
 
@@ -65,7 +65,7 @@ public class VFormLayout extends SimplePanel {
      * @param enabled
      * @return An array of stylenames
      */
-    private String[] getStylesFromState(ComponentState state, boolean enabled) {
+    private String[] getStylesFromState(AbstractComponentState state, boolean enabled) {
         List<String> styles = new ArrayList<String>();
         if (ComponentStateUtil.hasStyles(state)) {
             for (String name : state.styles) {
@@ -188,7 +188,7 @@ public class VFormLayout extends SimplePanel {
 
         }
 
-        public void updateCaption(Widget widget, ComponentState state,
+        public void updateCaption(Widget widget, AbstractComponentState state,
                 boolean enabled) {
             final Caption c = widgetToCaption.get(widget);
             if (c != null) {
@@ -249,7 +249,7 @@ public class VFormLayout extends SimplePanel {
             setStyleName(styleName);
         }
 
-        public void updateCaption(ComponentState state, boolean enabled) {
+        public void updateCaption(AbstractComponentState state, boolean enabled) {
             // Update styles as they might have changed when the caption changed
             setStyles(getStylesFromState(state, enabled));
 
index 601c93428c75929e55d748d03918475a4477c780..9b06b711cbeadfdd056578ea8880b21da530d71c 100644 (file)
@@ -92,7 +92,7 @@ import com.vaadin.client.ui.dd.VDragAndDropManager;
 import com.vaadin.client.ui.dd.VDragEvent;
 import com.vaadin.client.ui.dd.VHasDropHandler;
 import com.vaadin.client.ui.dd.VTransferable;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.MouseEventDetails;
 import com.vaadin.shared.ui.dd.VerticalDropLocation;
 import com.vaadin.shared.ui.table.TableConstants;
@@ -1113,7 +1113,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
     }
 
     /** For internal use only. May be removed or replaced in the future. */
-    public void updateSelectionProperties(UIDL uidl, ComponentState state,
+    public void updateSelectionProperties(UIDL uidl, AbstractComponentState state,
             boolean readOnly) {
         setMultiSelectMode(uidl.hasAttribute("multiselectmode") ? uidl
                 .getIntAttribute("multiselectmode") : MULTISELECT_MODE_DEFAULT);
index d74665bb6de776f521e29459ad6fe825a02b9b0d..63aeaa2fc7b49b5e6e38b9b8a1b4df4394fa987a 100644 (file)
@@ -55,7 +55,7 @@ import com.vaadin.client.TooltipInfo;
 import com.vaadin.client.UIDL;
 import com.vaadin.client.Util;
 import com.vaadin.client.VCaption;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.EventId;
 import com.vaadin.shared.ui.ComponentStateUtil;
 import com.vaadin.shared.ui.tabsheet.TabsheetBaseConstants;
@@ -743,7 +743,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
     }
 
     /** For internal use only. May be removed or replaced in the future. */
-    public void handleStyleNames(UIDL uidl, ComponentState state) {
+    public void handleStyleNames(UIDL uidl, AbstractComponentState state) {
         // Add proper stylenames for all elements (easier to prevent unwanted
         // style inheritance)
         if (ComponentStateUtil.hasStyles(state)) {
index b94488896e4fad9faa510eef0bcb671dc929c05e..67555e83318c2a08c69c84ecac5411f9a304baca 100644 (file)
@@ -28,7 +28,7 @@ import com.vaadin.client.ServerConnector;
 import com.vaadin.client.Util;
 import com.vaadin.client.VConsole;
 import com.vaadin.client.ui.ManagedLayout;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
 public class LayoutDependencyTree {
     private class LayoutDependency {
@@ -309,7 +309,7 @@ public class LayoutDependencyTree {
             } else {
                 s += "Horizontal";
             }
-            ComponentState state = connector.getState();
+            AbstractComponentState state = connector.getState();
             s += " sizing: "
                     + getSizeDefinition(direction == VERTICAL ? state.height
                             : state.width) + "\n";
index 57032f58a89e8dcdf0832e352d4fd76c2b901d28..fc6f176e2ada2b8ac5acceb900b966add5a3d993 100644 (file)
@@ -35,7 +35,7 @@ import com.vaadin.server.Resource;
 import com.vaadin.server.Terminal;
 import com.vaadin.server.VaadinSession;
 import com.vaadin.shared.ComponentConstants;
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.ui.ComponentStateUtil;
 import com.vaadin.util.ReflectTools;
 
@@ -617,8 +617,8 @@ public abstract class AbstractComponent extends AbstractClientConnector
      * @return updated component shared state
      */
     @Override
-    protected ComponentState getState() {
-        return (ComponentState) super.getState();
+    protected AbstractComponentState getState() {
+        return (AbstractComponentState) super.getState();
     }
 
     @Override
diff --git a/shared/src/com/vaadin/shared/AbstractComponentState.java b/shared/src/com/vaadin/shared/AbstractComponentState.java
new file mode 100644 (file)
index 0000000..e1f7916
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2011 Vaadin Ltd.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.vaadin.shared;
+
+import java.util.List;
+
+import com.vaadin.shared.communication.SharedState;
+import com.vaadin.ui.AbstractComponent;
+
+/**
+ * Default shared state implementation for {@link AbstractComponent}.
+ * 
+ * State classes of components should typically extend this class.
+ * 
+ * @since 7.0
+ */
+public class AbstractComponentState extends SharedState {
+    public String height = "";
+    public String width = "";
+    public boolean readOnly = false;
+    public boolean immediate = false;
+    public String description = "";
+    // Note: for the caption, there is a difference between null and an empty
+    // string!
+    public String caption = null;
+    public List<String> styles = null;
+    public String id = null;
+    public String primaryStyleName = null;
+
+    // HTML formatted error message for the component
+    // TODO this could be an object with more information, but currently the UI
+    // only uses the message
+    public String errorMessage = null;
+}
diff --git a/shared/src/com/vaadin/shared/ComponentState.java b/shared/src/com/vaadin/shared/ComponentState.java
deleted file mode 100644 (file)
index d8b5fec..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2011 Vaadin Ltd.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- * 
- * http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
-package com.vaadin.shared;
-
-import java.util.List;
-
-import com.vaadin.shared.communication.SharedState;
-
-/**
- * Default shared state implementation for UI components.
- * 
- * State classes of concrete components should extend this class.
- * 
- * @since 7.0
- */
-public class ComponentState extends SharedState {
-    public String height = "";
-    public String width = "";
-    public boolean readOnly = false;
-    public boolean immediate = false;
-    public String description = "";
-    // Note: for the caption, there is a difference between null and an empty
-    // string!
-    public String caption = null;
-    public List<String> styles = null;
-    public String id = null;
-    public String primaryStyleName = null;
-
-    // HTML formatted error message for the component
-    // TODO this could be an object with more information, but currently the UI
-    // only uses the message
-    public String errorMessage = null;
-}
index 608152cc5414ef27455a4df85a664e22bf21f9c4..b7e689f8bc26a85a54972e6c47b829fb84d55012 100644 (file)
@@ -1,8 +1,8 @@
 package com.vaadin.shared.ui;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class AbstractEmbeddedState extends ComponentState {
+public class AbstractEmbeddedState extends AbstractComponentState {
 
     public static final String SOURCE_RESOURCE = "source";
 
index 4fc865626c4d4c839241cc6955349d94c6cdacc8..cbb02ceaa4dc8a681aaf40417533cb1f9975b9f9 100644 (file)
@@ -15,8 +15,8 @@
  */
 package com.vaadin.shared.ui;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class AbstractLayoutState extends ComponentState {
+public class AbstractLayoutState extends AbstractComponentState {
 
 }
\ No newline at end of file
index 76d4e1b00008904caa46f8e2fd232e7332bf13ea..56c1989d5b782cf473432068528f07900407b676 100644 (file)
@@ -18,10 +18,10 @@ package com.vaadin.shared.ui;
 import java.util.ArrayList;
 import java.util.List;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.communication.URLReference;
 
-public class AbstractMediaState extends ComponentState {
+public class AbstractMediaState extends AbstractComponentState {
     public boolean showControls;
 
     public String altText;
index a9ca6841d8ca3b9cada9f58db5af9f69af34414c..199de54f8fc67335d6de2ff757dda66a7ee899c7 100644 (file)
@@ -16,9 +16,9 @@
 
 package com.vaadin.shared.ui;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class BrowserPopupExtensionState extends ComponentState {
+public class BrowserPopupExtensionState extends AbstractComponentState {
 
     public String target = "_blank";
 
index 33f841fa09ea70fe545021aa49078f1112703466..8106e8af98239bf5ef6ba9de1546949d1132bdfc 100644 (file)
@@ -2,7 +2,7 @@ package com.vaadin.shared.ui;
 
 import java.util.HashSet;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.communication.SharedState;
 
 public final class ComponentStateUtil {
@@ -11,27 +11,27 @@ public final class ComponentStateUtil {
         // Util class is not instantiable
     }
 
-    public static final boolean isUndefinedWidth(ComponentState state) {
+    public static final boolean isUndefinedWidth(AbstractComponentState state) {
         return state.width == null || "".equals(state.width);
     }
 
-    public static final boolean isUndefinedHeight(ComponentState state) {
+    public static final boolean isUndefinedHeight(AbstractComponentState state) {
         return state.height == null || "".equals(state.height);
     }
 
-    public static final boolean hasDescription(ComponentState state) {
+    public static final boolean hasDescription(AbstractComponentState state) {
         return state.description != null && !"".equals(state.description);
     }
 
-    public static final boolean hasStyles(ComponentState state) {
+    public static final boolean hasStyles(AbstractComponentState state) {
         return state.styles != null && !state.styles.isEmpty();
     }
 
-    public static final boolean isRelativeWidth(ComponentState state) {
+    public static final boolean isRelativeWidth(AbstractComponentState state) {
         return state.width != null && state.width.endsWith("%");
     }
 
-    public static final boolean isRelativeHeight(ComponentState state) {
+    public static final boolean isRelativeHeight(AbstractComponentState state) {
         return state.height != null && state.height.endsWith("%");
     }
 
index 7a2eedd95dfe41ae4668599732b31878c402d5dd..1252b7f235f138d6c0f180e5460cd2113ae239dc 100644 (file)
@@ -21,10 +21,10 @@ import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.JavaScriptConnectorState;
 
-public class JavaScriptComponentState extends ComponentState implements
+public class JavaScriptComponentState extends AbstractComponentState implements
         JavaScriptConnectorState {
 
     private Set<String> callbackNames = new HashSet<String>();
index a9cb56e5ed6c962eda003a428f5281e842282709..bb446829bef7a573c46c93735841c5e99b0d71eb 100644 (file)
@@ -15,7 +15,7 @@
  */
 package com.vaadin.shared.ui;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
 /**
  * Interface implemented by state classes that support tab indexes.
@@ -24,7 +24,7 @@ import com.vaadin.shared.ComponentState;
  * @since 7.0.0
  * 
  */
-public class TabIndexState extends ComponentState {
+public class TabIndexState extends AbstractComponentState {
 
     /**
      * The <i>tabulator index</i> of the field.
index e7272379bb404fb9b3acf63b9698a196d50bd286..48feb596dc481a4abc99e93f19ae02aecc944f05 100644 (file)
 
 package com.vaadin.shared.ui.button;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.ui.TabIndexState;
 
 /**
  * Shared state for {@link com.vaadin.ui.Button} and
  * {@link com.vaadin.ui.NativeButton}.
  * 
- * @see ComponentState
+ * @see AbstractComponentState
  * 
  * @since 7.0
  */
index 2cccc310aaa661ec3372898177952db651dd11de..72cdcaad62c92e014a16ffdb13c86419e0059f7b 100644 (file)
@@ -15,9 +15,9 @@
  */
 package com.vaadin.shared.ui.label;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class LabelState extends ComponentState {
+public class LabelState extends AbstractComponentState {
     {
         primaryStyleName = "v-label";
     }
index 96b4600000f8dca9017b2d4d43435d6dc7397d2e..3e4436f5e3a886b9a11af98d2a803ab9576dd348 100644 (file)
@@ -1,8 +1,8 @@
 package com.vaadin.shared.ui.link;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class LinkState extends ComponentState {
+public class LinkState extends AbstractComponentState {
     {
         primaryStyleName = "v-link";
     }
index cf1ef99c0641d29e25d133fad5e156d0fcd5a5b6..192dfa2e0ff024c80b6cdc04482c11510a6b227a 100644 (file)
@@ -1,8 +1,8 @@
 package com.vaadin.shared.ui.menubar;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class MenuBarState extends ComponentState {
+public class MenuBarState extends AbstractComponentState {
     {
         primaryStyleName = "v-menubar";
     }
index 9d502df8fe4c1121758f7feee558d7e3cc975172..433bef72a571bb47cf7b953fb6f0974e5e0b3028 100644 (file)
@@ -15,9 +15,9 @@
  */
 package com.vaadin.shared.ui.panel;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class PanelState extends ComponentState {
+public class PanelState extends AbstractComponentState {
     {
         primaryStyleName = "v-panel";
     }
index 0f83d0fcd499a9aba6daf0c79ca8baccab2280ef..2af516daacc34b436df4b7beca3dd6cbd3128cf4 100644 (file)
@@ -1,8 +1,8 @@
 package com.vaadin.shared.ui.popupview;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class PopupViewState extends ComponentState {
+public class PopupViewState extends AbstractComponentState {
 
     public String html;
     public boolean hideOnMouseOut;
index 8bddffdfd6aa3017f1e0872e685f15fcabd52106..fb1b4c126270a113446c6b2ea036e47ec5b972c7 100644 (file)
@@ -17,10 +17,10 @@ package com.vaadin.shared.ui.splitpanel;
 
 import java.io.Serializable;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.Connector;
 
-public class AbstractSplitPanelState extends ComponentState {
+public class AbstractSplitPanelState extends AbstractComponentState {
     public Connector firstChild = null;
     public Connector secondChild = null;
     public SplitterState splitterState = new SplitterState();
index a36acca9dc008b4af13bb0b7b313990aff2da16a..c89a20bb22c4e1c6d3933aaccac60367b5e5195a 100644 (file)
@@ -1,8 +1,8 @@
 package com.vaadin.shared.ui.tabsheet;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class TabsheetState extends ComponentState {
+public class TabsheetState extends AbstractComponentState {
     {
         primaryStyleName = "v-tabsheet";
     }
index 028218409f693b4b31f703b8060f9362de672185..59eff36435a001fb5349cf27119b566afbc4708a 100644 (file)
@@ -15,9 +15,9 @@
  */
 package com.vaadin.shared.ui.ui;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class UIState extends ComponentState {
+public class UIState extends AbstractComponentState {
     {
         primaryStyleName = "v-ui";
     }
index a91df495086eee56ebccdefbf4c3209b34c803c6..f22e56733cbb198490a91bbe7c994f13663e773d 100644 (file)
@@ -16,7 +16,7 @@
 
 package com.vaadin.tests.minitutorials.v7b1;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.ui.AbstractComponent;
 
 public class Addition extends AbstractComponent {
@@ -63,6 +63,6 @@ public class Addition extends AbstractComponent {
     }
 }
 
-class AddResultState extends ComponentState {
+class AddResultState extends AbstractComponentState {
     public int sum;
 }
index e9ac8a1e6102c714e4d08c84cc02e081621d9358..1af0d04bf68ae797ea8864bce59097b54686b136 100644 (file)
 
 package com.vaadin.tests.widgetset.client;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.annotations.DelegateToWidget;
 
-public class DelegateState extends ComponentState {
+public class DelegateState extends AbstractComponentState {
     @DelegateToWidget
     public String value1;
 
index 91a269e33fe7b9cf18d1ac7981f4d8f47323a452..9bc13973394cf94b3fb1bfd82a11416dbb176d6b 100644 (file)
@@ -16,7 +16,7 @@
 
 package com.vaadin.tests.widgetset.client;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
 /**
  * State class with the same simple name as
@@ -26,7 +26,7 @@ import com.vaadin.shared.ComponentState;
  * @version @VERSION@
  * @since 7.0.0
  */
-public class LabelState extends ComponentState {
+public class LabelState extends AbstractComponentState {
 
     private String text;
 
index b64d0f0ad573709169962d744b9c1f15a5a3eaeb..58ec6fc892b91bf16502402eae89538564932bb2 100644 (file)
@@ -16,9 +16,9 @@
 
 package com.vaadin.tests.widgetset.client.minitutorials.v7a2;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 import com.vaadin.shared.Connector;
 
-public class ComponentInStateState extends ComponentState {
+public class ComponentInStateState extends AbstractComponentState {
     public Connector otherComponent;
 }
index 948f98e7569bae657532d849551fdbcad80f5fa4..a7a6b987fb7b7978caabbaa738ce4ccea3666158 100644 (file)
@@ -1,8 +1,8 @@
 package com.vaadin.tests.widgetset.client.minitutorials.v7a2;
 
-import com.vaadin.shared.ComponentState;
+import com.vaadin.shared.AbstractComponentState;
 
-public class MyComponentState extends ComponentState {
+public class MyComponentState extends AbstractComponentState {
 
     public String text;