public class UrlAttachmentEditorComponent extends com.vaadin.ui.Form implements AttachmentEditorComponent
com.vaadin.ui.AbstractField.FocusShortcut, com.vaadin.ui.AbstractField.ReadOnlyStatusChangeEventcom.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandlercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListenercom.vaadin.data.Buffered.SourceExceptioncom.vaadin.data.Item.Editor, com.vaadin.data.Item.PropertySetChangeEvent, com.vaadin.data.Item.PropertySetChangeListener, com.vaadin.data.Item.PropertySetChangeNotifier, com.vaadin.data.Item.Viewercom.vaadin.ui.Field.ValueChangeEventcom.vaadin.data.Property.ConversionException, com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer| Modifier and Type | Field and Description |
|---|---|
protected Attachment |
attachment |
protected I18nManager |
i18nManager |
protected String |
processInstanceId |
protected String |
taskId |
protected TaskService |
taskService |
| Constructor and Description |
|---|
UrlAttachmentEditorComponent(Attachment attachment,
String taskId,
String processInstanceId) |
UrlAttachmentEditorComponent(String taskId,
String processInstanceId) |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
getAttachment()
Get the edited or created attachment based on the values filled in.
|
protected String |
getAttachmentDescription() |
protected String |
getAttachmentName() |
protected String |
getAttachmentUrl() |
protected String |
getFieldValue(String key) |
protected void |
initDescription() |
protected void |
initName() |
protected void |
initUrl() |
addAction, addActionHandler, addField, addItemProperty, addValidator, attach, attachField, bindPropertyToField, changeVariables, commit, detach, detachField, discard, focus, getErrorMessage, getField, getFieldFactory, getFooter, getFormFieldFactory, getItemDataSource, getItemProperty, getItemPropertyIds, getLayout, getOwnActionManager, getType, getVisibleItemProperties, isEmpty, isInvalidAllowed, isModified, isReadThrough, isValid, isValidationVisibleOnCommit, isWriteThrough, paintContent, removeAction, removeActionHandler, removeAllActionHandlers, removeAllProperties, removeItemProperty, replaceWithSelect, setEnabled, setFieldFactory, setFooter, setFormDataSource, setFormFieldFactory, setImmediate, setInternalValue, setInvalidAllowed, setItemDataSource, setItemDataSource, setLayout, setReadOnly, setReadThrough, setTabIndex, setValidationVisibleOnCommit, setVisibleItemProperties, setVisibleItemProperties, setWriteThrough, validateaddListener, addListener, addShortcutListener, constructField, fireReadOnlyStatusChange, fireValueChange, getActionManager, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, getValue, isInvalidCommitted, isReadOnly, isRequired, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeShortcutListener, removeValidator, setCurrentBufferedSourceException, setInvalidCommitted, setPropertyDataSource, setRequired, setRequiredError, setValidationVisible, setValue, setValue, shouldHideErrors, toString, valueChangeaddListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeight, setHeightUnits, setIcon, setLocale, setParent, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidth, setWidthUnitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisibleaddListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugIdprotected Attachment attachment
protected String taskId
protected String processInstanceId
protected I18nManager i18nManager
protected transient TaskService taskService
public UrlAttachmentEditorComponent(String taskId, String processInstanceId)
public UrlAttachmentEditorComponent(Attachment attachment, String taskId, String processInstanceId)
protected void initUrl()
protected void initDescription()
protected void initName()
public Attachment getAttachment() throws com.vaadin.data.Validator.InvalidValueException
AttachmentEditorComponentgetAttachment in interface AttachmentEditorComponentcom.vaadin.data.Validator.InvalidValueException - when validation of the values failed. Editor should show
error-message in component.protected String getAttachmentUrl()
protected String getAttachmentName()
protected String getAttachmentDescription()
Copyright © 2016 Alfresco. All rights reserved.