public void createSuggestor(int x, int y, String query) { /* * Register coordinates */ this.x = x; this.y = y; /* * Remove suggestor from root panel */ RootPanel rp = RootPanel.get(); if (suggestor != null) { rp.remove(suggestor); suggestor.destroy(); suggestor = null; } /* * Build requestor */ // buildSuggestorAsync(query); buildSuggestorSync(query); }
public void removeSuggestor() { RootPanel rp = RootPanel.get(); if (suggestor != null) { rp.remove(suggestor); suggestor.destroy(); suggestor = null; } }