@Override public String getValue() { return suggestBox.getSelectedId(); }
@Override public String getValue() { return this.getSelectedId(); }
public String getSelectedId() { return suggestBox.getSelectedId(); }
@Override public void exec(IdableSuggestion result) { currentSuggestion = result; currentId = KSSuggestBox.this.getSelectedId(); SelectionChangeEvent.fire(KSSuggestBox.this); } });
@Override public void exec(IdableSuggestion result) { currentSuggestion = result; KSSuggestBox.this.setText((currentSuggestion == null) ? "" : currentSuggestion.getReplacementString()); if(!KSSuggestBox.this.getSelectedId().equals(currentId)){ SelectionChangeEvent.fire(KSSuggestBox.this); currentId = KSSuggestBox.this.getSelectedId(); } } });
@Override public void exec(IdableSuggestion result) { currentSuggestion = result; KSSuggestBox.this.setText((currentSuggestion == null) ? "" : currentSuggestion.getReplacementString()); currentId = KSSuggestBox.this.getSelectedId(); } });
@Override public void exec(IdableSuggestion result) { currentSuggestion = result; KSSuggestBox.this.setText((currentSuggestion == null) ? "" : currentSuggestion.getReplacementString()); currentId = KSSuggestBox.this.getSelectedId(); callback.exec(currentSuggestion); } });
public void setValue(IdableSuggestion theSuggestion) { currentSuggestion = theSuggestion; SelectionChangeEvent.fire(KSSuggestBox.this); KSSuggestBox.this.setText((currentSuggestion == null) ? "" : currentSuggestion.getReplacementString()); currentId = KSSuggestBox.this.getSelectedId(); }
@Override public void onSelection(SelectionEvent<SuggestOracle.Suggestion> event) { currentSuggestion = (IdableSuggestion)(event.getSelectedItem()); getTextBox().setFocus(true); currentId = KSSuggestBox.this.getSelectedId(); SelectionChangeEvent.fire(KSSuggestBox.this); } });
public void setValue(String id, String translation) { currentSuggestion = new IdableSuggestion(); currentSuggestion.setId(id); currentSuggestion.setDisplayString(translation); currentSuggestion.setReplacementString(translation); KSSuggestBox.this.setText(translation); currentId = KSSuggestBox.this.getSelectedId(); }
if(!KSSuggestBox.this.getSelectedId().equals(currentId)){ currentId = KSSuggestBox.this.getSelectedId(); if(isEmpty){ currentId = "";
@Override public void setValue(String id) { if(id == null || id.equals("")){ currentSuggestion = new IdableSuggestion(); currentSuggestion.setId(""); currentSuggestion.setDisplayString(""); currentSuggestion.setReplacementString(""); currentId = KSSuggestBox.this.getSelectedId(); KSSuggestBox.this.setText(""); } else { oracle.getSuggestionByIdSearch(id, new Callback<IdableSuggestion>(){ @Override public void exec(IdableSuggestion result) { currentSuggestion = result; KSSuggestBox.this.setText((currentSuggestion == null) ? "" : currentSuggestion.getReplacementString()); currentId = KSSuggestBox.this.getSelectedId(); } }); } }
public void setValue(String id, final Callback<IdableSuggestion> callback) { if(id == null || id.equals("")){ currentSuggestion = new IdableSuggestion(); currentSuggestion.setId(""); currentSuggestion.setDisplayString(""); currentSuggestion.setReplacementString(""); KSSuggestBox.this.setText(""); currentId = KSSuggestBox.this.getSelectedId(); callback.exec(currentSuggestion); } else { oracle.getSuggestionByIdSearch(id, new Callback<IdableSuggestion>(){ @Override public void exec(IdableSuggestion result) { currentSuggestion = result; KSSuggestBox.this.setText((currentSuggestion == null) ? "" : currentSuggestion.getReplacementString()); currentId = KSSuggestBox.this.getSelectedId(); callback.exec(currentSuggestion); } }); } }
currentSuggestion.setReplacementString(""); KSSuggestBox.this.setText(""); currentId = KSSuggestBox.this.getSelectedId();