]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added primary stylename to all component states #9724
authorJohn Ahlroos <john@vaadin.com>
Thu, 27 Sep 2012 08:08:06 +0000 (11:08 +0300)
committerJohn Ahlroos <john@vaadin.com>
Thu, 27 Sep 2012 08:08:06 +0000 (11:08 +0300)
57 files changed:
client/src/com/vaadin/client/ui/browserframe/VBrowserFrame.java
client/src/com/vaadin/client/ui/combobox/ComboBoxConnector.java
client/src/com/vaadin/client/ui/combobox/VFilterSelect.java
client/src/com/vaadin/client/ui/datefield/InlineDateFieldConnector.java
client/src/com/vaadin/client/ui/datefield/PopupDateFieldConnector.java
client/src/com/vaadin/client/ui/datefield/TextualDateConnector.java
client/src/com/vaadin/client/ui/embedded/EmbeddedConnector.java
client/src/com/vaadin/client/ui/flash/VFlash.java
client/src/com/vaadin/client/ui/image/VImage.java
client/src/com/vaadin/client/ui/link/LinkConnector.java
client/src/com/vaadin/client/ui/menubar/MenuBarConnector.java
client/src/com/vaadin/client/ui/optiongroup/OptionGroupConnector.java
client/src/com/vaadin/client/ui/orderedlayout/HorizontalLayoutConnector.java
client/src/com/vaadin/client/ui/orderedlayout/VHorizontalLayout.java
client/src/com/vaadin/client/ui/orderedlayout/VVerticalLayout.java
client/src/com/vaadin/client/ui/orderedlayout/VerticalLayoutConnector.java
client/src/com/vaadin/client/ui/splitpanel/HorizontalSplitPanelConnector.java
client/src/com/vaadin/client/ui/splitpanel/VerticalSplitPanelConnector.java
client/src/com/vaadin/client/ui/tabsheet/TabsheetConnector.java
client/src/com/vaadin/client/ui/tree/TreeConnector.java
client/src/com/vaadin/client/ui/treetable/TreeTableConnector.java
client/src/com/vaadin/client/ui/twincolselect/TwinColSelectConnector.java
client/src/com/vaadin/client/ui/twincolselect/VTwinColSelect.java
client/src/com/vaadin/client/ui/video/VVideo.java
shared/src/com/vaadin/shared/ui/absolutelayout/AbsoluteLayoutState.java
shared/src/com/vaadin/shared/ui/browserframe/BrowserFrameState.java
shared/src/com/vaadin/shared/ui/button/ButtonState.java
shared/src/com/vaadin/shared/ui/checkbox/CheckBoxState.java
shared/src/com/vaadin/shared/ui/combobox/ComboBoxState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/csslayout/CssLayoutState.java
shared/src/com/vaadin/shared/ui/customlayout/CustomLayoutState.java
shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/datefield/PopupDateFieldState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/embedded/EmbeddedState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/flash/FlashState.java
shared/src/com/vaadin/shared/ui/form/FormState.java
shared/src/com/vaadin/shared/ui/gridlayout/GridLayoutState.java
shared/src/com/vaadin/shared/ui/image/ImageState.java
shared/src/com/vaadin/shared/ui/label/LabelState.java
shared/src/com/vaadin/shared/ui/link/LinkState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/menubar/MenuBarState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/orderedlayout/HorizontalLayoutState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/orderedlayout/VerticalLayoutState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/panel/PanelState.java
shared/src/com/vaadin/shared/ui/slider/SliderState.java
shared/src/com/vaadin/shared/ui/splitpanel/AbstractSplitPanelState.java
shared/src/com/vaadin/shared/ui/splitpanel/HorizontalSplitPanelState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/splitpanel/VerticalSplitPanelState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/tabsheet/TabsheetState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/textarea/TextAreaState.java
shared/src/com/vaadin/shared/ui/textfield/AbstractTextFieldState.java
shared/src/com/vaadin/shared/ui/tree/TreeState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/treetable/TreeTableState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectState.java [new file with mode: 0644]
shared/src/com/vaadin/shared/ui/video/VideoState.java

index da2c981a8dc5ff679b97a326a2e6b3acfac8f244..aac8151d964ae46bd94a2bfae27ded46469fff7e 100644 (file)
@@ -11,11 +11,13 @@ public class VBrowserFrame extends Widget {
     protected Element altElement;
     protected String altText;
 
+    public static final String CLASSNAME = "v-browserframe";
+
     public VBrowserFrame() {
         Element root = Document.get().createDivElement();
         setElement(root);
 
-        setStylePrimaryName("v-browserframe");
+        setStyleName(CLASSNAME);
 
         createAltTextElement();
     }
index bcab8e71fcf58657664cc866300d884b9fcb5726..697ade43e799256c063780a84381f4e6446ea245 100644 (file)
@@ -27,6 +27,7 @@ import com.vaadin.client.ui.combobox.VFilterSelect.FilterSelectSuggestion;
 import com.vaadin.client.ui.menubar.MenuItem;
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.combobox.ComboBoxConstants;
+import com.vaadin.shared.ui.combobox.ComboBoxState;
 import com.vaadin.shared.ui.combobox.FilteringMode;
 import com.vaadin.ui.ComboBox;
 
@@ -245,6 +246,11 @@ public class ComboBoxConnector extends AbstractFieldConnector implements
         return (VFilterSelect) super.getWidget();
     }
 
