class DropDownEditor implements IsWidget, LeafAttributeEditor<String> {

    public void getDropDownEntries(String pattern, int maxResults, LiveSearchCallback callback) {
        final LiveSearchResults results = new LiveSearchResults();
        entries.stream()
                .filter(e -> e.getHint().contains(pattern))
                .forEach(e -> results.add(e.getValue(), e.getHint()));
        callback.afterSearch(results);
    }

    @Inject public  DropDownEditor(final View view,
                          final LiveSearchDropDown dropDown,
                          final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent);

}