DivPanel searchForPanel = new DivPanel();
searchForPanel.addStyleName(_css.SearchWidgetSearchForPanel());
searchPanel.add(searchForPanel);
DivWidget queryLabel = new DivWidget("Search for:");
queryLabel.addStyleName(_css.SearchWidgetLabel());
searchForPanel.add(queryLabel);
DivPanel queryTextBoxPanel = new DivPanel();
queryTextBoxPanel.addStyleName(_css.SearchWidgetTextBoxPanel());
searchForPanel.add(queryTextBoxPanel);
_queryTextBox = new TextBox();
_queryTextBox.addStyleName(_css.SearchWidgetTextBox());
_queryTextBox.setName(ConstraintsParameterMapping.PARAM_QUERY);
_queryTextBox.addKeyPressHandler(new QueryTextBoxHandler());
queryTextBoxPanel.add(_queryTextBox);
DivPanel searchForExamplePanel = new DivPanel();
searchForExamplePanel.addStyleName(_css.SearchWidgetExamplePanel());
searchForPanel.add(searchForExamplePanel);
DivWidget searchForExampleLabel = new DivWidget(
"(ex. \"restaurants\", \"parks\", \"grocery stores\")");
searchForExampleLabel.addStyleName(_css.SearchWidgetExampleLabel());
searchForExamplePanel.add(searchForExampleLabel);
DivPanel addressPanel = new DivPanel();
searchPanel.add(addressPanel);
DivPanel addressPanel1 = new DivPanel();
addressPanel.add(addressPanel1);
DivWidget addressLabel = new DivWidget("Start Address:");
addressLabel.addStyleName(_css.SearchWidgetLabel());
addressPanel1.add(addressLabel);
DivPanel addressTextBoxPanel = new DivPanel();
addressTextBoxPanel.addStyleName(_css.SearchWidgetTextBoxPanel());
addressPanel1.add(addressTextBoxPanel);