public class GenericReferenceListEditorChip extends AbstractAttributeEditorChip implements SpecialSaveChip
GenericItemListChip for
editing.CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
GenericReferenceListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type,
boolean isPartOf) |
GenericReferenceListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type,
boolean resortable,
boolean isPartOf) |
GenericReferenceListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type,
Collection initialValue,
boolean isPartOf) |
GenericReferenceListEditorChip(DisplayState displayState,
Chip parent,
CollectionType type,
Collection initialValue,
boolean resortable,
boolean isPartOf) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustElementType() |
void |
checkValid()
Gives the chip the possibility to check if its objects are still valid.
|
boolean |
containsValidValue() |
protected Collection |
convertEntryList(List entryList) |
protected GenericItemListChip |
createListChip(boolean resortable,
ComposedType elementType,
boolean isPartOf) |
boolean |
entriesEditable() |
ReferenceEditorNode |
getEditorNode() |
static String |
getEditorType() |
Object |
getInitialValue() |
protected Item |
getItem() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
GenericItemListChip |
getListChip() |
Collection |
getSelectedValues() |
protected CollectionType |
getType() |
protected String |
getTypeAttribute() |
Object |
getValue() |
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.
|
protected void |
refreshEntries() |
void |
save() |
void |
setEntriesEditable(boolean editable)
If set to true the entries of this editor's listchip will be editable.
|
void |
setInitialValue(Object initialValue) |
void |
setItemLayoutNode(ItemLayoutNode layoutNode)
Sets the layoutdescriptor the listchip of this chip should use to render its content.
|
void |
setParameters(Map map)
Sets the parameters which where provided by the xml configuration.
|
void |
setSelectedValues(Collection selected)
Changes the currently selected values.
|
void |
setTypeAttribute(String typeAttribute)
This method must only be called from
ReferenceCollectionEditorNode
!!!! |
void |
setValue(Object object) |
void |
setWidth(int width) |
addAttributeValueChangeListener, clearError, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getHeight, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getWidth, isAjaxUpdatable, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setMaxLength, setOptional, 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 GenericReferenceListEditorChip(DisplayState displayState, Chip parent, CollectionType type, Collection initialValue, boolean isPartOf)
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.isPartOf - True, if the edited attributedescriptor is partof.public GenericReferenceListEditorChip(DisplayState displayState, Chip parent, CollectionType type, Collection initialValue, boolean resortable, boolean isPartOf)
public GenericReferenceListEditorChip(DisplayState displayState, Chip parent, CollectionType type, boolean isPartOf)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.type - the type of the collectionpublic GenericReferenceListEditorChip(DisplayState displayState, Chip parent, CollectionType type, boolean resortable, boolean isPartOf)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.type - the type of the collectionprotected Item getItem()
protected CollectionType getType()
public GenericItemListChip getListChip()
protected GenericItemListChip createListChip(boolean resortable, ComposedType elementType, boolean isPartOf)
resortable - elementType - isPartOf - public void setItemLayoutNode(ItemLayoutNode layoutNode)
protected Collection convertEntryList(List entryList)
public Object getValue()
getValue in class AbstractAttributeEditorChippublic 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 void save()
save in interface SpecialSaveChipprotected void refreshEntries()
public boolean containsValidValue()
containsValidValue in class AbstractAttributeEditorChippublic ReferenceEditorNode getEditorNode()
public static String getEditorType()
public boolean isChanged()
AbstractAttributeEditorChip.isChanged() to treat initial null values as being equal to empty
collections. Additionally if this editor has editable entries (see setEntriesEditable(boolean)) this
method returns true if any of the contained editors have been changed.isChanged in class AbstractAttributeEditorChippublic void setWidth(int width)
setWidth in class AbstractAttributeEditorChippublic Object getInitialValue()
getInitialValue in class AbstractAttributeEditorChippublic void setEntriesEditable(boolean editable)
editable - If set to true the entries of this editor's listchip will be editable.public boolean entriesEditable()
public void setTypeAttribute(String typeAttribute)
ReferenceCollectionEditorNode
!!!!protected String getTypeAttribute()
protected void adjustElementType()
public void setInitialValue(Object initialValue)
setInitialValue in class AbstractAttributeEditorChippublic void setParameters(Map map)
AbstractAttributeEditorChipsetParameters in class AbstractAttributeEditorChipmap - the parameters which where provided by the xml configuration.Copyright © 2017 SAP SE. All Rights Reserved.