public class AutocompleteReferenceEditorChip extends ReferenceAttributeEditorChip implements ItemAcceptor, AjaxRequestHandler, AttributeTypeAware
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AJAX_SEARCH |
static java.lang.String |
AJAX_SELECT |
static java.lang.String |
LIST_WIDTH |
static java.lang.String |
RESULTATTRIBUTES |
static java.lang.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.
|
java.lang.String |
getDisplayValue() |
static java.lang.String |
getEditorType() |
java.lang.String |
getInputID()
Returns an ID which will be used for the dom element which is the input field for this autocompleter.
|
java.lang.String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
int |
getListWidth() |
java.lang.String |
getMatchesID()
Returns an ID which will be used for the dom element which contains the list of matches for this autocompleter.
|
protected java.lang.String |
getProposedUniqueName() |
int |
getRange()
Returns the number of result list entries which should be shown by this autocompleter component.
|
protected java.util.List<java.lang.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 java.util.List<java.lang.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(java.lang.String searchParam) |
void |
processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
java.io.PrintWriter out,
java.util.Map requestParameters) |
void |
processEvents(java.util.Map events)
Handles all incoming requests for this chip.
|
protected void |
select(java.lang.String pk) |
void |
setAttributeType(Type type) |
void |
setListWidth(int listWidth) |
void |
setParameters(java.util.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(java.util.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 java.lang.String LIST_WIDTH
public static final java.lang.String AJAX_SELECT
public static final java.lang.String AJAX_SEARCH
public static final java.lang.String SEARCHATTRIBUTES
public static final java.lang.String RESULTATTRIBUTES
public AutocompleteReferenceEditorChip(DisplayState displayState, Chip parent, ComposedType type)
public AutocompleteReferenceEditorChip(DisplayState displayState, Chip parent)
public java.lang.String getJSPURI()
Chippublic boolean allowsMultipleSelection()
allowsMultipleSelection in interface ItemAcceptorpublic void setSelectedItems(java.util.List items)
setSelectedItems in interface ItemAcceptorpublic java.lang.String getDisplayValue()
public final java.lang.String getInputID()
public final java.lang.String getMatchesID()
public void processEvents(java.util.Map events)
ChipprocessEvents in interface ChipprocessEvents in class ReferenceAttributeEditorChippublic void processAjaxEvents(HttpServletRequest request,
HttpServletResponse response,
java.io.PrintWriter out,
java.util.Map requestParameters)
processAjaxEvents in interface AjaxRequestHandlerprotected void select(java.lang.String pk)
protected java.util.List<java.lang.String> getSearchAttributes()
protected java.util.List<java.lang.String> getResultAttributes()
protected AutoCompleterResult getSearchResult(java.lang.String searchParam)
protected java.lang.String getProposedUniqueName()
getProposedUniqueName in class AbstractAttributeEditorChippublic int getRange()
public Operator getCondition()
public void setRange(int range)
public static java.lang.String getEditorType()
public Type getAttributeType()
getAttributeType in interface AttributeTypeAwarepublic void setAttributeType(Type type)
setAttributeType in interface AttributeTypeAwarepublic void setParameters(java.util.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.