summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-06 16:27:04 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-06 16:27:04 +0300
commit50237cc7d431acb03f75dc3cdba55a245922608b (patch)
tree8084b31f53608d4ef9b04bc60389820063ab1e9e /client
parent55c0dfa0e7a737bab8c2486fb213499e6be88aa4 (diff)
downloadvaadin-framework-50237cc7d431acb03f75dc3cdba55a245922608b.tar.gz
vaadin-framework-50237cc7d431acb03f75dc3cdba55a245922608b.zip
Renamed .v-boxlayout selector to .v-layout and applied the .v-layout
selector to all layouts
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java4
-rw-r--r--client/src/com/vaadin/client/ui/csslayout/VCssLayout.java6
-rw-r--r--client/src/com/vaadin/client/ui/customlayout/VCustomLayout.java8
-rw-r--r--client/src/com/vaadin/client/ui/formlayout/VFormLayout.java4
-rw-r--r--client/src/com/vaadin/client/ui/gridlayout/VGridLayout.java4
-rw-r--r--client/src/com/vaadin/client/ui/orderedlayout/VHorizontalLayout.java3
-rw-r--r--client/src/com/vaadin/client/ui/orderedlayout/VOrderedLayout.java4
-rw-r--r--client/src/com/vaadin/client/ui/orderedlayout/VVerticalLayout.java3
-rw-r--r--client/src/com/vaadin/client/ui/splitpanel/VAbstractSplitPanel.java6
9 files changed, 29 insertions, 13 deletions
diff --git a/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java b/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java
index cea75a3bfd..30426e1399 100644
--- a/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java
+++ b/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java
@@ -25,6 +25,7 @@ import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ApplicationConnection;
import com.vaadin.client.VCaption;
+import com.vaadin.ui.themes.BaseTheme;
public class VAbsoluteLayout extends ComplexPanel {
@@ -44,7 +45,8 @@ public class VAbsoluteLayout extends ComplexPanel {
public VAbsoluteLayout() {
setElement(Document.get().createDivElement());
- setStyleName(CLASSNAME);
+ setStyleName(BaseTheme.UI_LAYOUT);
+ addStyleName(CLASSNAME);
marginElement = Document.get().createDivElement();
canvas.getStyle().setProperty("position", "relative");
canvas.getStyle().setProperty("overflow", "hidden");
diff --git a/client/src/com/vaadin/client/ui/csslayout/VCssLayout.java b/client/src/com/vaadin/client/ui/csslayout/VCssLayout.java
index e7c78fadb2..2aeec53e27 100644
--- a/client/src/com/vaadin/client/ui/csslayout/VCssLayout.java
+++ b/client/src/com/vaadin/client/ui/csslayout/VCssLayout.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
@@ -21,6 +21,7 @@ import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
+import com.vaadin.ui.themes.BaseTheme;
public class VCssLayout extends SimplePanel {
public static final String TAGNAME = "csslayout";
@@ -33,7 +34,8 @@ public class VCssLayout extends SimplePanel {
public VCssLayout() {
super();
getElement().appendChild(margin);
- setStyleName(CLASSNAME);
+ setStyleName(BaseTheme.UI_LAYOUT);
+ addStyleName(CLASSNAME);
margin.setClassName(CLASSNAME + "-margin");
setWidget(panel);
}
diff --git a/client/src/com/vaadin/client/ui/customlayout/VCustomLayout.java b/client/src/com/vaadin/client/ui/customlayout/VCustomLayout.java
index aecbb73cb8..963ad5becf 100644
--- a/client/src/com/vaadin/client/ui/customlayout/VCustomLayout.java
+++ b/client/src/com/vaadin/client/ui/customlayout/VCustomLayout.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
@@ -32,6 +32,7 @@ import com.vaadin.client.ComponentConnector;
import com.vaadin.client.Util;
import com.vaadin.client.VCaption;
import com.vaadin.client.VCaptionWrapper;
+import com.vaadin.ui.themes.BaseTheme;
/**
* Custom Layout implements complex layout defined with HTML template.
@@ -82,7 +83,8 @@ public class VCustomLayout extends ComplexPanel {
DOM.setStyleAttribute(getElement(), "position", "relative");
}
- setStyleName(CLASSNAME);
+ setStyleName(BaseTheme.UI_LAYOUT);
+ addStyleName(CLASSNAME);
}
/**
@@ -207,7 +209,7 @@ public class VCustomLayout extends ComplexPanel {
static native void eval(String script)
/*-{
try {
- if (script != null)
+ if (script != null)
eval("{ var document = $doc; var window = $wnd; "+ script + "}");
} catch (e) {
}
diff --git a/client/src/com/vaadin/client/ui/formlayout/VFormLayout.java b/client/src/com/vaadin/client/ui/formlayout/VFormLayout.java
index f2f6e0bc72..49df49374d 100644
--- a/client/src/com/vaadin/client/ui/formlayout/VFormLayout.java
+++ b/client/src/com/vaadin/client/ui/formlayout/VFormLayout.java
@@ -40,6 +40,7 @@ import com.vaadin.shared.ComponentConstants;
import com.vaadin.shared.ComponentState;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.shared.ui.MarginInfo;
+import com.vaadin.ui.themes.BaseTheme;
/**
* Two col Layout that places caption on left col and field on right col
@@ -52,7 +53,8 @@ public class VFormLayout extends SimplePanel {
public VFormLayout() {
super();
- setStyleName(CLASSNAME);
+ setStyleName(BaseTheme.UI_LAYOUT);
+ addStyleName(CLASSNAME);
table = new VFormLayoutTable();
setWidget(table);
}
diff --git a/client/src/com/vaadin/client/ui/gridlayout/VGridLayout.java b/client/src/com/vaadin/client/ui/gridlayout/VGridLayout.java
index d3b2f0467e..894b21c925 100644
--- a/client/src/com/vaadin/client/ui/gridlayout/VGridLayout.java
+++ b/client/src/com/vaadin/client/ui/gridlayout/VGridLayout.java
@@ -39,6 +39,7 @@ import com.vaadin.client.ui.layout.ComponentConnectorLayoutSlot;
import com.vaadin.client.ui.layout.VLayoutSlot;
import com.vaadin.shared.ui.AlignmentInfo;
import com.vaadin.shared.ui.MarginInfo;
+import com.vaadin.ui.themes.BaseTheme;
public class VGridLayout extends ComplexPanel {
@@ -70,7 +71,8 @@ public class VGridLayout extends ComplexPanel {
spacingStyle.setPosition(Position.ABSOLUTE);
getElement().appendChild(spacingMeasureElement);
- setStyleName(CLASSNAME);
+ setStyleName(BaseTheme.UI_LAYOUT);
+ addStyleName(CLASSNAME);
}
private GridLayoutConnector getConnector() {
diff --git a/client/src/com/vaadin/client/ui/orderedlayout/VHorizontalLayout.java b/client/src/com/vaadin/client/ui/orderedlayout/VHorizontalLayout.java
index 543eeafe88..f80db5113f 100644
--- a/client/src/com/vaadin/client/ui/orderedlayout/VHorizontalLayout.java
+++ b/client/src/com/vaadin/client/ui/orderedlayout/VHorizontalLayout.java
@@ -20,10 +20,13 @@ package com.vaadin.client.ui.orderedlayout;
*/
public class VHorizontalLayout extends VOrderedLayout {
+ private static final String CLASSNAME = "v-horizontallayout";
+
/**
* Default constructor
*/
public VHorizontalLayout() {
setVertical(false);
+ addStyleName(CLASSNAME);
}
}
diff --git a/client/src/com/vaadin/client/ui/orderedlayout/VOrderedLayout.java b/client/src/com/vaadin/client/ui/orderedlayout/VOrderedLayout.java
index 7dc816f287..b97ffdc394 100644
--- a/client/src/com/vaadin/client/ui/orderedlayout/VOrderedLayout.java
+++ b/client/src/com/vaadin/client/ui/orderedlayout/VOrderedLayout.java
@@ -42,8 +42,6 @@ import com.vaadin.ui.themes.BaseTheme;
*/
public class VOrderedLayout extends FlowPanel {
- public static final String CLASSNAME = "v-boxlayout";
-
private static final String ALIGN_CLASS_PREFIX = "v-align-";
protected boolean spacing = false;
@@ -62,7 +60,7 @@ public class VOrderedLayout extends FlowPanel {
* Constructor
*/
public VOrderedLayout() {
- setStyleName(CLASSNAME);
+ setStyleName(BaseTheme.UI_LAYOUT);
setVertical(true);
}
diff --git a/client/src/com/vaadin/client/ui/orderedlayout/VVerticalLayout.java b/client/src/com/vaadin/client/ui/orderedlayout/VVerticalLayout.java
index 3e597afec1..17de447b9a 100644
--- a/client/src/com/vaadin/client/ui/orderedlayout/VVerticalLayout.java
+++ b/client/src/com/vaadin/client/ui/orderedlayout/VVerticalLayout.java
@@ -20,10 +20,13 @@ package com.vaadin.client.ui.orderedlayout;
*/
public class VVerticalLayout extends VOrderedLayout {
+ private static final String CLASSNAME = "v-verticallayout";
+
/**
* Default constructor
*/
public VVerticalLayout() {
setVertical(true);
+ addStyleName(CLASSNAME);
}
}
diff --git a/client/src/com/vaadin/client/ui/splitpanel/VAbstractSplitPanel.java b/client/src/com/vaadin/client/ui/splitpanel/VAbstractSplitPanel.java
index 61e2748257..ef19b83c20 100644
--- a/client/src/com/vaadin/client/ui/splitpanel/VAbstractSplitPanel.java
+++ b/client/src/com/vaadin/client/ui/splitpanel/VAbstractSplitPanel.java
@@ -47,6 +47,7 @@ import com.vaadin.client.ui.TouchScrollDelegate;
import com.vaadin.client.ui.TouchScrollDelegate.TouchScrollHandler;
import com.vaadin.client.ui.VOverlay;
import com.vaadin.client.ui.splitpanel.VAbstractSplitPanel.SplitterMoveHandler.SplitterMoveEvent;
+import com.vaadin.ui.themes.BaseTheme;
public class VAbstractSplitPanel extends ComplexPanel {
@@ -117,13 +118,14 @@ public class VAbstractSplitPanel extends ComplexPanel {
public VAbstractSplitPanel(int orientation) {
setElement(DOM.createDiv());
+ setStyleName(BaseTheme.UI_LAYOUT);
switch (orientation) {
case ORIENTATION_HORIZONTAL:
- setStyleName(CLASSNAME + "-horizontal");
+ addStyleName(CLASSNAME + "-horizontal");
break;
case ORIENTATION_VERTICAL:
default:
- setStyleName(CLASSNAME + "-vertical");
+ addStyleName(CLASSNAME + "-vertical");
break;
}
// size below will be overridden in update from uidl, initial size