Skip to content

Commit

Permalink
Move internal container annotations to the appropriate packages (#2771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Legioth authored Oct 26, 2017
1 parent 6c6df58 commit 69d63c7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 28 deletions.
12 changes: 4 additions & 8 deletions flow-server/src/main/java/com/vaadin/flow/model/Convert.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,15 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.annotations.InternalContainerAnnotationForConvert;
import com.vaadin.flow.template.angular.model.TemplateModel;
import com.vaadin.flow.model.ModelConverter;

/**
* Defines a ModelConverter on a template model property found through
* {@link #path()}.
* <p>
* Use this annotation on setters in your {@link TemplateModel} class to perform
* type conversions on properties.
*
*
* @see ModelConverter
*
*
* @author Vaadin Ltd
*/
@Retention(RetentionPolicy.RUNTIME)
Expand All @@ -44,7 +40,7 @@
/**
* The ModelConverter class to use for conversion of the property found
* through {{@link #path()}.
*
*
* @return the ModelConverter class
*/
Class<? extends ModelConverter<?, ?>> value();
Expand All @@ -53,7 +49,7 @@
* The dot separated path from the TemplateModel property to the value to
* apply conversion to. Empty string by default, which will apply conversion
* directly to the property.
*
*
* @return the dot separated path to the bean property to convert, empty
* string by default
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.annotations;
package com.vaadin.flow.model;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.flow.model.Convert;

/**
* Annotation enabling use of multiple {@link Convert} annotations.
* <p>
* <b>NOT meant to be used</b>, for multiple converters, {@link Convert} should
* be used instead.
*
*
* @author Vaadin Ltd
*/
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.annotations.InternalContainerAnnotationForHtml;
import com.vaadin.shared.ui.LoadMode;
import com.vaadin.ui.Component;
import com.vaadin.ui.WebComponents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.annotations;
package com.vaadin.ui.common;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.ui.common.HtmlImport;

/**
* Annotation enabling using multiple {@link HtmlImport @HtmlImport}
* annotations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.annotations;
package com.vaadin.ui.common;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.ui.common.JavaScript;

/**
* Annotation enabling using multiple {@link JavaScript @JavaScript}
* annotations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.annotations;
package com.vaadin.ui.common;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.ui.common.StyleSheet;

/**
* Annotation enabling using multiple {@link StyleSheet @StyleSheet}
* annotations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.annotations;
package com.vaadin.ui.common;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.ui.common.Uses;

/**
* Annotation enabling using multiple {@link Uses @Uses} annotations.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.annotations.InternalContainerAnnotationForJS;
import com.vaadin.shared.ui.LoadMode;
import com.vaadin.ui.Component;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vaadin.annotations.InternalContainerAnnotationForSS;
import com.vaadin.shared.ui.LoadMode;
import com.vaadin.ui.Component;

Expand Down
1 change: 0 additions & 1 deletion flow-server/src/main/java/com/vaadin/ui/common/Uses.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import com.vaadin.annotations.InternalContainerAnnotationForUses;
import com.vaadin.ui.Component;

/**
Expand Down

0 comments on commit 69d63c7

Please sign in to comment.