import java.util.regex.Pattern;
import com.vaadin.annotations.RootInitRequiresBrowserDetails;
-import com.vaadin.annotations.RootTheme;
+import com.vaadin.annotations.Theme;
import com.vaadin.annotations.RootWidgetset;
import com.vaadin.data.util.converter.Converter;
import com.vaadin.data.util.converter.ConverterFactory;
* @since 7.0
*/
public String getThemeForRoot(Root root) {
- RootTheme rootTheme = getAnnotationFor(root.getClass(), RootTheme.class);
+ Theme rootTheme = getAnnotationFor(root.getClass(), Theme.class);
if (rootTheme != null) {
return rootTheme.value();
} else {
+++ /dev/null
-/*
-@VaadinApache2LicenseForJavaFiles@
- */
-
-package com.vaadin.annotations;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import com.vaadin.ui.Root;
-
-/**
- * Defines a specific theme for a {@link Root}.
- */
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.TYPE)
-public @interface RootTheme {
- /**
- * @return simple name of the theme
- */
- public String value();
-}
--- /dev/null
+/*
+@VaadinApache2LicenseForJavaFiles@
+ */
+
+package com.vaadin.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import com.vaadin.ui.Root;
+
+/**
+ * Defines a specific theme for a {@link Root}.
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+public @interface Theme {
+ /**
+ * @return simple name of the theme
+ */
+ public String value();
+}
package com.vaadin.tests.components.root;
-import com.vaadin.annotations.RootTheme;
+import com.vaadin.annotations.Theme;
import com.vaadin.terminal.WrappedRequest;
import com.vaadin.tests.components.AbstractTestRoot;
import com.vaadin.ui.Label;
-@RootTheme("tests-tickets")
+@Theme("tests-tickets")
public class TestRootTheme extends AbstractTestRoot {
@Override