/** * Default constructor. * * @param resultsListView the instance of the results list view to use */ public SearchForm(SearchResultsListView resultsListView) { super(); setBorder(false); setHideLabels(true); // using an inner panel to customize the layout Panel innerPanel = new Panel(); innerPanel.setBorder(false); innerPanel.setLayout(new HorizontalLayout(5)); searchInput = new TextField(); searchInput.setName(SearchLookupConfiguration.IN_QUERY); searchInput.setWidth(200); // width of search input box setFieldListeners(searchInput); innerPanel.add(searchInput); Button submitButton = makeStandardSubmitButton(UtilUi.MSG.search()); innerPanel.add(submitButton); add(innerPanel); win = new Window(UtilUi.MSG.searchResults()); win.setModal(false); win.setResizable(true); win.setMinHeight(RESULT_HEIGHT); win.setLayout(new FitLayout()); win.setCloseAction(Window.HIDE); results = resultsListView; results.setFrame(false); results.setAutoHeight(false); results.setCollapsible(false); results.setHeader(false); results.setBorder(false); results.setWidth(RESULT_WIDTH); win.add(results); }