public class EnumerationValueSelectEditorChip extends SelectLayoutChip implements LanguageChangeListener, ItemCreationListener
EnumerationValue.| Modifier and Type | Field and Description |
|---|---|
static String |
OPEN_TYPE |
HIDE_NULL, noSelectionKey, SET_VALUECUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
EnumerationValueSelectEditorChip(DisplayState displayState,
Chip parent,
ComposedType enumerationType) |
EnumerationValueSelectEditorChip(DisplayState displayState,
Chip parent,
ComposedType enumerationType,
List initialValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canOpenType() |
protected void |
checkForSorting() |
protected List<EnumerationValue> |
createValues() |
protected List |
getAllValues()
When implementing this method, make sure that you use reasonable local caching for your values.
|
protected Comparator |
getComparator() |
static String |
getEditorType() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
ComposedType |
getListeningType()
Should return the
ComposedType for which instance creation this listener wants to be notified. |
List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
boolean |
isShowOpenType() |
void |
itemCreated(ItemCreationEvent event)
Is called if an item of the given
listening type has been created. |
void |
languageChanged(LanguageChangeEvent event)
Is called when the session language has been changed to reset the value list.
|
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
protected void |
setComparator(Comparator comparator) |
void |
setShowOpenType(boolean showOpenType) |
protected String |
toString(Object value)
Returns the given value as String.
|
getCount, getHeight, getNoSelectionText, getSize, getStringValue, isAjaxUpdatable, isHideNull, isLocalized, isSelected, setHideNull, setLocalized, setNoSelectionKey, setParameters, setSize, setSubmitForm, setValue, submitFormaddAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getValue, getWidth, isChanged, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, setMaxLength, setOptional, setValidValue, setValue, 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 OPEN_TYPE
public EnumerationValueSelectEditorChip(DisplayState displayState, Chip parent, ComposedType enumerationType)
public EnumerationValueSelectEditorChip(DisplayState displayState, Chip parent, ComposedType enumerationType, List initialValue)
protected void checkForSorting()
public void processEvents(Map events)
ChipprocessEvents in interface ChipprocessEvents in class SelectLayoutChipprotected List getAllValues()
SelectLayoutChipgetAllValues in class SelectLayoutChipprotected List<EnumerationValue> createValues()
protected String toString(Object value)
SelectLayoutChiptoString in class SelectLayoutChippublic boolean canOpenType()
public String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class SelectLayoutChippublic static String getEditorType()
public boolean isShowOpenType()
public void setShowOpenType(boolean showOpenType)
public List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class AbstractChipAbstractChip.getMenuEntries()public void languageChanged(LanguageChangeEvent event)
languageChanged in interface LanguageChangeListenerLanguageChangeListener.languageChanged(de.hybris.platform.hmc.webchips.event.LanguageChangeEvent)protected Comparator getComparator()
protected void setComparator(Comparator comparator)
public void itemCreated(ItemCreationEvent event)
ItemCreationListenerlistening type has been created.itemCreated in interface ItemCreationListenerevent - the ItemCreationEvent referencing the new itempublic ComposedType getListeningType()
ItemCreationListenerComposedType for which instance creation this listener wants to be notified. If null is
returned, this listener will be notified of all item creation action (within the session).getListeningType in interface ItemCreationListenerItemCreationListener.getListeningType()Copyright © 2017 SAP SE. All Rights Reserved.