public abstract class AbstractAutocompleterToolbarActionChip extends AbstractToolbarActionChip implements AjaxRequestHandler
AbstractToolbarActionChip.ToolbarActionListener| Modifier and Type | Field and Description |
|---|---|
static String |
SEARCH |
static String |
SELECT |
static String |
VALUE |
accepted, ALIGN_LEFT, ALIGN_RIGHT, PERFORMCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AbstractAutocompleterToolbarActionChip(AbstractToolbarChip parent,
String label) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
entrySelectedByAjax(String value)
Must be implemented by extending class.
|
protected abstract void |
entrySelectedByRequest(String value)
Must be implemented by extending class.
|
Set |
getAcceptedEvents() |
String |
getInputID()
Returns an ID which will be used for the dom element which is the input field for this autocompleter.
|
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getMatchesID()
Returns an ID which will be used for the dom element which contains the list of matches for this autocompleter.
|
int |
getRange()
Returns the number of result list entries which should be shown by this autocompleter component.
|
String |
getValue() |
void |
processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
PrintWriter out,
Map requestParameters) |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
protected abstract AutoCompleterResult |
search(String searchParam)
Must be implemented by extending class.
|
void |
setRange(int range)
Sets the number of result list entries which should be shown by this autocompleter component.
|
void |
setValue(String value) |
addActionListener, getAccessKey, getAlignment, getConfirmationMessage, getEvent, getJavaScript, getLabel, getProposedUniqueName, getToolbarType, getTooltip, getWidth, isEnabled, isPartOf, isVisible, notifyActionPerformed, perform, removeActionListener, setAccessKey, setAlignment, setConfirmationMessage, setEnabled, setEvent, setJavaScript, setLabel, setShowLabel, setTooltip, setVisible, setWidth, showLabeladdEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, checkValid, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getMenuEntries, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String SEARCH
public static final String SELECT
public static final String VALUE
public AbstractAutocompleterToolbarActionChip(AbstractToolbarChip parent, String label)
protected abstract AutoCompleterResult search(String searchParam)
AutoCompleterResult) based on the given search parameter. In the
resulting AutoCompleterResult you should provide a String value for every result entry which is unique. This value
will not be shown in the component but will be used to trigger the entrySelectedByAjax(String) callback.
Exactly how the provided string values are matched to the objects you want to be selected, is up to you. But in
case you are using the autocompleter to choose from a list of Items then you
would obviously want to use the respective item's pk, as it is the easiest way to find the item after it has been
selected.protected abstract void entrySelectedByAjax(String value)
AutoCompleterResult entry (see search(String)).protected abstract void entrySelectedByRequest(String value)
AutoCompleterResult entry (see search(String)).public String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class AbstractToolbarActionChippublic void processEvents(Map events)
ChipprocessEvents in interface ChipprocessEvents in class AbstractToolbarActionChippublic void processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
PrintWriter out,
Map requestParameters)
processAjaxEvents in interface AjaxRequestHandlerpublic final String getInputID()
public final String getMatchesID()
public int getRange()
public void setRange(int range)
public Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChipgetAcceptedEvents in class AbstractToolbarActionChippublic String getValue()
public void setValue(String value)
Copyright © 2017 SAP SE. All Rights Reserved.