Source:
<code>private void createFilterProjectUI() { filterPanel = new DisclosurePanel(Util.C.headingFilterProject()); filterPanel.addOpenHandler(new OpenHandler<DisclosurePanel>() { public void onOpen(OpenEvent<DisclosurePanel> event) { if (searchListener != null) { searchListener.onClick(); } } }); filterPanel.addCloseHandler(new CloseHandler<DisclosurePanel>() { public void onClose(CloseEvent<DisclosurePanel> event) { if (searchListener != null) { searchListener.onClick(); } } }); final Grid filterGrid = new Grid(3, 2); filterProjectNameTxt = new NpTextBox(); filterProjectNameTxt.setVisibleLength(50); filterProjectNameTxt.setText(""); filterProjectNameTxt.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { if (event.getCharCode() == KeyCodes.KEY_ENTER) { doSearch(); } } }); filterGrid.setText(0, 0, Util.C.columnFilterProjectName() + ":"); filterGrid.setWidget(0, 1, filterProjectNameTxt); <START> filterParentProjectTxt = new NpTextBox(); <END> filterParentProjectTxt.setVisibleLength(50); filterParentProjectTxt.setText(""); filterParentProjectTxt.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { if (event.getCharCode() == KeyCodes.KEY_ENTER) { doSearch(); } } }); filterGrid.setText(1, 0, Util.C.columnParentProject() + ":"); filterGrid.setWidget(1, 1, filterParentProjectTxt); searchButton = new Button(Util.C.buttonSearchProject()); searchButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { doSearch(); } }); filterGrid.setWidget(2, 0, searchButton); filterPanel.setContent(filterGrid); filterPanel.setWidth("40%"); }</code><technical_language>a SuggestBox a parent easily selected</technical_language>

Target:
private void createFilterProjectUI() { filterPanel = new DisclosurePanel(Util.C.headingSearchProject()); filterPanel.addOpenHandler(new OpenHandler<DisclosurePanel>() { public void onOpen(OpenEvent<DisclosurePanel> event) { handlerManager.fireEvent(new ClickSearchEvent()); } }); filterPanel.addCloseHandler(new CloseHandler<DisclosurePanel>() { public void onClose(CloseEvent<DisclosurePanel> event) { handlerManager.fireEvent(new ClickSearchEvent()); } }); final Grid filterGrid = new Grid(3, 2); filterProjectNameTxt = new NpTextBox(); filterProjectNameTxt.setVisibleLength(50); filterProjectNameTxt.setText(""); filterProjectNameTxt.addKeyPressHandler(new KeyPressHandler() { public void onKeyPress(KeyPressEvent event) { if (event.getCharCode() == KeyCodes.KEY_ENTER) { doSearch(); } } }); filterGrid.setText(0, 0, Util.C.columnFilterProjectName() + ":"); filterGrid.setWidget(0, 1, filterProjectNameTxt); filterParentProjectTxt = new NpTextBox(); filterParentProjectTxt.setVisibleLength(50); filterParentProjectTxt.setText(""); parentNameTxt = new SuggestBox(new ProjectNameSuggestOracle(), filterParentProjectTxt); filterParentProjectTxt.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { if (event.getCharCode() == KeyCodes.KEY_ENTER) { if (!parentNameTxt.isSuggestionListShowing()) { doSearch(); } } } }); filterGrid.setText(1, 0, Util.C.columnParentProject() + ":"); filterGrid.setWidget(1, 1, parentNameTxt); filterButton = new Button(Util.C.buttonHighlightProject()); filterButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { doSearch(); } }); filterGrid.setWidget(2, 0, filterButton); filterPanel.setContent(filterGrid); filterPanel.setWidth("40%"); }