public abstract class GenericListChip extends ListChip implements ToolbarProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD |
static String |
REMOVE |
static String |
SELECT_ALL |
static String |
SELECT_VISIBLE |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
GenericListChip(DisplayState displayState,
AbstractAttributeEditorChip parent)
The List is per default editable.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addEmptyEntry() |
protected abstract void |
addItem() |
boolean |
allowsMultipleSelection()
Method which has to be implemented for
ItemAcceptor interface. |
boolean |
canAdd() |
boolean |
canRemove() |
AbstractToolbarChip |
createToolbar() |
protected void |
deleteSelected() |
String |
getItemNotValidErrorMessage()
Returns a localized error message in case one or more list entrys are not valid.
|
List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
String |
getTitle() |
AbstractToolbarChip |
getToolbar() |
int |
getWidth() |
boolean |
hasFancyRows()
Returns whether or not a more fancy style should be used to display the rows.
|
boolean |
isAllSelected() |
abstract boolean |
isEditable() |
void |
processEvents(Map<String,List<String>> events)
Handles all incoming requests for this chip.
|
boolean |
restrictHeight() |
void |
setAdd(boolean value) |
void |
setAddAndRemove(boolean value) |
void |
setRemove(boolean value) |
void |
setRestrictHeight(boolean restrict) |
void |
setTitle(String title) |
void |
setToolbar(AbstractToolbarChip toolbar) |
void |
setWidth(int width) |
addListEntry, addSelectedListEntries, addSelectedListEntry, checkValid, clearListEntries, clearSelectedListEntries, getListEntries, getListEntryCount, getPosition, getSelectedListEntries, 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, 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, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, checkValid, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getJSPURI, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String REMOVE
public static final String ADD
public static final String SELECT_ALL
public static final String SELECT_VISIBLE
public GenericListChip(DisplayState displayState, AbstractAttributeEditorChip parent)
public void setToolbar(AbstractToolbarChip toolbar)
public AbstractToolbarChip getToolbar()
getToolbar in interface ToolbarProviderpublic boolean canAdd()
public boolean canRemove()
public void setAdd(boolean value)
public void setRemove(boolean value)
public void setAddAndRemove(boolean value)
public AbstractToolbarChip createToolbar()
createToolbar in interface ToolbarProviderpublic boolean hasFancyRows()
ListChiphasFancyRows in class ListChippublic void processEvents(Map<String,List<String>> events)
ChipprocessEvents in interface ChipprocessEvents in class ListChipprotected abstract void addItem()
protected abstract void addEmptyEntry()
protected void deleteSelected()
public boolean isAllSelected()
public boolean allowsMultipleSelection()
ItemAcceptor interface.public abstract boolean isEditable()
public String getItemNotValidErrorMessage()
ListChipgetItemNotValidErrorMessage in class ListChippublic boolean restrictHeight()
public void setRestrictHeight(boolean restrict)
public int getWidth()
public void setWidth(int width)
public String getTitle()
public void setTitle(String title)
public List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class AbstractChipAbstractChip.getMenuEntries()Copyright © 2017 SAP SE. All Rights Reserved.