Skip to content

Instantly share code, notes, and snippets.

@KrishnaKotari
KrishnaKotari / VaadinGrid-1.1.java
Created April 2, 2015 06:06
All Code related to Part 1 of my series on Vaadin Grid
//This doesn't give you caption
Grid grid = new Grid();
// This creates a caption and can be seen on the top left corner of the grid
Grid grid = new Grid("Basic");
@KrishnaKotari
KrishnaKotari / VaadinGrid-2.1.java
Last active August 29, 2015 14:18
All Code related to Part 2 of my series on Vaadin Grid
/**
* Sub Class
* @author Krishna
*
*/
public class YearlySales implements Serializable {
/**
*
*/
@KrishnaKotari
KrishnaKotari / VaadinGrid-3.1.java
Created April 2, 2015 06:30
All Code related to Part 2 of my series on Vaadin Grid
HeaderRow filterRow = grid.appendHeaderRow();
@KrishnaKotari
KrishnaKotari / TestNG1.1.java
Last active August 29, 2015 14:18
Classes related to Unit testing with TestNG
/**
*
* @author Krishna
*
*/
public class BusinessClass {
private int offset;
public void init(int offset) {
@KrishnaKotari
KrishnaKotari / VaadinGrid-4.1.java
Last active August 29, 2015 14:19
All code related to Part 4 of my series on Vaadin Grid
//Sets the grid editor to be enabled
grid.setEditorEnabled(true);
@KrishnaKotari
KrishnaKotari / VaadinForm-1.java
Last active August 29, 2015 14:22
All Code related to Blogpost on Forms with Vaadin
@NotBlank(message = "Employee should have a name")
private String name;
@NotBlank(message = "Select a Dept from the drop down")
private String dept;
private String city;
private boolean isPermanentEmployee;