public class GenericItemSearchListChip extends GenericItemListChip
| Modifier and Type | Field and Description |
|---|---|
static String |
FIRST_PAGE |
static String |
ITEMS_PER_PAGE |
static String |
LAST_PAGE |
protected int |
maxDisplayEntryHeight |
static String |
NEXT_PAGE |
static String |
PREVIOUS_PAGE |
static String |
RANGESTART |
static String |
REFRESH |
static String |
SEARCHRESULTACTION |
static String |
SORT |
static 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 Comparator |
getComparator() |
String |
getConditionsAsString() |
int |
getHeightDiff() |
int |
getItemCount() |
protected int |
getItemsPerPageAsInt(String itemsPerPage) |
protected static String |
getItemsPerPageDefault() |
protected static List |
getItemsPerPageList() |
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.
|
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 String |
getProposedUniqueName() |
int |
getRangeStart() |
protected Restrictor |
getRestrictor() |
AbstractSearchContainer |
getSearchContainer() |
int |
getSearchCount() |
protected SearchResultActionChip |
getSearchResultActionChipByName(String name) |
protected List |
getSearchResultActionChips() |
List |
getSelectedListEntries() |
String |
getSortAttributeQualifier() |
protected String |
getSortDirection() |
String |
getSortOrderIdentifier() |
String |
getTypeName() |
boolean |
hasComparator() |
boolean |
isExpanded() |
boolean |
isNewSearch() |
boolean |
isSortable(String qualifier)
Will return true if the AttributeDescriptor with the given qualifier is searchable and no comparator is used.
|
void |
processEvents(Map<String,List<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(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(String qualifier)
Sets the
qualifier of the AttributeDescriptor which should be
used for sorting the found items. |
protected void |
setSortDirection(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 String RANGESTART
public static final String SORT
public static final String ITEMS_PER_PAGE
public static final String REFRESH
public static final String FIRST_PAGE
public static final String PREVIOUS_PAGE
public static final String NEXT_PAGE
public static final String LAST_PAGE
public static final String TOGGLE
public static final String SEARCHRESULTACTION
protected int maxDisplayEntryHeight
public GenericItemSearchListChip(DisplayState displayState, Chip parent, ComposedType type)
public GenericItemSearchListChip(DisplayState displayState, Chip parent, AbstractSearchContainer container)
protected List getSearchResultActionChips()
protected SearchResultActionChip getSearchResultActionChipByName(String name)
public 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(Map<String,List<String>> events)
ChipprocessEvents in interface ChipprocessEvents in class GenericItemListChippublic int getItemCount()
public String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class GenericItemListChippublic boolean isNewSearch()
public boolean canRemove()
canRemove in class GenericItemListChippublic boolean canCreate()
canCreate in class GenericItemListChippublic List getSelectedListEntries()
getSelectedListEntries in class ListChipprotected void switchSortDirection()
GenericSearchConstants.ORDER_BY.DIREC.ASC and
GenericSearchConstants.ORDER_BY.DIREC.DESC.protected String getSortDirection()
GenericSearchConstants.ORDER_BY.DIREC.ASC or
GenericSearchConstants.ORDER_BY.DIREC.DESC.protected void setSortDirection(String direction)
direction - The sort direction.protected void setSortAttributeQualifier(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 String getSortAttributeQualifier()
qualifier of the AttributeDescriptor which should
be used for sorting the found items. It has to be part of ItemListChip.getHeaderQualifiers().public String getTypeName()
public String getConditionsAsString()
public void setComparator(Comparator comparator)
protected Comparator getComparator()
public void setRestrictor(Restrictor restrictor)
protected Restrictor getRestrictor()
public boolean hasComparator()
public boolean isSortable(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 List getItemsPerPageList()
protected static String getItemsPerPageDefault()
protected int getItemsPerPageAsInt(String itemsPerPage)
public int getSearchCount()
public int getHeightDiff()
public List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class GenericItemListChipAbstractChip.getMenuEntries()protected 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.