EMPLOYEES.add(new Employee("a","b"));
EMPLOYEES.add(new Employee("a","b"));
EMPLOYEES.add(new Employee("a","b"));
// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel rootPanel = RootPanel.get("nameFieldContainer");
//rootPanel.setSize("", "");
HorizontalPanel horizontalPanel = new HorizontalPanel();
horizontalPanel.setBorderWidth(1);
horizontalPanel.setSpacing(10);
rootPanel.add(horizontalPanel);
//horizontalPanel.setSize("448px", "105px");
//Image image = new Image((String) null);
// image.setAltText("Profile picture");
//horizontalPanel.add(image);
//image.setSize("150px", "150px");
Grid grid = new Grid(5, 2);
grid.setBorderWidth(1);
horizontalPanel.add(grid);
horizontalPanel.setCellVerticalAlignment(grid, HasVerticalAlignment.ALIGN_MIDDLE);
grid.setSize("236px", "123px");
Label lblName = new Label("Name ");
lblName.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
grid.setWidget(0, 0, lblName);
Label lblNewLabel = new Label("Some Name ");
lblNewLabel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
grid.setWidget(0, 1, lblNewLabel);
Label lblNewLabel_1 = new Label("ID");
lblNewLabel_1.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
grid.setWidget(1, 0, lblNewLabel_1);
Label lblNewLabel_2 = new Label("###### ");
lblNewLabel_2.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
grid.setWidget(1, 1, lblNewLabel_2);
Label lblNewLabel_3 = new Label("Grade2 ");
lblNewLabel_3.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
grid.setWidget(2, 0, lblNewLabel_3);
Label lblNewLabel_5 = new Label("##");
lblNewLabel_5.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
grid.setWidget(2, 1, lblNewLabel_5);
Label lblNewLabel_6 = new Label("Club ");
lblNewLabel_6.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
grid.setWidget(3, 0, lblNewLabel_6);
Label lblNewLabel_4 = new Label("Some Club");
lblNewLabel_4.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
grid.setWidget(3, 1, lblNewLabel_4);
Label lblNewLabel_7 = new Label("Total Carbon ");
lblNewLabel_7.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
grid.setWidget(4, 0, lblNewLabel_7);
Label lblNewLabel_8 = new Label("##");
lblNewLabel_8.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
grid.setWidget(4, 1, lblNewLabel_8);
HorizontalPanel horizontalPanel_1 = new HorizontalPanel();
horizontalPanel_1.setBorderWidth(1);
// rootPanel.add(horizontalPanel_1);
horizontalPanel_1.setSize("445px", "111px");
TabPanel tabPanel = new TabPanel();
//horizontalPanel_1.add(tabPanel);
tabPanel.setWidth("442px");
HTMLPanel panel = new HTMLPanel("New HTML");
tabPanel.add(panel, "New tab", false);
panel.setSize("5cm", "3cm");
HTMLPanel panel_1 = new HTMLPanel("New HTML");
tabPanel.add(panel_1, "New tab", false);
panel_1.setSize("5cm", "3cm");
SimplePanel simplePanel_1 = new SimplePanel();
rootPanel.add(simplePanel_1);
DockPanel dockPanel = new DockPanel();
rootPanel.add(dockPanel);
dockPanel.setSize("533px", "307px");
final DataGrid<Employee> dataGrid = new DataGrid<Employee>();
dockPanel.add(dataGrid, DockPanel.CENTER);
dataGrid.setWidth("250px");