public class UrlAttachmentEditorComponent extends com.vaadin.ui.Form implements AttachmentEditorComponent
com.vaadin.ui.AbstractField.FocusShortcut, com.vaadin.ui.AbstractField.ReadOnlyStatusChangeEvent
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener
com.vaadin.data.Buffered.SourceException
com.vaadin.data.Item.Editor, com.vaadin.data.Item.PropertySetChangeEvent, com.vaadin.data.Item.PropertySetChangeListener, com.vaadin.data.Item.PropertySetChangeNotifier, com.vaadin.data.Item.Viewer
com.vaadin.ui.Field.ValueChangeEvent
com.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, validate
addListener, 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, valueChange
addListener, 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, setWidthUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible
addListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugId
protected 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
AttachmentEditorComponent
getAttachment
in interface AttachmentEditorComponent
com.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.