public class DatabaseBlobField extends AbstractBlobField
Modifier and Type | Field and Description |
---|---|
protected PropertyAccessor |
contentTypeAccessor |
static String |
copyright |
protected PropertyAccessor |
fileNameAccessor |
protected PropertyAccessor |
timestampAccessor |
blob, blobError, CODE_SUFFIX, codeInputName, INNER_SUFFIX, innerId, OPERATION_SUFFIX, operationInputName, size, UPLOAD_DELETE, UPLOAD_KEEP, UPLOAD_MODIFY
accessor, 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, mode, required, STATIC_VALUE_CSS_CLASS, title, updatable
Constructor and Description |
---|
DatabaseBlobField(ClassAccessor classAccessor,
PropertyAccessor accessor,
Mode mode,
String prefix) |
Modifier and Type | Method and Description |
---|---|
String |
generateNewCode() |
PropertyAccessor |
getContentTypeAccessor() |
PropertyAccessor |
getFileNameAccessor() |
boolean |
isSaveBlobOnObject() |
protected void |
loadBlob(BlobManager blobManager,
Blob blob,
boolean loadContents) |
void |
readFromObject(Object obj) |
void |
writeToObject(Object obj) |
forgetBlob, getBlobError, getCodeInputName, getOperationInputName, getStringValue, getValue, keepOldBlob, loadBlob, newBlob, printRadio, readFromRequest, saveUpload, setBlobError, setOperationInputName, setStringValue, setValue, validate, valueToXhtml, valueToXhtmlPreview, valueToXhtmlView, writeBlobFilenameAndSize
closeVisibleField, 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, writeToObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
errorsToXhtml, getDisplayValue, getHref, getId, getInputName, getPropertyAccessor, getTitle, helpToXhtml, isEnabled, isInsertable, isRequired, isUpdatable, labelToXhtml, setEnabled, setHref, setId, setInputName, setInsertable, setRequired, setTitle, setUpdatable
getColSpan, getErrors, getHelp, getLabel, getMode, hasRequiredFields, isForceNewRow, readFrom, setColSpan, setForceNewRow, setHelp, setLabel, writeTo
toXhtml
public static final String copyright
protected final PropertyAccessor contentTypeAccessor
protected final PropertyAccessor fileNameAccessor
protected final PropertyAccessor timestampAccessor
public DatabaseBlobField(@NotNull ClassAccessor classAccessor, @NotNull PropertyAccessor accessor, @NotNull Mode mode, @Nullable String prefix) throws NoSuchFieldException
NoSuchFieldException
public boolean isSaveBlobOnObject()
isSaveBlobOnObject
in class AbstractBlobField
public void readFromObject(Object obj)
readFromObject
in interface Element
readFromObject
in class AbstractField<Blob>
public void writeToObject(Object obj)
protected void loadBlob(BlobManager blobManager, Blob blob, boolean loadContents) throws IOException
loadBlob
in class AbstractBlobField
IOException
public String generateNewCode()
generateNewCode
in class AbstractBlobField
public PropertyAccessor getContentTypeAccessor()
public PropertyAccessor getFileNameAccessor()