code: public void registerSearchReplace(Button search, Button replace) {
  
          if (getState().m_enableSearchReplace) {
              throw new RuntimeException("Search/replace already registered.");
          }
          search.setId(HTML_ID_PREFIX + m_componentId + "-search");
          replace.setId(HTML_ID_PREFIX + m_componentId + "-replace");
          getState().m_enableSearchReplace = true;
          markAsDirty();
      }
docs: Registers the given buttons as the search and replace buttons.<p>
  
  @param search the search button
  @param replace the replace button