public class GenericListEditorChip extends AbstractAttributeEditorChip implements SpecialSaveChip
GenericListChip for editing. This chip has large amounts of code in
common with GenericReferenceListEditorChip. Unfortunately it cannot be superclass since
GenericReferenceListEditorChip contains a GenericItemListChip which is a subclass of
ItemListChip.CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
GenericListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type) |
GenericListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type,
boolean resortable) |
GenericListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type,
Collection initialValue) |
GenericListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type,
Collection initialValue,
boolean resortable) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkValid()
Gives the chip the possibility to check if its objects are still valid.
|
protected Collection |
convertListEntries(List listEntries) |
static String |
getEditorType() |
Object |
getInitialValue() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
GenericListChip |
getListChip() |
Collection |
getSelectedValues() |
protected CollectionType |
getType() |
Object |
getValue()
Returns the content of this chip as a collection.
|
boolean |
isChanged()
Overrides
AbstractAttributeEditorChip.isChanged() to treat initial null values as being equal to empty
collections |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
save() |
void |
setSelectedValues(Collection selected)
Changes the currently selected values.
|
void |
setValue(Object object)
Sets the content of this chip.
|
void |
setWidth(int width)
Overrides
AbstractAttributeEditorChip.setWidth(int) to set the correct width in the listeditor. |
addAttributeValueChangeListener, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getHeight, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getWidth, isAjaxUpdatable, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, setMaxLength, setOptional, setParameters, setValidValue, valuesAreDifferentaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, 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, getMenuEntries, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic GenericListEditorChip(DisplayState displayState, Chip parent, CollectionType type, Collection initialValue)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.type - the type of the collectioninitialValue - the initial value. Must not be null or empty.public GenericListEditorChip(DisplayState displayState, Chip parent, CollectionType type, Collection initialValue, boolean resortable)
public GenericListEditorChip(DisplayState displayState, Chip parent, CollectionType type)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.type - the type of the collectionpublic GenericListEditorChip(DisplayState displayState, Chip parent, CollectionType type, boolean resortable)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.type - the type of the collectionprotected CollectionType getType()
public GenericListChip getListChip()
public void setWidth(int width)
AbstractAttributeEditorChip.setWidth(int) to set the correct width in the listeditor.setWidth in class AbstractAttributeEditorChipAbstractAttributeEditorChip.setWidth(int)public Object getValue()
getValue in class AbstractAttributeEditorChipprotected Collection convertListEntries(List listEntries)
public Collection getSelectedValues()
public void setValue(Object object)
setValue in class AbstractAttributeEditorChippublic void setSelectedValues(Collection selected) throws JaloInvalidParameterException
selected - JaloInvalidParameterException - if one of the new selected values is not contained within the list.public void checkValid()
AbstractChipcheckValid in interface ChipcheckValid in class AbstractAttributeEditorChippublic void processEvents(Map events)
ChipprocessEvents in interface Chippublic String getJSPURI()
Chippublic static String getEditorType()
public boolean isChanged()
AbstractAttributeEditorChip.isChanged() to treat initial null values as being equal to empty
collectionsisChanged in class AbstractAttributeEditorChippublic Object getInitialValue()
getInitialValue in class AbstractAttributeEditorChippublic void save()
save in interface SpecialSaveChipCopyright © 2017 SAP SE. All Rights Reserved.