public abstract class AbstractBlobField extends AbstractField<Blob> implements MultipartRequestField<Blob>
Modifier and Type | Field and Description |
---|---|
protected Blob |
blob |
protected String |
blobError |
static String |
CODE_SUFFIX |
protected String |
codeInputName |
static String |
copyright |
static String |
INNER_SUFFIX |
protected String |
innerId |
static String |
OPERATION_SUFFIX |
protected String |
operationInputName |
protected int |
size |
static String |
UPLOAD_DELETE |
static String |
UPLOAD_KEEP |
static String |
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, logger, mode, required, STATIC_VALUE_CSS_CLASS, title, updatable
Constructor and Description |
---|
AbstractBlobField(PropertyAccessor accessor,
Mode mode) |
AbstractBlobField(PropertyAccessor accessor,
Mode mode,
String prefix) |
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, readFromObject, 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
readFromObject, writeToObject
toXhtml
public static final String copyright
public static final String UPLOAD_KEEP
public static final String UPLOAD_MODIFY
public static final String UPLOAD_DELETE
public static final String OPERATION_SUFFIX
public static final String CODE_SUFFIX
public static final String INNER_SUFFIX
protected final int size
protected String innerId
protected String operationInputName
protected String codeInputName
protected Blob blob
protected String blobError
public AbstractBlobField(PropertyAccessor accessor, Mode mode)
public AbstractBlobField(@NotNull PropertyAccessor accessor, @NotNull Mode mode, @Nullable String prefix)
public void valueToXhtml(XhtmlBuffer xb)
valueToXhtml
in interface Field<Blob>
public String getStringValue()
getStringValue
in interface Field<Blob>
public void setStringValue(String stringValue)
setStringValue
in interface Field<Blob>
public void valueToXhtmlPreview(XhtmlBuffer xb)
public void valueToXhtmlView(XhtmlBuffer xb)
public void writeBlobFilenameAndSize(XhtmlBuffer xb)
protected void printRadio(XhtmlBuffer xb, String radioId, String labelKey, String value, boolean checked, String script)
public void readFromRequest(HttpServletRequest req)
readFromRequest
in interface Element
readFromRequest
in class AbstractField<Blob>
protected void forgetBlob()
protected void keepOldBlob(HttpServletRequest req)
protected void saveUpload(HttpServletRequest req)
protected void newBlob(FileBean fileBean) throws IOException
IOException
public abstract String generateNewCode()
public abstract boolean isSaveBlobOnObject()
public String getCodeInputName()
public String getOperationInputName()
public void setOperationInputName(String operationInputName)
public String getBlobError()
public void setBlobError(String blobError)
public void loadBlob(BlobManager blobManager, boolean loadContents)
protected void loadBlob(BlobManager blobManager, Blob blob, boolean loadContents) throws IOException
IOException