public class UploadToMediaEditorChip extends AutocompleteReferenceEditorChip implements StreamAcceptor
| Modifier and Type | Field and Description |
|---|---|
static String |
UPLOAD |
AJAX_SEARCH, AJAX_SELECT, LIST_WIDTH, RESULTATTRIBUTES, SEARCHATTRIBUTESCLEAR, COPY, CREATABLE_KEY, CREATE, EDITABLE_KEY, OPEN_EDITOR, OPEN_EDITOR_INTERNAL, OPEN_SEARCH, PASTECUSTOM, DEFAULT_HEIGHTCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
UploadToMediaEditorChip(DisplayState displayState,
Chip parent,
ComposedType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpload()
Checks if the upload of an media is allowed.
|
static String |
getEditorType() |
MediaFolder |
getFolder() |
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.
|
boolean |
isRefreshWithoutSubmitAfterSelect() |
boolean |
isTemporary()
Checks whether if the set media is temporary.
|
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
setData(DataInputStream stream) |
void |
setData(DataInputStream stream,
String originalName,
String mimeType) |
void |
setFolder(MediaFolder folder) |
void |
setRefreshWithoutSubmitAfterSelect(boolean refreshWithoutSubmitAfterSelect) |
protected void |
setTemporary(boolean enable)
Marks the media as temporary.
|
void |
setValue(Object value) |
protected void |
upload() |
allowsMultipleSelection, getAttributeType, getCondition, getDisplayValue, getInputID, getListWidth, getMatchesID, getProposedUniqueName, getRange, getResultAttributes, getSearchAttributes, getSearchResult, processAjaxEvents, select, setAttributeType, setListWidth, setParameters, setRange, setSelectedItemsaddCreationPreset, addSearchPreset, canCreate, canPaste, getAssignableItemFromClipboard, getCreationPresets, getEditorNode, getItemType, getNoSelectionKey, getPresetSearchType, getSearchPresets, getSelectedItemAsString, hasItem, isAttributeTypeReadable, isAutoPerform, isCreatable, isElementReadable, isElementWriteable, isPartOf, isRefreshAfterSelect, openEditor, openEditor, setCreatable, setItemType, setNoSelectionKey, setPresetSearchType, setRefreshAfterSelectaddAttributeValueChangeListener, checkValid, clearError, containsValidValue, convertAndSetValue, convertValue, getAttributeChip, getAttributeDescriptor, getAttributeValueChangeListeners, getFieldID, getHeight, getInitialValue, getLastInvalidValue, getMaxLength, getParameters, getParentEditorChip, 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, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, checkValid, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String UPLOAD
public UploadToMediaEditorChip(DisplayState displayState, Chip parent, ComposedType type)
public void setData(DataInputStream stream)
setData in interface StreamAcceptorpublic void setData(DataInputStream stream, String originalName, String mimeType)
setData in interface StreamAcceptorpublic static String getEditorType()
public String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class AutocompleteReferenceEditorChippublic void processEvents(Map events)
ChipprocessEvents in interface ChipprocessEvents in class AutocompleteReferenceEditorChipprotected void upload()
public void setValue(Object value)
setValue in class ReferenceAttributeEditorChipAbstractAttributeEditorChip.setValue(java.lang.Object)public List getMenuEntries()
AbstractChipgetMenuEntries in interface ChipgetMenuEntries in class ReferenceAttributeEditorChipAbstractChip.getMenuEntries()public boolean isTemporary()
protected void setTemporary(boolean enable)
enable - true if media is set by the upload button dialog and not saved until yet, false otherwisepublic boolean canUpload()
public void setRefreshWithoutSubmitAfterSelect(boolean refreshWithoutSubmitAfterSelect)
public boolean isRefreshWithoutSubmitAfterSelect()
public MediaFolder getFolder()
public void setFolder(MediaFolder folder)
Copyright © 2017 SAP SE. All Rights Reserved.