public class AllInstancesSelectEditorChip extends SelectLayoutChip implements ItemAcceptor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPY |
static java.lang.String |
CREATE |
static java.lang.String |
OPEN_EDITOR |
static java.lang.String |
OPEN_EDITOR_INTERNAL |
static java.lang.String |
PASTE |
HIDE_NULL, noSelectionKey, SET_VALUECUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AllInstancesSelectEditorChip(DisplayState displayState,
Chip parent,
ComposedType type) |
AllInstancesSelectEditorChip(DisplayState displayState,
Chip parent,
ComposedType type,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsMultipleSelection()
Implementation of ItemAcceptor.allowsMultipleSelection() which returns false;
|
boolean |
canCreate() |
boolean |
canPaste() |
protected java.util.List |
getAllValues()
When implementing this method, make sure that you use reasonable local caching for your values.
|
protected ReferenceEditorNode |
getEditorNode() |
static java.lang.String |
getEditorType() |
protected ComposedType |
getItemType() |
java.lang.String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
java.util.List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
java.lang.Object |
getValue()
Is overridden to prevent non-alive items to be accessed.
|
boolean |
hasItem() |
boolean |
isElementReadable() |
boolean |
isElementWriteable() |
boolean |
isPartOf() |
void |
openEditor() |
void |
openEditor(boolean external) |
void |
processEvents(java.util.Map events)
Processes the given map of events.
|
void |
resetEntries()
Removes cached values so that they will be rebuild the next time
getAllValues() is called. |
void |
setInitialValue(java.lang.Object initialValue)
Superclass method overridden to set item type if none has been set (preventing exception in 'type safe'
setValue(Object).. |
void |
setItemType(ComposedType type) |
void |
setSelectedItems(java.util.List items)
Implementation of ItemAcceptor.setSelectedItems() which sets the value of this editor chip to the first item in
the given list (which may be null).
|
void |
setValue(java.lang.Object value)
Superclass method overridden to check correct object type.
|
protected java.lang.String |
toString(java.lang.Object value)
Returns the given value as String.
|
getCount, getHeight, getNoSelectionText, getSize, getStringValue, isAjaxUpdatable, isHideNull, isLocalized, isSelected, setHideNull, setLocalized, setNoSelectionKey, setParameters, setSize, setSubmitForm, setValue, submitFormaddAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getWidth, isChanged, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setMaxLength, setOptional, setValidValue, setWidth, valuesAreDifferentaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, 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, translateFormFieldToEventValuepublic static final java.lang.String CREATE
public static final java.lang.String COPY
public static final java.lang.String PASTE
public static final java.lang.String OPEN_EDITOR
public static final java.lang.String OPEN_EDITOR_INTERNAL
public AllInstancesSelectEditorChip(DisplayState displayState, Chip parent, ComposedType type, java.lang.Object value)
public AllInstancesSelectEditorChip(DisplayState displayState, Chip parent, ComposedType type)
public java.lang.String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class SelectLayoutChipprotected java.util.List getAllValues()
SelectLayoutChipgetAllValues in class SelectLayoutChippublic void resetEntries()
getAllValues() is called.protected java.lang.String toString(java.lang.Object value)
toString in class SelectLayoutChippublic static java.lang.String getEditorType()
public boolean hasItem()
public void processEvents(java.util.Map events)
processEvents in interface ChipprocessEvents in class SelectLayoutChippublic boolean canPaste()
public boolean isPartOf()
public void openEditor()
public void openEditor(boolean external)
protected ReferenceEditorNode getEditorNode()
public void setItemType(ComposedType type)
type - protected ComposedType getItemType()
public void setValue(java.lang.Object value)
setValue in class AbstractAttributeEditorChippublic void setSelectedItems(java.util.List items)
setSelectedItems in interface ItemAcceptorpublic boolean allowsMultipleSelection()
allowsMultipleSelection in interface ItemAcceptorpublic boolean isElementReadable()
public boolean isElementWriteable()
public boolean canCreate()
public java.lang.Object getValue()
getValue in class AbstractAttributeEditorChippublic void setInitialValue(java.lang.Object initialValue)
setValue(Object)..setInitialValue in class AbstractAttributeEditorChippublic java.util.List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class AbstractChipAbstractChip.getMenuEntries()Copyright © 2017 SAP SE. All Rights Reserved.