private HorizontalPanel getThirdRow() { if (thirdRow == null) { thirdRow = new HorizontalPanel(); thirdRow.setHorizontalAlign(HorizontalAlignment.RIGHT); thirdRow.setSpacing(10); thirdRow.add(getApplicationPanel()); thirdRow.add(getWalltimeContainer()); thirdRow.add(getCpusPanel()); } return thirdRow; }
private HorizontalPanel getSearchPanel() { HorizontalPanel searchBox = new HorizontalPanel(); TextField<String> msisdnField = new TextField<String>(); msisdnField.setFieldLabel("MSISDN"); msisdnField.setWidth(200); msisdnField.setEmptyText("Enter MSISDN"); Button searchButton = new Button("Search"); searchBox.setShadow(true); searchBox.setSpacing(5); searchBox.add(msisdnField); searchBox.add(searchButton); searchBox.setHorizontalAlign(HorizontalAlignment.CENTER); searchButton.addSelectionListener( new SelectionListener<ButtonEvent>() { @Override public void componentSelected(ButtonEvent ce) {} }); return searchBox; }