public class AutocompleteReferenceEditorChip extends ReferenceAttributeEditorChip implements ItemAcceptor, AjaxRequestHandler, AttributeTypeAware
| Modifier and Type | Field and Description |
|---|---|
static String |
AJAX_SEARCH |
static String |
AJAX_SELECT |
static String |
LIST_WIDTH |
static String |
RESULTATTRIBUTES |
static String |
SEARCHATTRIBUTES |
CLEAR, COPY, CREATABLE_KEY, CREATE, EDITABLE_KEY, OPEN_EDITOR, OPEN_EDITOR_INTERNAL, OPEN_SEARCH, PASTECUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AutocompleteReferenceEditorChip(DisplayState displayState,
Chip parent) |
AutocompleteReferenceEditorChip(DisplayState displayState,
Chip parent,
ComposedType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsMultipleSelection() |
Type |
getAttributeType() |
Operator |
getCondition()
Returns the condition to use for the item search.
|
String |
getDisplayValue() |
static String |
getEditorType() |
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.
|
int |
getListWidth() |
String |
getMatchesID()
Returns an ID which will be used for the dom element which contains the list of matches for this autocompleter.
|
protected String |
getProposedUniqueName() |
int |
getRange()
Returns the number of result list entries which should be shown by this autocompleter component.
|
protected List<String> |
getResultAttributes()
This method tries to extract comma-separated list of attribute qualifiers which have been configured in the
hmc.xml (using the parameter tag with 'resultattributes' as key name).
|
protected List<String> |
getSearchAttributes()
This method tries to extract comma-separated list of attribute qualifiers which have been configured in the
hmc.xml (using the parameter tag with 'searchattributes' as key name).
|
protected AutoCompleterResult |
getSearchResult(String searchParam) |
void |
processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
PrintWriter out,
Map requestParameters) |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
protected void |
select(String pk) |
void |
setAttributeType(Type type) |
void |
setListWidth(int listWidth) |
void |
setParameters(Map map)
Sets the parameters which where provided by the xml configuration.
|
void |
setRange(int range)
Sets the number of result list entries which should be shown by this autocompleter component.
|
void |
setSelectedItems(List items) |
addCreationPreset, addSearchPreset, canCreate, canPaste, getAssignableItemFromClipboard, getCreationPresets, getEditorNode, getItemType, getMenuEntries, getNoSelectionKey, getPresetSearchType, getSearchPresets, getSelectedItemAsString, hasItem, isAttributeTypeReadable, isAutoPerform, isCreatable, isElementReadable, isElementWriteable, isPartOf, isRefreshAfterSelect, openEditor, openEditor, setCreatable, setItemType, setNoSelectionKey, setPresetSearchType, setRefreshAfterSelect, setValueaddAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getHeight, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getValue, getWidth, isAjaxUpdatable, isChanged, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, setMaxLength, setOptional, setValidValue, setWidth, valuesAreDifferentaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, 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, translateFormFieldToEventValuepublic static final String LIST_WIDTH
public static final String AJAX_SELECT
public static final String AJAX_SEARCH
public static final String SEARCHATTRIBUTES
public static final String RESULTATTRIBUTES
public AutocompleteReferenceEditorChip(DisplayState displayState, Chip parent, ComposedType type)
public AutocompleteReferenceEditorChip(DisplayState displayState, Chip parent)
public String getJSPURI()
Chippublic boolean allowsMultipleSelection()
allowsMultipleSelection in interface ItemAcceptorpublic void setSelectedItems(List items)
setSelectedItems in interface ItemAcceptorpublic String getDisplayValue()
public final String getInputID()
public final String getMatchesID()
public void processEvents(Map events)
ChipprocessEvents in interface ChipprocessEvents in class ReferenceAttributeEditorChippublic void processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
PrintWriter out,
Map requestParameters)
processAjaxEvents in interface AjaxRequestHandlerprotected void select(String pk)
protected List<String> getSearchAttributes()
protected List<String> getResultAttributes()
protected AutoCompleterResult getSearchResult(String searchParam)
protected String getProposedUniqueName()
getProposedUniqueName in class AbstractAttributeEditorChippublic int getRange()
public Operator getCondition()
public void setRange(int range)
public static String getEditorType()
public Type getAttributeType()
getAttributeType in interface AttributeTypeAwarepublic void setAttributeType(Type type)
setAttributeType in interface AttributeTypeAwarepublic void setParameters(Map map)
AbstractAttributeEditorChipsetParameters in class ReferenceAttributeEditorChipmap - the parameters which where provided by the xml configuration.public int getListWidth()
public void setListWidth(int listWidth)
listWidth - the listWidth to setCopyright © 2017 SAP SE. All Rights Reserved.