public class AllInstancesSelectEditorChip extends SelectLayoutChip implements ItemAcceptor
| Modifier and Type | Field and Description |
|---|---|
static String |
COPY |
static String |
CREATE |
static String |
OPEN_EDITOR |
static String |
OPEN_EDITOR_INTERNAL |
static 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,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsMultipleSelection()
Implementation of ItemAcceptor.allowsMultipleSelection() which returns false;
|
boolean |
canCreate() |
boolean |
canPaste() |
protected List |
getAllValues()
When implementing this method, make sure that you use reasonable local caching for your values.
|
protected ReferenceEditorNode |
getEditorNode() |
static String |
getEditorType() |
protected ComposedType |
getItemType() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
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(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(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(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(Object value)
Superclass method overridden to check correct object type.
|
protected String |
toString(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 String CREATE
public static final String COPY
public static final String PASTE
public static final String OPEN_EDITOR
public static final String OPEN_EDITOR_INTERNAL
public AllInstancesSelectEditorChip(DisplayState displayState, Chip parent, ComposedType type, Object value)
public AllInstancesSelectEditorChip(DisplayState displayState, Chip parent, ComposedType type)
public String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class SelectLayoutChipprotected List getAllValues()
SelectLayoutChipgetAllValues in class SelectLayoutChippublic void resetEntries()
getAllValues() is called.protected String toString(Object value)
toString in class SelectLayoutChippublic static String getEditorType()
public boolean hasItem()
public void processEvents(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(Object value)
setValue in class AbstractAttributeEditorChippublic void setSelectedItems(List items)
setSelectedItems in interface ItemAcceptorpublic boolean allowsMultipleSelection()
allowsMultipleSelection in interface ItemAcceptorpublic boolean isElementReadable()
public boolean isElementWriteable()
public boolean canCreate()
public Object getValue()
getValue in class AbstractAttributeEditorChippublic void setInitialValue(Object initialValue)
setValue(Object)..setInitialValue in class AbstractAttributeEditorChippublic List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class AbstractChipAbstractChip.getMenuEntries()Copyright © 2017 SAP SE. All Rights Reserved.