-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
public static final String VERTICAL_SPACING = "vspacing";
public static final String HORIZONTAL_SPACING = "hspacing";
+ /**
+ * Added to all UI components
+ */
+ public static final String UI_WIDGET = "v-widget";
+
+ /**
+ * Added to all layouts to denote they are layouts
+ */
+ public static final String UI_LAYOUT = "v-layout";
}
import com.vaadin.client.ConnectorMap;
import com.vaadin.client.LayoutManager;
import com.vaadin.client.ServerConnector;
+import com.vaadin.client.StyleConstants;
import com.vaadin.client.TooltipInfo;
import com.vaadin.client.UIDL;
import com.vaadin.client.Util;
import com.vaadin.shared.Connector;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.shared.ui.TabIndexState;
-import com.vaadin.ui.themes.BaseTheme;
public abstract class AbstractComponentConnector extends AbstractConnector
implements ComponentConnector {
getConnection().getVTooltip().connectHandlersToWidget(getWidget());
// Set the core 'v' style name for the widget
- getWidget().setStyleName(BaseTheme.UI_WIDGET, true);
+ getWidget().setStyleName(StyleConstants.UI_WIDGET, true);
}
/**
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.StyleConstants;
import com.vaadin.client.VCaption;
-import com.vaadin.ui.themes.BaseTheme;
public class VAbsoluteLayout extends ComplexPanel {
public VAbsoluteLayout() {
setElement(Document.get().createDivElement());
- setStyleName(BaseTheme.UI_LAYOUT);
+ setStyleName(StyleConstants.UI_LAYOUT);
addStyleName(CLASSNAME);
marginElement = Document.get().createDivElement();
canvas.getStyle().setProperty("position", "relative");
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Widget;
-import com.vaadin.ui.themes.BaseTheme;
+import com.vaadin.client.StyleConstants;
/**
* VCCSlayout is a layout which supports configuring it's children with CSS
*/
public VCssLayout() {
super();
- setStyleName(BaseTheme.UI_LAYOUT);
+ setStyleName(StyleConstants.UI_LAYOUT);
addStyleName(CLASSNAME);
}
import com.vaadin.client.ApplicationConnection;
import com.vaadin.client.BrowserInfo;
import com.vaadin.client.ComponentConnector;
+import com.vaadin.client.StyleConstants;
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.
DOM.setStyleAttribute(getElement(), "position", "relative");
}
- setStyleName(BaseTheme.UI_LAYOUT);
+ setStyleName(StyleConstants.UI_LAYOUT);
addStyleName(CLASSNAME);
}
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
public VFormLayout() {
super();
- setStyleName(BaseTheme.UI_LAYOUT);
+ setStyleName(StyleConstants.UI_LAYOUT);
addStyleName(CLASSNAME);
table = new VFormLayoutTable();
setWidget(table);
import com.vaadin.client.ComponentConnector;
import com.vaadin.client.ConnectorMap;
import com.vaadin.client.LayoutManager;
+import com.vaadin.client.StyleConstants;
import com.vaadin.client.UIDL;
import com.vaadin.client.Util;
import com.vaadin.client.VCaption;
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 {
spacingStyle.setPosition(Position.ABSOLUTE);
getElement().appendChild(spacingMeasureElement);
- setStyleName(BaseTheme.UI_LAYOUT);
+ setStyleName(StyleConstants.UI_LAYOUT);
addStyleName(CLASSNAME);
}
import com.google.gwt.user.client.ui.UIObject;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.LayoutManager;
+import com.vaadin.client.StyleConstants;
import com.vaadin.client.Util;
import com.vaadin.shared.ui.AlignmentInfo;
import com.vaadin.shared.ui.MarginInfo;
-import com.vaadin.ui.themes.BaseTheme;
/**
* Base class for ordered layouts
* Constructor
*/
public VOrderedLayout() {
- setStyleName(BaseTheme.UI_LAYOUT);
+ setStyleName(StyleConstants.UI_LAYOUT);
setVertical(true);
}
if (caption == null) {
caption = DOM.createDiv();
captionWrap = DOM.createDiv();
- captionWrap.addClassName(BaseTheme.UI_WIDGET);
+ captionWrap.addClassName(StyleConstants.UI_WIDGET);
captionWrap.addClassName("v-has-caption");
getElement().appendChild(captionWrap);
captionWrap.appendChild(getWidget().getElement());
import com.vaadin.client.ComponentConnector;
import com.vaadin.client.ConnectorMap;
import com.vaadin.client.LayoutManager;
+import com.vaadin.client.StyleConstants;
import com.vaadin.client.Util;
import com.vaadin.client.VConsole;
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 {
public VAbstractSplitPanel(int orientation) {
setElement(DOM.createDiv());
- setStyleName(BaseTheme.UI_LAYOUT);
+ setStyleName(StyleConstants.UI_LAYOUT);
switch (orientation) {
case ORIENTATION_HORIZONTAL:
addStyleName(CLASSNAME + "-horizontal");
* overflow.
*/
public static final String CLIP = "v-clip";
-
- /**
- * Added to all UI components
- */
- public static final String UI_WIDGET = "v-widget";
-
- /**
- * Added to all layouts to denote they are layouts
- */
- public static final String UI_LAYOUT = "v-layout";
-
}
\ No newline at end of file