public abstract class SearchListChip extends ListChip
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD
Command string for adding a new item.
|
static String |
DELETE
Command string for deleting the selected items.
|
static int |
MAXITEMSPERPAGE
The size of the viewable range of all found items.
|
static String |
RANGESTART
The initial index of the first element in the viewable range of all found items.
|
static String |
SEARCH
Command string for starting a new search.
|
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
SearchListChip(DisplayState displayState,
Chip parent) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addItem()
Adds exactly one item and opens the editor.
|
abstract boolean |
canCreate() |
abstract boolean |
canRemove() |
void |
clearSearch()
Remove all listentries, set rangestart and itemcount to null and newsearch to true.
|
protected abstract void |
deleteSelected()
Removes the selected items (
ListChip.getSelectedListEntries()) from
database. |
int |
getItemCount() |
int |
getMaxItemsPerPage() |
int |
getRangeStart() |
String |
getTitle() |
boolean |
isNewSearch()
This is to differentiate between a new search and a search without results.
|
void |
processEvents(Map<String,List<String>> events)
Handles all incoming requests for this chip.
|
protected abstract int |
search()
Adds the ListEntries that represent the Items found during the search.
|
void |
searchWithRangeStart(int start)
Sets the index of the first element in the viewable range of all found items, clear the list of listentries of the
former search, call search() and set itemcount accordingly.
|
addListEntry, addSelectedListEntries, addSelectedListEntry, checkValid, clearListEntries, clearSelectedListEntries, getItemNotValidErrorMessage, getListEntries, getListEntryCount, getPosition, getSelectedListEntries, getSelectedListEntryCount, hasFancyRows, 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, 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 int MAXITEMSPERPAGE
public static final String RANGESTART
public static final String ADD
public static final String DELETE
public static final String SEARCH
public SearchListChip(DisplayState displayState, Chip parent)
public void processEvents(Map<String,List<String>> events)
ChipprocessEvents in interface ChipprocessEvents in class ListChippublic final void searchWithRangeStart(int start)
public final void clearSearch()
protected abstract int search()
protected abstract void deleteSelected()
ListChip.getSelectedListEntries()) from
database.protected abstract void addItem()
public int getMaxItemsPerPage()
public final int getRangeStart()
public int getItemCount()
public boolean isNewSearch()
public abstract boolean canCreate()
public abstract boolean canRemove()
public String getTitle()
Copyright © 2017 SAP SE. All Rights Reserved.