]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8478 Added clip constant to BaseTheme
authorArtur Signell <artur@vaadin.com>
Mon, 26 Mar 2012 08:53:45 +0000 (11:53 +0300)
committerArtur Signell <artur@vaadin.com>
Mon, 26 Mar 2012 08:53:45 +0000 (11:53 +0300)
src/com/vaadin/ui/themes/BaseTheme.java
tests/testbench/com/vaadin/tests/components/AbstractComponentTest.java

index c652a8a675b4073d112aa3ac24401b5ea7f85f67..6f448746bf26532b60d0b06ae3c875e91e17c365 100644 (file)
@@ -50,4 +50,10 @@ public class BaseTheme {
      */
     public static final String TREE_CONNECTORS = "connectors";
 
+    /**
+     * Clips the component so it will be constrained to its given size and not
+     * overflow.
+     */
+    public static final String CLIP = "v-clip";
+
 }
\ No newline at end of file
index 5934cf19d0cdad223dfea67434b97ce17b958109..60ce941565102d97b7f4671ae7b33e2c50c1e6f6 100644 (file)
@@ -21,6 +21,7 @@ import com.vaadin.tests.util.LoremIpsum;
 import com.vaadin.ui.AbstractComponent;
 import com.vaadin.ui.MenuBar;
 import com.vaadin.ui.MenuBar.MenuItem;
+import com.vaadin.ui.themes.BaseTheme;
 
 public abstract class AbstractComponentTest<T extends AbstractComponent>
         extends AbstractComponentTestCase<T> implements FocusListener,
@@ -173,7 +174,7 @@ public abstract class AbstractComponentTest<T extends AbstractComponent>
     private void createLog() {
         log = new Log(5).setNumberLogRows(true);
         log.setData(log.getCaption());
-        log.setStyleName("v-clip");
+        log.setStyleName(BaseTheme.CLIP);
         getLayout().addComponent(log, 1);
     }