Package org.rstudio.core.client.widget

Examples of org.rstudio.core.client.widget.SearchWidget$FocusSuggestBox


      packratSeparator_ = toolbar.addLeftSeparator();
      packratSeparator_.setVisible(false);
         
      toolbar.addLeftWidget(commands_.refreshPackages().createToolbarButton());
     
      searchWidget_ = new SearchWidget(new SuggestOracle() {
         @Override
         public void requestSuggestions(Request request, Callback callback)
         {
            // no suggestions
            callback.onSuggestionsReady(
View Full Code Here


            friendlyEnvironmentName(),
            imageOfEnvironment(environmentName_, environmentIsLocal_),
            environmentMenu_);
      toolbar.addLeftWidget(environmentButton_);
     
      SearchWidget searchWidget = new SearchWidget(new SuggestOracle() {
         @Override
         public void requestSuggestions(Request request, Callback callback)
         {
            // no suggestions
            callback.onSuggestionsReady(
                  request,
                  new Response(new ArrayList<Suggestion>()));
         }
      });
      searchWidget.addValueChangeHandler(new ValueChangeHandler<String>() {
         @Override
         public void onValueChange(ValueChangeEvent<String> event)
         {
            objects_.setFilterText(event.getValue());
         }
      });

      searchWidget.getElement().getStyle().setMarginTop(1, Unit.PX);
      toolbar.addRightWidget(searchWidget);

      return toolbar;
   }
View Full Code Here

   {
      super(true, false);

      DockPanel dockPanel = new DockPanel();

      search_ = new SearchWidget(new DocsOracle());
      search_.addValueChangeHandler(this);

      search_.getElement().getStyle().setMarginRight(0, Unit.PX);
      dockPanel.add(search_, DockPanel.NORTH);
View Full Code Here

TOP

Related Classes of org.rstudio.core.client.widget.SearchWidget$FocusSuggestBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.