+    @Override
+    public ComboBoxState getState() {
+        return (ComboBoxState) super.getState();
+    }
+
     @Override
     public void layout() {
         VFilterSelect widget = getWidget();
index 203f9821807f56ffac638424939d41270bec3b9c..3e8cf396d7fab6c2d2448b0136e3020952f61e84 100644 (file)
@@ -835,7 +835,7 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
     @Deprecated
     public static final FilteringMode FILTERINGMODE_CONTAINS = FilteringMode.CONTAINS;
 
-    private static final String CLASSNAME = "v-filterselect";
+    public static final String CLASSNAME = "v-filterselect";
     private static final String STYLE_NO_INPUT = "no-input";
 
     protected int pageLength = 10;
index 2f2dd380d6d6b242d793aa2955127d0d3a1cf565..1800125402f6e4b84b792181d322e289e189d991 100644 (file)
@@ -23,6 +23,7 @@ import com.vaadin.client.UIDL;
 import com.vaadin.client.ui.datefield.VCalendarPanel.FocusChangeListener;
 import com.vaadin.client.ui.datefield.VCalendarPanel.TimeChangeListener;
 import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.datefield.InlineDateFieldState;
 import com.vaadin.shared.ui.datefield.Resolution;
 import com.vaadin.ui.InlineDateField;
 
@@ -111,4 +112,9 @@ public class InlineDateFieldConnector extends AbstractDateFieldConnector {
     public VDateFieldCalendar getWidget() {
         return (VDateFieldCalendar) super.getWidget();
     }
+
+    @Override
+    public InlineDateFieldState getState() {
+        return (InlineDateFieldState) super.getState();
+    }
 }
index f5be276575936e9be95d9e3172a899a147a70d8b..fbc7bcc88c5258507019a186e185369014646d43 100644 (file)
@@ -24,6 +24,7 @@ import com.vaadin.client.UIDL;
 import com.vaadin.client.ui.datefield.VCalendarPanel.FocusChangeListener;
 import com.vaadin.client.ui.datefield.VCalendarPanel.TimeChangeListener;
 import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.datefield.PopupDateFieldState;
 import com.vaadin.shared.ui.datefield.Resolution;
 import com.vaadin.ui.DateField;
 
@@ -122,6 +123,11 @@ public class PopupDateFieldConnector extends TextualDateConnector {
         return (VPopupCalendar) super.getWidget();
     }
 
+    @Override
+    public PopupDateFieldState getState() {
+        return (PopupDateFieldState) super.getState();
+    }
+
     @Override
     protected void setWidgetStyleName(String styleName, boolean add) {
         super.setWidgetStyleName(styleName, add);
index ef4b53f9f4d2ca14667d3d9832d7279c57d9e570..ececdb677537b7edfcc8e9b578c9cf3c4974e30d 100644 (file)
@@ -19,6 +19,7 @@ package com.vaadin.client.ui.datefield;
 import com.vaadin.client.ApplicationConnection;
 import com.vaadin.client.UIDL;
 import com.vaadin.shared.ui.datefield.Resolution;
+import com.vaadin.shared.ui.datefield.TextualDateFieldState;
 
 public class TextualDateConnector extends AbstractDateFieldConnector {
 
@@ -59,4 +60,9 @@ public class TextualDateConnector extends AbstractDateFieldConnector {
     public VTextualDate getWidget() {
         return (VTextualDate) super.getWidget();
     }
+
+    @Override
+    public TextualDateFieldState getState() {
+        return (TextualDateFieldState) super.getState();
+    }
 }
index 2a1b4dcc447b0d1d7d2b2166c9fbcb5dcec9377a..1b56a56fe86dee016d27ce7a0cfd315ccba33b5a 100644 (file)
@@ -39,6 +39,7 @@ import com.vaadin.shared.MouseEventDetails;
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.embedded.EmbeddedConstants;
 import com.vaadin.shared.ui.embedded.EmbeddedServerRpc;
+import com.vaadin.shared.ui.embedded.EmbeddedState;
 import com.vaadin.ui.Embedded;
 
 @Connect(Embedded.class)
@@ -221,6 +222,11 @@ public class EmbeddedConnector extends AbstractComponentConnector implements
         return (VEmbedded) super.getWidget();
     }
 
+    @Override
+    public EmbeddedState getState() {
+        return (EmbeddedState) super.getState();
+    }
+
     protected final ClickEventHandler clickEventHandler = new ClickEventHandler(
             this) {
 
index 1f94f21056f75ee8894492b038641783659e9d0b..0f91ff88e7b8d9c1f39c34f44399abee37dea91a 100644 (file)
@@ -8,6 +8,8 @@ import com.vaadin.client.Util;
 
 public class VFlash extends HTML {
 
+    public static final String CLASSNAME = "v-flash";
+
     protected String source;
     protected String altText;
     protected String classId;
@@ -21,7 +23,7 @@ public class VFlash extends HTML {
     protected String height;
 
     public VFlash() {
-        setStylePrimaryName("v-flash");
+        setStyleName(CLASSNAME);
     }
 
     public void setSource(String source) {
index 51603a2e5f4538dbee86c9c634b4b093da7a2602..b05357b54714d725cbb46bc3297537b08c73a54e 100644 (file)
@@ -4,7 +4,9 @@ import com.google.gwt.user.client.ui.Image;
 
 public class VImage extends Image {
 
+    public static final String CLASSNAME = "v-image";
+
     public VImage() {
-        setStylePrimaryName("v-image");
+        setStylePrimaryName(CLASSNAME);
     }
 }
index d7e5f0b25fe93fe1a0a89675d6b6a013530647db..f97085576963ea28c831accdc8e640e37b6eddc7 100644 (file)
@@ -27,6 +27,7 @@ import com.vaadin.client.ui.Icon;
 import com.vaadin.shared.ui.BorderStyle;
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.link.LinkConstants;
+import com.vaadin.shared.ui.link.LinkState;
 import com.vaadin.ui.Link;
 
 @Connect(Link.class)
@@ -48,6 +49,11 @@ public class LinkConnector extends AbstractComponentConnector implements
                 });
     }
 
+    @Override
+    public LinkState getState() {
+        return (LinkState) super.getState();
+    }
+
     @Override
     public boolean delegateCaptionHandling() {
         return false;
index fcd1a3bdacdea2c2e6c11bace4094b1876ef22b5..29030fbd7d9bf6a1af1b5dbf9678f9e4f1b0f5a5 100644 (file)
@@ -33,6 +33,7 @@ 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)
 public class MenuBarConnector extends AbstractComponentConnector implements
@@ -177,6 +178,11 @@ public class MenuBarConnector extends AbstractComponentConnector implements
         return (VMenuBar) super.getWidget();
     }
 
+    @Override
+    public MenuBarState getState() {
+        return (MenuBarState) super.getState();
+    }
+
     @Override
     public void layout() {
         getWidget().iLayout();
index b6581a8c02dd610109d0bd948ecc28d3d3849667..0c3c06a27054346ac967a74f63819000bdcde6d9 100644 (file)
@@ -26,6 +26,7 @@ import com.vaadin.client.UIDL;
 import com.vaadin.shared.EventId;
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.optiongroup.OptionGroupConstants;
+import com.vaadin.shared.ui.optiongroup.OptionGroupState;
 import com.vaadin.ui.OptionGroup;
 
 @Connect(OptionGroup.class)
@@ -77,4 +78,9 @@ public class OptionGroupConnector extends OptionGroupBaseConnector {
     public VOptionGroup getWidget() {
         return (VOptionGroup) super.getWidget();
     }
+
+    @Override
+    public OptionGroupState getState() {
+        return (OptionGroupState) super.getState();
+    }
 }
index aa33e99f45ab01ebf5b52efd218d5fda8773c900..e6829563f923d601b3c27809085ad02a9bdc0798 100644 (file)
@@ -17,6 +17,7 @@ package com.vaadin.client.ui.orderedlayout;
 
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.orderedlayout.HorizontalLayoutState;
 import com.vaadin.ui.HorizontalLayout;
 
 /**
@@ -38,4 +39,9 @@ public class HorizontalLayoutConnector extends AbstractOrderedLayoutConnector {
         return (VHorizontalLayout) super.getWidget();
     }
 
+    @Override
+    public HorizontalLayoutState getState() {
+        return (HorizontalLayoutState) super.getState();
+    }
+
 }
index f80db5113f00d05b2cb818a2e513f3ea496ebed2..7f8ba2be8073aad37b0cd550786e0857705b5052 100644 (file)
@@ -20,7 +20,7 @@ package com.vaadin.client.ui.orderedlayout;
  */
 public class VHorizontalLayout extends VOrderedLayout {
 
-    private static final String CLASSNAME = "v-horizontallayout";
+    public static final String CLASSNAME = "v-horizontallayout";
 
     /**
      * Default constructor
index 17de447b9a1a80e3d71c4080a631f18b3a850983..1ebf47efdd9d8b0b08bc43bbb7842ea510f85374 100644 (file)
@@ -20,7 +20,7 @@ package com.vaadin.client.ui.orderedlayout;
  */
 public class VVerticalLayout extends VOrderedLayout {
 
-    private static final String CLASSNAME = "v-verticallayout";
+    public static final String CLASSNAME = "v-verticallayout";
 
     /**
      * Default constructor
index 13e9b3ecf786c96d52b7ce3e973e3413a68d08ce..d073e78c9cc816afbdc9605f1aefc69ab6ea6dcc 100644 (file)
@@ -17,6 +17,7 @@ package com.vaadin.client.ui.orderedlayout;
 
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.orderedlayout.VerticalLayoutState;
 import com.vaadin.ui.VerticalLayout;
 
 /**
@@ -38,4 +39,8 @@ public class VerticalLayoutConnector extends AbstractOrderedLayoutConnector {
         return (VVerticalLayout) super.getWidget();
     }
 
+    @Override
+    public VerticalLayoutState getState() {
+        return (VerticalLayoutState) super.getState();
+    }
 }
index c07bb5928922ded12834afb9c53fd53fa3e6def1..848e9068fe2e6f1cddfd34c644c290058ef58a61 100644 (file)
@@ -17,6 +17,7 @@ package com.vaadin.client.ui.splitpanel;
 
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.splitpanel.HorizontalSplitPanelState;
 import com.vaadin.ui.HorizontalSplitPanel;
 
 @Connect(value = HorizontalSplitPanel.class, loadStyle = LoadStyle.EAGER)
@@ -27,4 +28,9 @@ public class HorizontalSplitPanelConnector extends AbstractSplitPanelConnector {
         return (VSplitPanelHorizontal) super.getWidget();
     }
 
+    @Override
+    public HorizontalSplitPanelState getState() {
+        return (HorizontalSplitPanelState) super.getState();
+    }
+
 }
index 7a4c4cbb930f78e6af7d394630baddcf15601b87..2a57be75230ead80df0032cdbf4aae9296976a61 100644 (file)
@@ -17,6 +17,7 @@ package com.vaadin.client.ui.splitpanel;
 
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.splitpanel.VerticalSplitPanelState;
 import com.vaadin.ui.VerticalSplitPanel;
 
 @Connect(value = VerticalSplitPanel.class, loadStyle = LoadStyle.EAGER)
@@ -27,4 +28,9 @@ public class VerticalSplitPanelConnector extends AbstractSplitPanelConnector {
         return (VSplitPanelVertical) super.getWidget();
     }
 
+    @Override
+    public VerticalSplitPanelState getState() {
+        return (VerticalSplitPanelState) super.getState();
+    }
+
 }
index 9c30d1037d04fa78bc50ade43a06ac8126bbddb8..aff5af2a9598d21aedb5fd634f4896503455e217 100644 (file)
@@ -25,6 +25,7 @@ import com.vaadin.client.Util;
 import com.vaadin.client.ui.SimpleManagedLayout;
 import com.vaadin.client.ui.layout.MayScrollChildren;
 import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.tabsheet.TabsheetState;
 import com.vaadin.ui.TabSheet;
 
 @Connect(TabSheet.class)
@@ -81,6 +82,11 @@ public class TabsheetConnector extends TabsheetBaseConnector implements
         return (VTabsheet) super.getWidget();
     }
 
+    @Override
+    public TabsheetState getState() {
+        return (TabsheetState) super.getState();
+    }
+
     @Override
     public void updateCaption(ComponentConnector component) {
         /* Tabsheet does not render its children's captions */
index 10a3c0fb9537262e3119723c2a53d206ae3695da..b7491f8d92a335cef52e7019939c501932b25749 100644 (file)
@@ -28,10 +28,10 @@ import com.vaadin.client.UIDL;
 import com.vaadin.client.Util;
 import com.vaadin.client.ui.AbstractComponentConnector;
 import com.vaadin.client.ui.tree.VTree.TreeNode;
-import com.vaadin.shared.AbstractFieldState;
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.MultiSelectMode;
 import com.vaadin.shared.ui.tree.TreeConstants;
+import com.vaadin.shared.ui.tree.TreeState;
 import com.vaadin.ui.Tree;
 
 @Connect(Tree.class)
@@ -262,8 +262,8 @@ public class TreeConnector extends AbstractComponentConnector implements
     }
 
     @Override
-    public AbstractFieldState getState() {
-        return (AbstractFieldState) super.getState();
+    public TreeState getState() {
+        return (TreeState) super.getState();
     }
 
     @Override
index 5bf1beaf16f5722770721fe8ae03f9886eb8308e..4539fbd12a246b941bcebfdc254afd388a74c8ad 100644 (file)
@@ -23,6 +23,7 @@ import com.vaadin.client.ui.table.VScrollTable.VScrollTableBody.VScrollTableRow;
 import com.vaadin.client.ui.treetable.VTreeTable.PendingNavigationEvent;
 import com.vaadin.shared.ui.Connect;
 import com.vaadin.shared.ui.treetable.TreeTableConstants;
+import com.vaadin.shared.ui.treetable.TreeTableState;
 import com.vaadin.ui.TreeTable;
 
 @Connect(TreeTable.class)
@@ -105,4 +106,9 @@ public class TreeTableConnector extends TableConnector {
     public VTreeTable getWidget() {
         return (VTreeTable) super.getWidget();
     }
+
+    @Override
+    public TreeTableState getState() {
+        return (TreeTableState) super.getState();
+    }
 }
index 745de9fe6cab772d955414860e51061b79f02233..f9767bb727da387ed6e087742c8161114d087bf3 100644 (file)
@@ -21,6 +21,7 @@ import com.vaadin.client.DirectionalManagedLayout;
 import com.vaadin.client.UIDL;
 import com.vaadin.client.ui.optiongroup.OptionGroupBaseConnector;
 import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.twincolselect.TwinColSelectState;
 import com.vaadin.ui.TwinColSelect;
 
 @Connect(TwinColSelect.class)
@@ -57,6 +58,11 @@ public class TwinColSelectConnector extends OptionGroupBaseConnector implements
         return (VTwinColSelect) super.getWidget();
     }
 
+    @Override
+    public TwinColSelectState getState() {
+        return (TwinColSelectState) super.getState();
+    }
+
     @Override
     public void layoutVertically() {
         if (isUndefinedHeight()) {
index cd985876df705f2e00e4f44b5c5a1d521eab5b7d..494db81e40d13cfa4721f7ba75f188f18f6c0560 100644 (file)
@@ -48,7 +48,7 @@ import com.vaadin.shared.ui.twincolselect.TwinColSelectConstants;
 public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
         MouseDownHandler, DoubleClickHandler, SubPartAware {
 
-    private static final String CLASSNAME = "v-select-twincol";
+    public static final String CLASSNAME = "v-select-twincol";
 
     private static final int VISIBLE_COUNT = 10;
 
index c1f5f1b353a0a61f16eecdf1935a24e4bae5a6c1..2f9fbe44be678ba59af75323635c71ad0ba2d5b8 100644 (file)
@@ -25,7 +25,7 @@ import com.vaadin.client.ui.VMediaBase;
 
 public class VVideo extends VMediaBase {
 
-    private static String CLASSNAME = "v-video";
+    public static String CLASSNAME = "v-video";
 
     private VideoElement video;
 
index 283e827e6e300ec9f06cbd2d607e724c37d9906c..c242cdb11b81dcec221796707bfa275bd475e45d 100644 (file)
@@ -18,9 +18,14 @@ package com.vaadin.shared.ui.absolutelayout;
 import java.util.HashMap;
 import java.util.Map;
 
+import com.vaadin.client.ui.absolutelayout.VAbsoluteLayout;
 import com.vaadin.shared.ui.AbstractLayoutState;
 
 public class AbsoluteLayoutState extends AbstractLayoutState {
+    {
+        primaryStyleName = VAbsoluteLayout.CLASSNAME;
+    }
+
     // Maps each component to a position
     public Map<String, String> connectorToCssPosition = new HashMap<String, String>();
 }
\ No newline at end of file
index 1c364203721a346d4786421bb693eadd13fe1bae..3325f067891ae427fc1299dd3f22fb8c15c7a219 100644 (file)
@@ -1,7 +1,10 @@
 package com.vaadin.shared.ui.browserframe;
 
+import com.vaadin.client.ui.browserframe.VBrowserFrame;
 import com.vaadin.shared.ui.AbstractEmbeddedState;
 
 public class BrowserFrameState extends AbstractEmbeddedState {
-
+    {
+        primaryStyleName = VBrowserFrame.CLASSNAME;
+    }
 }
index c144a8124fdab33d1b4af521f12e826fcf3cbd5a..659ec747aaf5e55bd388a6bbe28b0d258aaad503 100644 (file)
@@ -16,6 +16,7 @@
 
 package com.vaadin.shared.ui.button;
 
+import com.vaadin.client.ui.button.VButton;
 import com.vaadin.shared.ComponentState;
 import com.vaadin.shared.ui.TabIndexState;
 
@@ -28,6 +29,9 @@ import com.vaadin.shared.ui.TabIndexState;
  * @since 7.0
  */
 public class ButtonState extends TabIndexState {
+    {
+        primaryStyleName = VButton.CLASSNAME;
+    }
     public boolean disableOnClick = false;
     public int clickShortcutKeyCode = 0;
     /**
index b89270bee240368e0aa0567d968028a7fd7dbb26..1892310ae1e9fac57fa6d0d79d673172173afd4a 100644 (file)
  */
 package com.vaadin.shared.ui.checkbox;
 
+import com.vaadin.client.ui.checkbox.VCheckBox;
 import com.vaadin.shared.AbstractFieldState;
 
 public class CheckBoxState extends AbstractFieldState {
-    public boolean checked = false;
+    {
+        primaryStyleName = VCheckBox.CLASSNAME;
+    }
 
+    public boolean checked = false;
 }
\ No newline at end of file
diff --git a/shared/src/com/vaadin/shared/ui/combobox/ComboBoxState.java b/shared/src/com/vaadin/shared/ui/combobox/ComboBoxState.java
new file mode 100644 (file)
index 0000000..da8ec9c
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.combobox;
+
+import com.vaadin.client.ui.combobox.VFilterSelect;
+import com.vaadin.shared.AbstractFieldState;
+
+public class ComboBoxState extends AbstractFieldState {
+    {
+        primaryStyleName = VFilterSelect.CLASSNAME;
+    }
+}
index 2fbc42ca0f979fec31d019aa8dfb989a94e6b7a8..a4b595335bac95e8f5af22894f144771ffe470c5 100644 (file)
@@ -18,9 +18,13 @@ package com.vaadin.shared.ui.csslayout;
 import java.util.HashMap;
 import java.util.Map;
 
+import com.vaadin.client.ui.csslayout.VCssLayout;
 import com.vaadin.shared.Connector;
 import com.vaadin.shared.ui.AbstractLayoutState;
 
 public class CssLayoutState extends AbstractLayoutState {
+    {
+        primaryStyleName = VCssLayout.CLASSNAME;
+    }
     public Map<Connector, String> childCss = new HashMap<Connector, String>();
 }
\ No newline at end of file
index e77ea5c06847afd956bbc62abc9e5da36b294bfd..4d95cd3c681d7458652fc88d690630037b8197ab 100644 (file)
@@ -18,10 +18,14 @@ package com.vaadin.shared.ui.customlayout;
 import java.util.HashMap;
 import java.util.Map;
 
+import com.vaadin.client.ui.customlayout.VCustomLayout;
 import com.vaadin.shared.Connector;
 import com.vaadin.shared.ui.AbstractLayoutState;
 
 public class CustomLayoutState extends AbstractLayoutState {
+    {
+        primaryStyleName = VCustomLayout.CLASSNAME;
+    }
     public Map<Connector, String> childLocations = new HashMap<Connector, String>();
     public String templateContents;
     public String templateName;
diff --git a/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java b/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java
new file mode 100644 (file)
index 0000000..2575e81
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.datefield;
+
+import com.vaadin.client.ui.datefield.VDateFieldCalendar;
+import com.vaadin.shared.AbstractFieldState;
+
+public class InlineDateFieldState extends AbstractFieldState {
+    {
+        primaryStyleName = VDateFieldCalendar.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/datefield/PopupDateFieldState.java b/shared/src/com/vaadin/shared/ui/datefield/PopupDateFieldState.java
new file mode 100644 (file)
index 0000000..5071b8c
--- /dev/null
@@ -0,0 +1,9 @@
+package com.vaadin.shared.ui.datefield;
+
+import com.vaadin.client.ui.datefield.VPopupCalendar;
+
+public class PopupDateFieldState extends TextualDateFieldState {
+    {
+        primaryStyleName = VPopupCalendar.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java b/shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java
new file mode 100644 (file)
index 0000000..e7a8251
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.datefield;
+
+import com.vaadin.client.ui.datefield.VTextualDate;
+import com.vaadin.shared.AbstractFieldState;
+
+public class TextualDateFieldState extends AbstractFieldState {
+    {
+        primaryStyleName = VTextualDate.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/embedded/EmbeddedState.java b/shared/src/com/vaadin/shared/ui/embedded/EmbeddedState.java
new file mode 100644 (file)
index 0000000..cdf0621
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.embedded;
+
+import com.vaadin.client.ui.embedded.VEmbedded;
+import com.vaadin.shared.ui.AbstractEmbeddedState;
+
+public class EmbeddedState extends AbstractEmbeddedState {
+    {
+        primaryStyleName = VEmbedded.CLASSNAME;
+    }
+}
index 50f0d63733e0a7c3b5d4e15c697793f929f380f5..f9886cf73790f9b994a7a27f263cb6766742b4aa 100644 (file)
@@ -2,9 +2,13 @@ package com.vaadin.shared.ui.flash;
 
 import java.util.Map;
 
+import com.vaadin.client.ui.flash.VFlash;
 import com.vaadin.shared.ui.AbstractEmbeddedState;
 
 public class FlashState extends AbstractEmbeddedState {
+    {
+        primaryStyleName = VFlash.CLASSNAME;
+    }
 
     public String classId;
 
index f0e79ad38f78d5a8a12cf7b65acf5450e9b93038..bae8899c130dcaf9a0c05eafd8871f1525b8672d 100644 (file)
  */
 package com.vaadin.shared.ui.form;
 
+import com.vaadin.client.ui.form.VForm;
 import com.vaadin.shared.AbstractFieldState;
 import com.vaadin.shared.Connector;
 
 public class FormState extends AbstractFieldState {
+    {
+        primaryStyleName = VForm.CLASSNAME;
+    }
     public Connector layout;
     public Connector footer;
 }
\ No newline at end of file
index ae54dc3765cb2ea83fe21a2a58716dbce0cd503a..9d7cd8a615a89fa96be358ee15c4f0ff513d7b15 100644 (file)
  */
 package com.vaadin.shared.ui.gridlayout;
 
+import com.vaadin.client.ui.gridlayout.VGridLayout;
 import com.vaadin.shared.ui.AbstractLayoutState;
 
 public class GridLayoutState extends AbstractLayoutState {
+    {
+        primaryStyleName = VGridLayout.CLASSNAME;
+    }
     public boolean spacing = false;
     public int rows = 0;
     public int columns = 0;
index 4296c768479b3a47972ad484c7deb5d4171b6c37..1ecf9b25d807e5d9dc3b96dcc331cbb6a08eed38 100644 (file)
@@ -1,7 +1,10 @@
 package com.vaadin.shared.ui.image;
 
+import com.vaadin.client.ui.image.VImage;
 import com.vaadin.shared.ui.AbstractEmbeddedState;
 
 public class ImageState extends AbstractEmbeddedState {
-
+    {
+        primaryStyleName = VImage.CLASSNAME;
+    }
 }
index a91aeb0aa1bd4be4345d7e7c1c7c43cabf87284f..09d4837fbe8ee6fb9fc5310adba36e5ca4b75725 100644 (file)
  */
 package com.vaadin.shared.ui.label;
 
+import com.vaadin.client.ui.label.VLabel;
 import com.vaadin.shared.ComponentState;
 
 public class LabelState extends ComponentState {
+    {
+        primaryStyleName = VLabel.CLASSNAME;
+    }
     public ContentMode contentMode = ContentMode.TEXT;
     public String text = "";
 }
diff --git a/shared/src/com/vaadin/shared/ui/link/LinkState.java b/shared/src/com/vaadin/shared/ui/link/LinkState.java
new file mode 100644 (file)
index 0000000..7ce626f
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.link;
+
+import com.vaadin.client.ui.link.VLink;
+import com.vaadin.shared.ComponentState;
+
+public class LinkState extends ComponentState {
+    {
+        primaryStyleName = VLink.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/menubar/MenuBarState.java b/shared/src/com/vaadin/shared/ui/menubar/MenuBarState.java
new file mode 100644 (file)
index 0000000..418be8d
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.menubar;
+
+import com.vaadin.client.ui.menubar.VMenuBar;
+import com.vaadin.shared.ComponentState;
+
+public class MenuBarState extends ComponentState {
+    {
+        primaryStyleName = VMenuBar.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupState.java b/shared/src/com/vaadin/shared/ui/optiongroup/OptionGroupState.java
new file mode 100644 (file)
index 0000000..b6a37d0
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.optiongroup;
+
+import com.vaadin.client.ui.optiongroup.VOptionGroup;
+import com.vaadin.shared.AbstractFieldState;
+
+public class OptionGroupState extends AbstractFieldState {
+    {
+        primaryStyleName = VOptionGroup.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/orderedlayout/HorizontalLayoutState.java b/shared/src/com/vaadin/shared/ui/orderedlayout/HorizontalLayoutState.java
new file mode 100644 (file)
index 0000000..caad987
--- /dev/null
@@ -0,0 +1,9 @@
+package com.vaadin.shared.ui.orderedlayout;
+
+import com.vaadin.client.ui.orderedlayout.VHorizontalLayout;
+
+public class HorizontalLayoutState extends AbstractOrderedLayoutState {
+    {
+        primaryStyleName = VHorizontalLayout.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/orderedlayout/VerticalLayoutState.java b/shared/src/com/vaadin/shared/ui/orderedlayout/VerticalLayoutState.java
new file mode 100644 (file)
index 0000000..e8ad3c9
--- /dev/null
@@ -0,0 +1,9 @@
+package com.vaadin.shared.ui.orderedlayout;
+
+import com.vaadin.client.ui.orderedlayout.VVerticalLayout;
+
+public class VerticalLayoutState extends AbstractOrderedLayoutState {
+    {
+        primaryStyleName = VVerticalLayout.CLASSNAME;
+    }
+}
index 878b921d550f71febf509aaf9483012b8d9424e7..3061d54438af3e3dd17af0538a4638ed15ca4328 100644 (file)
  */
 package com.vaadin.shared.ui.panel;
 
+import com.vaadin.client.ui.panel.VPanel;
 import com.vaadin.shared.ComponentState;
 
 public class PanelState extends ComponentState {
+    {
+        primaryStyleName = VPanel.CLASSNAME;
+    }
     public int tabIndex;
     public int scrollLeft, scrollTop;
 }
\ No newline at end of file
index ca18f72b7ae72ee84e1d00790984fcd04fa4fdb5..3393dbbfb588d7936621c52b425001664b1986e0 100644 (file)
@@ -1,8 +1,12 @@
 package com.vaadin.shared.ui.slider;
 
+import com.vaadin.client.ui.slider.VSlider;
 import com.vaadin.shared.AbstractFieldState;
 
 public class SliderState extends AbstractFieldState {
+    {
+        primaryStyleName = VSlider.CLASSNAME;
+    }
 
     public double value;
 
index 733f032726c7ecb741b62d282aacde8815c5dbf0..8bddffdfd6aa3017f1e0872e685f15fcabd52106 100644 (file)
@@ -21,7 +21,6 @@ import com.vaadin.shared.ComponentState;
 import com.vaadin.shared.Connector;
 
 public class AbstractSplitPanelState extends ComponentState {
-
     public Connector firstChild = null;
     public Connector secondChild = null;
     public SplitterState splitterState = new SplitterState();
diff --git a/shared/src/com/vaadin/shared/ui/splitpanel/HorizontalSplitPanelState.java b/shared/src/com/vaadin/shared/ui/splitpanel/HorizontalSplitPanelState.java
new file mode 100644 (file)
index 0000000..5472c17
--- /dev/null
@@ -0,0 +1,9 @@
+package com.vaadin.shared.ui.splitpanel;
+
+import com.vaadin.client.ui.splitpanel.VSplitPanelHorizontal;
+
+public class HorizontalSplitPanelState extends AbstractSplitPanelState {
+    {
+        primaryStyleName = VSplitPanelHorizontal.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/splitpanel/VerticalSplitPanelState.java b/shared/src/com/vaadin/shared/ui/splitpanel/VerticalSplitPanelState.java
new file mode 100644 (file)
index 0000000..0e97557
--- /dev/null
@@ -0,0 +1,9 @@
+package com.vaadin.shared.ui.splitpanel;
+
+import com.vaadin.client.ui.splitpanel.VSplitPanelVertical;
+
+public class VerticalSplitPanelState extends AbstractSplitPanelState {
+    {
+        primaryStyleName = VSplitPanelVertical.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetState.java b/shared/src/com/vaadin/shared/ui/tabsheet/TabsheetState.java
new file mode 100644 (file)
index 0000000..f03f9b9
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.tabsheet;
+
+import com.vaadin.client.ui.tabsheet.VTabsheet;
+import com.vaadin.shared.ComponentState;
+
+public class TabsheetState extends ComponentState {
+    {
+        primaryStyleName = VTabsheet.CLASSNAME;
+    }
+}
index a562c607b053c38776bb5521840c672344a24c15..ca9481f5e3bd5c3b95c113245f7e18b6be31432c 100644 (file)
  */
 package com.vaadin.shared.ui.textarea;
 
+import com.vaadin.client.ui.textarea.VTextArea;
 import com.vaadin.shared.annotations.DelegateToWidget;
 import com.vaadin.shared.ui.textfield.AbstractTextFieldState;
 
 public class TextAreaState extends AbstractTextFieldState {
+    {
+        primaryStyleName = VTextArea.CLASSNAME;
+    }
 
     /**
      * Number of visible rows in the text area. The default is 5.
index 39265c516f712ae40a69c2fb76b6eb0380f2b66a..ebe99f729f4eedb594dc3fc03bf4880ee188a896 100644 (file)
  */
 package com.vaadin.shared.ui.textfield;
 
+import com.vaadin.client.ui.textfield.VTextField;
 import com.vaadin.shared.AbstractFieldState;
 
 public class AbstractTextFieldState extends AbstractFieldState {
+    {
+        primaryStyleName = VTextField.CLASSNAME;
+    }
+
     /**
      * Maximum character count in text field.
      */
diff --git a/shared/src/com/vaadin/shared/ui/tree/TreeState.java b/shared/src/com/vaadin/shared/ui/tree/TreeState.java
new file mode 100644 (file)
index 0000000..3785051
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.tree;
+
+import com.vaadin.client.ui.tree.VTree;
+import com.vaadin.shared.AbstractFieldState;
+
+public class TreeState extends AbstractFieldState {
+    {
+        primaryStyleName = VTree.CLASSNAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/treetable/TreeTableState.java b/shared/src/com/vaadin/shared/ui/treetable/TreeTableState.java
new file mode 100644 (file)
index 0000000..9199c1c
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.treetable;
+
+import com.vaadin.client.ui.treetable.VTreeTable;
+import com.vaadin.shared.ui.table.TableState;
+
+public class TreeTableState extends TableState {
+    {
+        primaryStyleName = VTreeTable.STYLENAME;
+    }
+}
diff --git a/shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectState.java b/shared/src/com/vaadin/shared/ui/twincolselect/TwinColSelectState.java
new file mode 100644 (file)
index 0000000..a0e554a
--- /dev/null
@@ -0,0 +1,10 @@
+package com.vaadin.shared.ui.twincolselect;
+
+import com.vaadin.client.ui.twincolselect.VTwinColSelect;
+import com.vaadin.shared.AbstractFieldState;
+
+public class TwinColSelectState extends AbstractFieldState {
+    {
+        primaryStyleName = VTwinColSelect.CLASSNAME;
+    }
+}
index 2e6e24a743154b2af752df3873d7dda29f42ef3b..4232888328c54a54038df491098ea37d5137997d 100644 (file)
  */
 package com.vaadin.shared.ui.video;
 
+import com.vaadin.client.ui.video.VVideo;
 import com.vaadin.shared.ui.AbstractMediaState;
 
 public class VideoState extends AbstractMediaState {
-
+    {
+        primaryStyleName = VVideo.CLASSNAME;
+    }
 }