public class FileBlobField extends AbstractBlobField
BlobManager. Blob loading and
saving must be performed manually outside of the Elements lifecycle.| Modifier and Type | Field and Description |
|---|---|
protected Callable<String> |
blobCodeGenerator |
static String |
copyright |
Callable<String> |
DEFAULT_CODE_GENERATOR |
blob, blobError, CODE_SUFFIX, codeInputName, INNER_SUFFIX, innerId, OPERATION_SUFFIX, operationInputName, size, UPLOAD_DELETE, UPLOAD_KEEP, UPLOAD_MODIFYaccessor, bulkCheckboxName, bulkChecked, colSpan, COPYRIGHT, EDITABLE_FIELD_CSS_CLASS, elementsConfiguration, enabled, errors, fieldCssClass, forceNewRow, FORM_LABEL_CSS_CLASS, help, href, id, INPUT_CONTAINER_CSS_CLASS, inputName, insertable, label, logger, mode, required, STATIC_VALUE_CSS_CLASS, title, updatable| Constructor and Description |
|---|
FileBlobField(PropertyAccessor accessor,
Mode mode,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateNewCode() |
Callable<String> |
getBlobCodeGenerator() |
boolean |
isSaveBlobOnObject() |
void |
readFromObject(Object obj) |
void |
setBlobCodeGenerator(Callable<String> blobCodeGenerator) |
void |
writeToObject(Object obj) |
forgetBlob, getBlobError, getCodeInputName, getOperationInputName, getStringValue, getValue, keepOldBlob, loadBlob, loadBlob, newBlob, printRadio, readFromRequest, saveUpload, setBlobError, setOperationInputName, setStringValue, setValue, validate, valueToXhtml, valueToXhtmlPreview, valueToXhtmlView, writeBlobFilenameAndSizecloseVisibleField, errorsToXhtml, getColSpan, getDisplayValue, getErrors, getFieldCssClass, getHelp, getHref, getId, getInputName, getLabel, getMode, getPropertyAccessor, getText, getTitle, hasRequiredFields, helpToXhtml, isBlank, isEnabled, isForceNewRow, isInsertable, isReadOnly, isRequired, isUpdatable, isValid, labelToXhtml, maybeConvertValue, openVisibleField, readFrom, setColSpan, setEnabled, setErrors, setFieldCssClass, setForceNewRow, setHelp, setHref, setId, setInputName, setInsertable, setLabel, setRequired, setTitle, setUpdatable, toXhtml, writeTo, writeToObject, writeToObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiterrorsToXhtml, getDisplayValue, getHref, getId, getInputName, getPropertyAccessor, getTitle, helpToXhtml, isEnabled, isInsertable, isRequired, isUpdatable, labelToXhtml, setEnabled, setHref, setId, setInputName, setInsertable, setRequired, setTitle, setUpdatablegetColSpan, getErrors, getHelp, getLabel, getMode, hasRequiredFields, isForceNewRow, readFrom, setColSpan, setForceNewRow, setHelp, setLabel, writeTotoXhtmlpublic static final String copyright
public FileBlobField(@NotNull
PropertyAccessor accessor,
@NotNull
Mode mode,
@Nullable
String prefix)
public boolean isSaveBlobOnObject()
isSaveBlobOnObject in class AbstractBlobFieldpublic void readFromObject(Object obj)
readFromObject in interface ElementreadFromObject in class AbstractField<Blob>public void writeToObject(Object obj)
public String generateNewCode()
generateNewCode in class AbstractBlobField