public abstract class ListChip extends AbstractChip
| Modifier and Type | Field and Description |
|---|---|
static String |
CLEAR |
static String |
SELECT |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
ListChip(DisplayState displayState,
Chip parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListEntry(Chip entry) |
void |
addSelectedListEntries(List chips) |
void |
addSelectedListEntry(Chip chip) |
void |
checkValid()
Gives the chip the possibility to check if its objects are still valid.
|
void |
clearListEntries() |
void |
clearSelectedListEntries() |
abstract String |
getItemNotValidErrorMessage()
Returns a localized error message in case one or more list entrys are not valid.
|
List |
getListEntries() |
int |
getListEntryCount() |
int |
getPosition(Chip child) |
List |
getSelectedListEntries() |
int |
getSelectedListEntryCount() |
boolean |
hasFancyRows()
Returns whether or not a more fancy style should be used to display the rows.
|
boolean |
isListEntrySelected(Chip aChip) |
boolean |
isMultipleSelectionAllowed()
This is to differentiate between multiple chip selection or single chip selection.
|
protected void |
moveDown(Chip entry)
Moves the entry one position down in the list (increases index of entry).
|
protected void |
moveUp(Chip entry)
Moves the entry one position up in the list (reduces index of entry).
|
void |
processEvents(Map<String,List<String>> events)
Handles all incoming requests for this chip.
|
void |
removeListEntry(Chip entry) |
protected void |
setFancyRows(boolean fancy) |
void |
setMultipleSelection(boolean multiple)
Deprecated.
use
setMultipleSelectionAllowed(boolean) instead |
void |
setMultipleSelectionAllowed(boolean value)
Set multiple chip selection or not.
|
protected void |
sort(boolean ascending)
Sorts the entries of this list.
|
protected void |
sort(Comparator comparator)
Sorts the entries of this list.
|
addEventListener, 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
public static final String CLEAR
public ListChip(DisplayState displayState, Chip parent)
public void processEvents(Map<String,List<String>> events)
Chippublic void clearListEntries()
public List getListEntries()
public void addListEntry(Chip entry)
public void removeListEntry(Chip entry)
public int getListEntryCount()
public List getSelectedListEntries()
public boolean isListEntrySelected(Chip aChip)
public void addSelectedListEntry(Chip chip)
public void addSelectedListEntries(List chips)
public void clearSelectedListEntries()
public int getSelectedListEntryCount()
public void checkValid()
AbstractChipcheckValid in interface ChipcheckValid in class AbstractChippublic abstract String getItemNotValidErrorMessage()
protected void sort(boolean ascending)
ascending - TRUE sort in ascending order, FALSE sort in descending orderprotected void sort(Comparator comparator)
comparator - The comparator defining the sorting order.protected void moveUp(Chip entry)
protected void moveDown(Chip entry)
public int getPosition(Chip child)
public boolean hasFancyRows()
protected void setFancyRows(boolean fancy)
public boolean isMultipleSelectionAllowed()
@Deprecated public void setMultipleSelection(boolean multiple)
setMultipleSelectionAllowed(boolean) insteadpublic void setMultipleSelectionAllowed(boolean value)
Copyright © 2017 SAP SE. All Rights Reserved.