public abstract class ReferenceAttributeEditorChip extends AbstractAttributeEditorChip
| Modifier and Type | Field and Description |
|---|---|
static String |
CLEAR |
static String |
COPY |
static String |
CREATABLE_KEY |
static String |
CREATE |
static String |
EDITABLE_KEY |
static String |
OPEN_EDITOR |
static String |
OPEN_EDITOR_INTERNAL |
static String |
OPEN_SEARCH |
static String |
PASTE |
CUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
ReferenceAttributeEditorChip(DisplayState displayState,
Chip parent) |
ReferenceAttributeEditorChip(DisplayState displayState,
Chip parent,
ComposedType type) |
ReferenceAttributeEditorChip(DisplayState displayState,
Chip parent,
ComposedType type,
Item value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCreationPreset(HMCHelper.AttributePreset preset) |
void |
addSearchPreset(HMCHelper.AttributePreset preset) |
boolean |
canCreate() |
boolean |
canPaste() |
protected Item |
getAssignableItemFromClipboard() |
Collection<HMCHelper.AttributePreset> |
getCreationPresets() |
protected ReferenceEditorNode |
getEditorNode() |
protected ComposedType |
getItemType() |
List |
getMenuEntries()
Here you can specify what Actions you are able to perform at the moment.
|
String |
getNoSelectionKey() |
ComposedType |
getPresetSearchType()
Get the preset searchtype which will be used when the search is opened.
|
Collection<HMCHelper.AttributePreset> |
getSearchPresets() |
String |
getSelectedItemAsString() |
boolean |
hasItem() |
boolean |
isAttributeTypeReadable() |
boolean |
isAutoPerform() |
boolean |
isCreatable() |
boolean |
isElementReadable() |
boolean |
isElementWriteable() |
boolean |
isPartOf() |
boolean |
isRefreshAfterSelect()
Will a refresh be performed after a value was selected?
|
void |
openEditor() |
void |
openEditor(boolean external) |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
setCreatable(boolean creatable) |
void |
setItemType(ComposedType type) |
void |
setNoSelectionKey(String key) |
void |
setParameters(Map map)
Sets the parameters which where provided by the xml configuration.
|
void |
setPresetSearchType(String searchTypeCode)
Set the preset searchtype which will be used when the search is opened.
|
void |
setRefreshAfterSelect(boolean refresh)
Sets if a refresh has to be triggered after a value was selected.
|
void |
setValue(Object value) |
addAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getEditorType, getFieldID, getHeight, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, getProposedUniqueName, getValue, getWidth, isAjaxUpdatable, isChanged, isEditable, isInitialized, isOptional, notifyAttributeValueChangeListeners, removeAttributeValueChangeListener, setAttributeDescriptor, setEditable, setError, setFieldID, setHeight, setInitialValue, 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 static final String OPEN_SEARCH
public static final String CLEAR
public static final String EDITABLE_KEY
public static final String CREATABLE_KEY
public ReferenceAttributeEditorChip(DisplayState displayState, Chip parent, ComposedType type)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.type - The type of the new value, must not be null.public ReferenceAttributeEditorChip(DisplayState displayState, Chip parent)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.public ReferenceAttributeEditorChip(DisplayState displayState, Chip parent, ComposedType type, Item value)
displayState - The current displaystate this chip belongs to.parent - The composition parent chip.type - The type of the new value, must not be null.public void setNoSelectionKey(String key)
public String getNoSelectionKey()
protected ComposedType getItemType()
public boolean hasItem()
public String getSelectedItemAsString()
public boolean isElementReadable()
public boolean isAttributeTypeReadable()
public boolean isElementWriteable()
public boolean isPartOf()
protected ReferenceEditorNode getEditorNode()
public boolean isAutoPerform()
public Collection<HMCHelper.AttributePreset> getCreationPresets()
public Collection<HMCHelper.AttributePreset> getSearchPresets()
public void addCreationPreset(HMCHelper.AttributePreset preset)
preset - public void addSearchPreset(HMCHelper.AttributePreset preset)
preset - public void processEvents(Map events)
Chipprotected Item getAssignableItemFromClipboard()
public boolean canPaste()
public boolean canCreate()
public void setItemType(ComposedType type)
type - public void openEditor()
public void openEditor(boolean external)
public List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class AbstractChipAbstractChip.getMenuEntries()public void setPresetSearchType(String searchTypeCode)
searchTypeCode - the preset search typepublic ComposedType getPresetSearchType()
public void setParameters(Map map)
AbstractAttributeEditorChipsetParameters in class AbstractAttributeEditorChipmap - the parameters which where provided by the xml configuration.public void setValue(Object value)
setValue in class AbstractAttributeEditorChipAbstractAttributeEditorChip.setValue(java.lang.Object)public void setRefreshAfterSelect(boolean refresh)
refresh - true for refresh after select, otherwise falsepublic boolean isRefreshAfterSelect()
public boolean isCreatable()
public void setCreatable(boolean creatable)
creatable - the creatable to setCopyright © 2017 SAP SE. All Rights Reserved.