i’m a really noob with Vaadin and Java…
I have this snippets :
@com.vaadin.ui.ClientWidget(ModuleName.class)
public class HomeScreen extends Screen { ... }
What does these annotations meaning with Vaadin?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
@SuppressWarnings is just a way to tell Eclipse not to show warnings for some particular elements in the class. In this case Eclipse won’t whine about the missing serial uid. They are not defined because they aren’t needed.
Vaadin components have two parts; server side and client side. The @ClientWidget annotation is meant to be placed in the server side component and it binds the server side component to the client side component. Reference: Book of Vaadin.
You don’t have to mind the @ClientWidget annotation if you aren’t developing a client side widget by yourself. If you are a beginner, I suggest you don’t bother yourself with the client side development just yet.