This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Sets the grid editor to be enabled | |
grid.setEditorEnabled(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @author Krishna | |
* | |
*/ | |
public class BusinessClass { | |
private int offset; | |
public void init(int offset) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HeaderRow filterRow = grid.appendHeaderRow(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sub Class | |
* @author Krishna | |
* | |
*/ | |
public class YearlySales implements Serializable { | |
/** | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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"); |