@Override public String resolveWidgetVar() { return ComponentUtils.resolveWidgetVar(getFacesContext(), this); } }
public String getWidgetVar() { return (String) getStateHelper().eval(PropertyKeys.widgetVar, null); }
public AutoCompleteBase() { setRendererType(DEFAULT_RENDERER); }
SelectEvent selectEvent = new SelectEvent(this, ajaxBehaviorEvent.getBehavior(), selectedItemValue); selectEvent.setPhaseId(ajaxBehaviorEvent.getPhaseId()); super.queueEvent(selectEvent); UnselectEvent unselectEvent = new UnselectEvent(this, ajaxBehaviorEvent.getBehavior(), unselectedItemValue); unselectEvent.setPhaseId(ajaxBehaviorEvent.getPhaseId()); super.queueEvent(unselectEvent); super.queueEvent(ajaxBehaviorEvent); super.queueEvent(event); super.queueEvent(event);
@Override public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException { super.broadcast(event); FacesContext facesContext = getFacesContext(); MethodExpression me = getCompleteMethod(); if (me != null && event instanceof org.primefaces.event.AutoCompleteEvent) { suggestions = (List) me.invoke(facesContext.getELContext(), new Object[]{((org.primefaces.event.AutoCompleteEvent) event).getQuery()}); if (suggestions == null) { suggestions = new ArrayList(); } facesContext.renderResponse(); } }
public void setMaxResults(int maxResults) { getStateHelper().put(PropertyKeys.maxResults, maxResults); }
public void setMinQueryLength(int minQueryLength) { getStateHelper().put(PropertyKeys.minQueryLength, minQueryLength); }
public int getScrollHeight() { return (Integer) getStateHelper().eval(PropertyKeys.scrollHeight, Integer.MAX_VALUE); }
public String getItemtipAtPosition() { return (String) getStateHelper().eval(PropertyKeys.itemtipAtPosition, null); }
public String getResultsMessage() { return (String) getStateHelper().eval(PropertyKeys.resultsMessage, null); }
public String getDropdownMode() { return (String) getStateHelper().eval(PropertyKeys.dropdownMode, null); }
public void setAutoHighlight(boolean autoHighlight) { getStateHelper().put(PropertyKeys.autoHighlight, autoHighlight); }
public void setInputStyle(String inputStyle) { getStateHelper().put(PropertyKeys.inputStyle, inputStyle); }
public void setAt(String at) { getStateHelper().put(PropertyKeys.at, at); }
public void setActive(boolean active) { getStateHelper().put(PropertyKeys.active, active); }
public void setType(String type) { getStateHelper().put(PropertyKeys.type, type); }
public void setUnique(boolean unique) { getStateHelper().put(PropertyKeys.unique, unique); }
public void setPlaceholder(String placeholder) { getStateHelper().put(PropertyKeys.placeholder, placeholder); }
public String getItemLabel() { return (String) getStateHelper().eval(PropertyKeys.itemLabel, null); }
public int getQueryDelay() { return (Integer) getStateHelper().eval(PropertyKeys.queryDelay, 300); }