public class AttributeSelectToolbarActionChip extends AbstractSelectToolbarActionChip implements ComposedTypeChangeListener
AbstractSelectToolbarActionChip| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeSelectToolbarActionChip.AttributeEntryComparator
In addition to the default entry comparator (see
AbstractSelectToolbarActionChip.EntryComparator) this
comparator ensures that the "add attribute" message (see ADD_ATTRIBUTE)
is always on top of the list. |
AbstractSelectToolbarActionChip.Entry, AbstractSelectToolbarActionChip.EntryComparatorAbstractToolbarActionChip.ToolbarActionListener| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_ATTRIBUTE |
URIaccepted, ALIGN_LEFT, ALIGN_RIGHT, PERFORMCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AttributeSelectToolbarActionChip(DisplayState displayState,
AbstractToolbarChip parent,
String label,
String event,
String javascript,
ComposedType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
composedTypeChanged(ComposedTypeChangeEvent event)
Notifies this chip of a search type change.
|
protected List |
createEntries()
Takes the attributeDescriptors and creates the appropriate select entries for this selector.
|
AbstractSelectToolbarActionChip.Entry |
getAddMessageEntry() |
protected String |
getProposedUniqueName() |
AttributeDescriptor |
getSelectedAttributeDescriptor()
Returns the AttributeDescriptor which is currently selected.
|
protected ComposedType |
getType()
Returns the composedtype of this attribute selector.
|
boolean |
hasDescriptor(String qualifier,
Type attributeType)
Returns whether or not the given descriptor is contained in this attribute selector.
|
void |
setSelectedEntry(AbstractSelectToolbarActionChip.Entry entry)
Set the currently selected Entry.
|
void |
setType(ComposedType type)
Set the type for this attribute selector.
|
String |
toString(AttributeDescriptor descriptor)
Returns a string representation of the given AttributeDescriptor.
|
assureUniqueDisplayValues, containsDisplayValue, containsValue, getComparator, getDefaultSelectedEntry, getEntries, getEntryByDisplayValue, getEntryByValue, getJSPURI, getSelectedEntry, getSelectedValue, isButtonPushed, isCommandAction, isEmpty, isEnabled, isSelected, isSelected, processEvents, resetEntries, setCommandAction, setComparator, setSelectedEntryByDisplayValue, setSelectedValue, setUseComparator, useComparatoraddActionListener, getAcceptedEvents, getAccessKey, getAlignment, getConfirmationMessage, getEvent, getJavaScript, getLabel, getToolbarType, getTooltip, getWidth, 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, 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 ADD_ATTRIBUTE
public AttributeSelectToolbarActionChip(DisplayState displayState, AbstractToolbarChip parent, String label, String event, String javascript, ComposedType type)
public void setSelectedEntry(AbstractSelectToolbarActionChip.Entry entry)
AbstractSelectToolbarActionChipsetSelectedEntry in class AbstractSelectToolbarActionChippublic void setType(ComposedType type)
type - the new Type of this selectorprotected ComposedType getType()
protected List createEntries()
createEntries in class AbstractSelectToolbarActionChippublic boolean hasDescriptor(String qualifier, Type attributeType)
qualifier - the name of the attributedescriptor to look forpublic String toString(AttributeDescriptor descriptor)
descriptor - AttributeDescriptor for which to retrieve the string representationpublic AttributeDescriptor getSelectedAttributeDescriptor()
public final AbstractSelectToolbarActionChip.Entry getAddMessageEntry()
protected String getProposedUniqueName()
getProposedUniqueName in class AbstractToolbarActionChippublic void composedTypeChanged(ComposedTypeChangeEvent event)
composedTypeChanged in interface ComposedTypeChangeListenerComposedTypeChangeListener.composedTypeChanged(de.hybris.platform.hmc.generic.ComposedTypeChangeEvent)Copyright © 2017 SAP SE. All Rights Reserved.