public class GenericItemSearchListChip extends GenericItemListChip
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIRST_PAGE |
static java.lang.String |
ITEMS_PER_PAGE |
static java.lang.String |
LAST_PAGE |
protected int |
maxDisplayEntryHeight |
static java.lang.String |
NEXT_PAGE |
static java.lang.String |
PREVIOUS_PAGE |
static java.lang.String |
RANGESTART |
static java.lang.String |
REFRESH |
static java.lang.String |
SEARCHRESULTACTION |
static java.lang.String |
SORT |
static java.lang.String |
TOGGLE |
ADD, COPY_EVENT, CREATE, DELETE_ICON, DELETE_NEW_ENTRY, LOG, OPEN_EDITOR, OPEN_EDITOR_EXTERNAL, OPEN_EDITOR_INTERNAL, REMOVE, SELECT_ALL, SELECT_VISIBLECHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
GenericItemSearchListChip(DisplayState displayState,
Chip parent,
AbstractSearchContainer container) |
GenericItemSearchListChip(DisplayState displayState,
Chip parent,
ComposedType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreate() |
boolean |
canRemove() |
AbstractToolbarChip |
createToolbar() |
AdditionalColumnProvider |
getAdditionalColumnProvider()
Gets the additional column provider or null.
|
protected java.util.Comparator |
getComparator() |
java.lang.String |
getConditionsAsString() |
int |
getHeightDiff() |
int |
getItemCount() |
protected int |
getItemsPerPageAsInt(java.lang.String itemsPerPage) |
protected static java.lang.String |
getItemsPerPageDefault() |
protected static java.util.List |
getItemsPerPageList() |
java.lang.String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
int |
getMaxEntryHeight()
Returns the maximum height (in pixels) of a list entry.
|
int |
getMaxItemsPerPage() |
int |
getMaxItemsPerPageDefault() |
int |
getMaxListHeight()
Returns the maximum result list size (in pixels) based on the presumed height of all list elements.
|
java.util.List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
int |
getMinListHeight()
Returns the minimum result list size (in pixels) based on the config property hmc.resultlist.minheight and/or the
presumed height of three list elements (whichever is higher).
|
protected java.lang.String |
getProposedUniqueName() |
int |
getRangeStart() |
protected Restrictor |
getRestrictor() |
AbstractSearchContainer |
getSearchContainer() |
int |
getSearchCount() |
protected SearchResultActionChip |
getSearchResultActionChipByName(java.lang.String name) |
protected java.util.List |
getSearchResultActionChips() |
java.util.List |
getSelectedListEntries() |
java.lang.String |
getSortAttributeQualifier() |
protected java.lang.String |
getSortDirection() |
java.lang.String |
getSortOrderIdentifier() |
java.lang.String |
getTypeName() |
boolean |
hasComparator() |
boolean |
isExpanded() |
boolean |
isNewSearch() |
boolean |
isSortable(java.lang.String qualifier)
Will return true if the AttributeDescriptor with the given qualifier is searchable and no comparator is used.
|
void |
processEvents(java.util.Map<java.lang.String,java.util.List<java.lang.String>> events)
Handles all incoming requests for this chip.
|
void |
setAdditionalColumnProvider(AdditionalColumnProvider provider)
Sets an column provider whose column will be added before each list entry.
|
void |
setComparator(java.util.Comparator comparator) |
protected void |
setExpanded(boolean expanded) |
void |
setMaxItemsPerPage(int value) |
void |
setRangeStart(int value) |
void |
setRestrictor(Restrictor restrictor) |
void |
setSearchContainer(AbstractSearchContainer searchContainer)
Set the SearchContainer for the SearchListChip.
|
protected void |
setSortAttributeQualifier(java.lang.String qualifier)
Sets the
qualifier of the AttributeDescriptor which should be
used for sorting the found items. |
protected void |
setSortDirection(java.lang.String direction) |
protected void |
switchSortDirection()
Switches between
GenericSearchConstants.ORDER_BY.DIREC.ASC and
GenericSearchConstants.ORDER_BY.DIREC.DESC. |
boolean |
update() |
addCreationPreset, addSearchPreset, allowsMultipleSelection, canAdd, canPaste, clearListEntries, clearSelectedListEntries, createListEntryChip, createNewItemEntry, createNewItemEntry, entriesEditable, getAssignableItemsFromClipboard, getCreationPresetQualifiers, getCreationPresets, getEditorNode, getElementTypes, getEntry, getEntryForItem, getIndexOf, getItemNotValidErrorMessage, getMaxCount, getMode, getNewItemEntry, getPresetAttributeName, getPresetSearchType, getRestrictedListEntries, getSearchEditor, getSearchPresets, getVisibleQualifiers, getWidth, isAllSelected, isAutoPerform, isAutoPerform, isAutoSave, isChanged, isConsiderSubtypes, isEditable, isExternalCreate, isExternalCreate, isMarkedAsMandatory, isPartOfAttribute, isProhibitOpening, isSelectVisible, mandatoryNotAccessible, mandatoryNotAccessible, notifyAttributeValueChange, openEditor, openEditor, refreshEntries, save, saveNewItemEntry, setAutoPerform, setAutoSave, setCanAdd, setCanRemove, setConsiderSubtypes, setCreate, setElementType, setElementTypes, setEntriesEditable, setExternalCreate, setMaxCount, setNewItemEntry, setPresetAttributeName, setPresetSearchType, setProhibitOpening, setSearchEditor, setSelectedItems, setSelectVisible, setWidth, showSearchEditor, subTypesVisiblecheckValid, getAttributeNodes, getAttributeWidths, getChildNodes, getHeaderCount, getHeaderQualifiers, getItemLayoutNode, getItemType, getTitle, getToolbar, hasFancyRows, setItemLayoutNode, setItemTypeaddListEntry, addSelectedListEntries, addSelectedListEntry, getListEntries, getListEntryCount, getPosition, getSelectedListEntryCount, isListEntrySelected, isMultipleSelectionAllowed, moveDown, moveUp, removeListEntry, setFancyRows, setMultipleSelection, setMultipleSelectionAllowed, sort, sortaddEventListener, 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, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final java.lang.String RANGESTART
public static final java.lang.String SORT
public static final java.lang.String ITEMS_PER_PAGE
public static final java.lang.String REFRESH
public static final java.lang.String FIRST_PAGE
public static final java.lang.String PREVIOUS_PAGE
public static final java.lang.String NEXT_PAGE
public static final java.lang.String LAST_PAGE
public static final java.lang.String TOGGLE
public static final java.lang.String SEARCHRESULTACTION
protected int maxDisplayEntryHeight
public GenericItemSearchListChip(DisplayState displayState, Chip parent, ComposedType type)
public GenericItemSearchListChip(DisplayState displayState, Chip parent, AbstractSearchContainer container)
protected java.util.List getSearchResultActionChips()
protected SearchResultActionChip getSearchResultActionChipByName(java.lang.String name)
public java.lang.String getSortOrderIdentifier()
public boolean update()
public int getMaxItemsPerPage()
public int getRangeStart()
public void setMaxItemsPerPage(int value)
public void setRangeStart(int value)
public int getMaxItemsPerPageDefault()
public void processEvents(java.util.Map<java.lang.String,java.util.List<java.lang.String>> events)
ChipprocessEvents in interface ChipprocessEvents in class GenericItemListChippublic int getItemCount()
public java.lang.String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class GenericItemListChippublic boolean isNewSearch()
public boolean canRemove()
canRemove in class GenericItemListChippublic boolean canCreate()
canCreate in class GenericItemListChippublic java.util.List getSelectedListEntries()
getSelectedListEntries in class ListChipprotected void switchSortDirection()
GenericSearchConstants.ORDER_BY.DIREC.ASC and
GenericSearchConstants.ORDER_BY.DIREC.DESC.protected java.lang.String getSortDirection()
GenericSearchConstants.ORDER_BY.DIREC.ASC or
GenericSearchConstants.ORDER_BY.DIREC.DESC.protected void setSortDirection(java.lang.String direction)
direction - The sort direction.protected void setSortAttributeQualifier(java.lang.String qualifier)
qualifier of the AttributeDescriptor which should be
used for sorting the found items.qualifier - It has to be part of ItemListChip.getHeaderQualifiers().public java.lang.String getSortAttributeQualifier()
qualifier of the AttributeDescriptor which should
be used for sorting the found items. It has to be part of ItemListChip.getHeaderQualifiers().public java.lang.String getTypeName()
public java.lang.String getConditionsAsString()
public void setComparator(java.util.Comparator comparator)
protected java.util.Comparator getComparator()
public void setRestrictor(Restrictor restrictor)
protected Restrictor getRestrictor()
public boolean hasComparator()
public boolean isSortable(java.lang.String qualifier)
public AbstractToolbarChip createToolbar()
createToolbar in interface ToolbarProvidercreateToolbar in class GenericItemListChippublic AbstractSearchContainer getSearchContainer()
public void setSearchContainer(AbstractSearchContainer searchContainer)
searchContainer - public int getMaxEntryHeight()
public int getMinListHeight()
public int getMaxListHeight()
protected static java.util.List getItemsPerPageList()
protected static java.lang.String getItemsPerPageDefault()
protected int getItemsPerPageAsInt(java.lang.String itemsPerPage)
public int getSearchCount()
public int getHeightDiff()
public java.util.List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class GenericItemListChipAbstractChip.getMenuEntries()protected java.lang.String getProposedUniqueName()
getProposedUniqueName in class AbstractChippublic boolean isExpanded()
TRUE) displaying the whole table or in
collapsed mode (FALSE) displaying only the header.protected void setExpanded(boolean expanded)
expanded - If the editor is in the expanded view mode (TRUE) displaying the whole table or in
collapsed mode (FALSE) displaying only the header.public void setAdditionalColumnProvider(AdditionalColumnProvider provider)
provider - provider of the additional columnpublic AdditionalColumnProvider getAdditionalColumnProvider()
Copyright © 2017 SAP SE. All Rights Reserved.