/** * Returns the completer associated with this {@link InputComponent} or null if it is not available * * @param inputComponent * @return the {@link UICompleter} associated with this {@link InputComponent} or null if not available or the * {@link InputComponent} does not implement {@link HasCompleter} */ public static <VALUETYPE> UICompleter<VALUETYPE> getCompleterFor(InputComponent<?, VALUETYPE> inputComponent) { final UICompleter<VALUETYPE> result; if (inputComponent instanceof HasCompleter) { result = ((HasCompleter) inputComponent).getCompleter(); } else { result = null; } return result; }
UICompleter completer = hasCompleter.getCompleter(); if (completer != null) { String textValue = inputValue != null ? inputValue.toString() : "";
UICompleter<Object> completer = hasCompleter.getCompleter(); if (completer != null)