public class BlobField extends CustomField<byte[]> implements Serializable, Upload.Receiver, Upload.StartedListener, Upload.ProgressListener, Upload.SucceededListener, Upload.FailedListener
Field for editing Propertys with byte[] array values
(i.e., "blobs"). The blob is updated using a file upload.AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEventHasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListenerComponent.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitField.ValueChangeEventBuffered.SourceExceptionProperty.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer| Modifier and Type | Field and Description |
|---|---|
protected Logger |
log |
DESIGN_ATTR_PLAIN_TEXTSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS| Constructor and Description |
|---|
BlobField()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach() |
void |
detach() |
Label |
getDescriptionLabel()
Get the description
Label associated with this instance. |
Class<byte[]> |
getType() |
Upload |
getUpload()
Get the
Upload associated with this instance. |
protected Component |
initContent() |
OutputStream |
receiveUpload(String filename,
String mimeType) |
protected void |
setInternalValue(byte[] value) |
protected void |
updateDisplay()
Update the description label to reflect the current property value and read-only status.
|
void |
updateProgress(long readBytes,
long contentLength) |
void |
uploadFailed(Upload.FailedEvent event) |
void |
uploadStarted(Upload.StartedEvent event) |
void |
uploadSucceeded(Upload.SucceededEvent event) |
getContent, iterator, setHeight, setWidthaddListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getTabIndex, getValidators, getValue, isBuffered, isEmpty, isImmediate, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, setValue, setValue, shouldHideErrors, toString, validate, validate, valueChange, writeDesignaddContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthUndefinedforEach, spliteratoraddShortcutListener, removeShortcutListenerprotected final Logger log
public void attach()
attach in interface ClientConnectorattach in interface Componentattach in class CustomField<byte[]>public void detach()
detach in interface ClientConnectordetach in class AbstractField<byte[]>public Upload getUpload()
Upload associated with this instance.Uploadpublic Label getDescriptionLabel()
Label associated with this instance.public Class<byte[]> getType()
getType in interface Property<byte[]>getType in class AbstractField<byte[]>protected Component initContent()
initContent in class CustomField<byte[]>protected void setInternalValue(byte[] value)
setInternalValue in class AbstractField<byte[]>public OutputStream receiveUpload(String filename, String mimeType)
receiveUpload in interface Upload.Receiverpublic void uploadStarted(Upload.StartedEvent event)
uploadStarted in interface Upload.StartedListenerpublic void updateProgress(long readBytes,
long contentLength)
updateProgress in interface Upload.ProgressListenerpublic void uploadSucceeded(Upload.SucceededEvent event)
uploadSucceeded in interface Upload.SucceededListenerpublic void uploadFailed(Upload.FailedEvent event)
uploadFailed in interface Upload.FailedListenerprotected void updateDisplay()
Copyright © 2017. All rights reserved.