Sunday, March 2, 2014

Vaadin ObjectProperty initialization

Favor (use Generics):


ObjectProperty propertynew ObjectProperty("Hello");


Over (from Vaadin API: "Since Vaadin 7, only values of the correct type are accepted, and no automatic conversions are performed."):



ObjectProperty property = new ObjectProperty("Hello",String.class);


Related Post:

initialization
    objectproperty

      0 comments:

      Post a Comment

       
      Powered by Blogger .
      Converted To Blogger Template by Anshul .