public class AbstractGenericConditionalSearchToolbarChip extends AbstractToolbarChip implements ComposedTypeChangeListener, ItemCreationListener
AbstractToolbarChip| Modifier and Type | Field and Description |
|---|---|
static String |
SELECT_SAVEDQUERY |
extensionToolbarActionChips, TOOLBAR_TYPE_DEFAULT, TOOLBAR_TYPE_EDITOR, TOOLBAR_TYPE_FOOTER, TOOLBAR_TYPE_MAIN, TOOLBAR_TYPE_SECTION, toolbarActionChips, URICHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AbstractGenericConditionalSearchToolbarChip(DisplayState displayState,
Chip parent,
ComposedType type,
TypedChip typedChip) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
advancedSearchEnabled() |
void |
composedTypeChanged(ComposedTypeChangeEvent event)
Notifies this chip of a search type change so that the savedquery dropdown menu can be rebuilt.
|
boolean |
containsSavedQueries() |
protected AbstractToolbarActionChip |
createSavedQueryDropDownMenu() |
void |
enableAdvancedSearch(boolean enable) |
AttributeSelectToolbarActionChip |
getAttributeSelector()
Returns the AttributSelectToolbarActionChip contained in this toolbar.
|
ComposedType |
getListeningType()
Should return the
ComposedType for which instance creation this listener wants to be notified. |
protected AbstractToolbarActionChip |
getSavedQueryDropDownMenu() |
SavedQuerySelectToolbarActionChip |
getSavedQuerySelector()
Returns the SavedQuerySelectToolbarActionChip contained in this toolbar.
|
protected AbstractGenericConditionalSearchChip |
getSearchChip() |
ComposedType |
getSearchType() |
protected ComposedType |
getType() |
TypeSelectToolbarActionChip |
getTypeSelector()
Returns the TypeSelectToolbarActionChip contained in this toolbar.
|
protected void |
initialize() |
boolean |
isModalSearch() |
void |
itemCreated(ItemCreationEvent event)
Is called if an item of the given
listening type has been created. |
void |
setAttributeSelector(AttributeSelectToolbarActionChip chip)
Sets the AttributeSelectToolbarActionChip of this toolbar.
|
protected void |
setSavedQueryDropDownMenu(AbstractToolbarActionChip savedQueryDropDownMenu) |
void |
setSavedQuerySelector(SavedQuerySelectToolbarActionChip chip)
Sets the SavedQuerySelectToolbarActionChip of this toolbar.
|
protected void |
setType(ComposedType type)
Set the item type of this toolbar.
|
void |
setTypeSelector(TypeSelectToolbarActionChip chip)
Sets the TypeSelectToolbarActionChip of this toolbar.
|
addCoreActionChip, addCoreActionChip, addDivider, addDivider, addToolbarAction, checkValid, filterToolbarActionChips, getBackgroundColor, getCoreToolbarActionChips, getEditorToolbarActionChips, getExtensionToolbarActionChips, getJSPURI, getToolbarActionChips, getToolbarType, hasBackgroundColor, hasCorners, isEmpty, isInitialized, isPartOf, processEvents, removeCoreActionChip, removeExtensionActionChip, removeToolbarAction, setBackgroundColor, setCorners, setPartOf, setToolbarTypeaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, 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 SELECT_SAVEDQUERY
public AbstractGenericConditionalSearchToolbarChip(DisplayState displayState, Chip parent, ComposedType type, TypedChip typedChip)
public void enableAdvancedSearch(boolean enable)
enable - public boolean advancedSearchEnabled()
protected void initialize()
initialize in class AbstractToolbarChipprotected AbstractGenericConditionalSearchChip getSearchChip()
protected AbstractToolbarActionChip createSavedQueryDropDownMenu()
protected ComposedType getType()
protected void setType(ComposedType type)
type - item type of this toolbarpublic AttributeSelectToolbarActionChip getAttributeSelector()
public void setAttributeSelector(AttributeSelectToolbarActionChip chip)
chip - attribute selector of this toolbarpublic TypeSelectToolbarActionChip getTypeSelector()
public void setTypeSelector(TypeSelectToolbarActionChip chip)
chip - attribute selector of this toolbarpublic SavedQuerySelectToolbarActionChip getSavedQuerySelector()
public boolean containsSavedQueries()
public void setSavedQuerySelector(SavedQuerySelectToolbarActionChip chip)
chip - savedquery selector of this toolbarpublic ComposedType getSearchType()
public boolean isModalSearch()
protected AbstractToolbarActionChip getSavedQueryDropDownMenu()
protected void setSavedQueryDropDownMenu(AbstractToolbarActionChip savedQueryDropDownMenu)
public void composedTypeChanged(ComposedTypeChangeEvent event)
composedTypeChanged in interface ComposedTypeChangeListenerComposedTypeChangeListener.composedTypeChanged(de.hybris.platform.hmc.generic.ComposedTypeChangeEvent)public 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()public void itemCreated(ItemCreationEvent event)
ItemCreationListenerlistening type has been created.itemCreated in interface ItemCreationListenerevent - the ItemCreationEvent referencing the new itemCopyright © 2017 SAP SE. All Rights Reserved.