public interface OpenElementDataFormOperation
Modifier and Type | Field and Description |
---|---|
static OperationType<OpenElementDataFormOperation> |
TYPE
Operation providing means to open an element's data form.
|
Modifier and Type | Method and Description |
---|---|
RemoteFormData |
perform(DataProvider element)
Performs the operation on a data providing element.
|
void |
setField(String name)
Set a form field's name to focus on.
|
void |
setFormData(FormData formData)
Set a form data container providing overriding values for form fields.
|
void |
setLanguage(Language language)
Defines the language to display the form's data in.
|
void |
setOpenEditable(boolean editable)
Requests the displayed form to be opened for editing.
|
static final OperationType<OpenElementDataFormOperation> TYPE
void setLanguage(Language language)
language
- The project language for the data to be shown in the form.void setField(String name)
name
- The name of the form field.void setFormData(FormData formData)
formData
- A form data container.void setOpenEditable(boolean editable)
editable
- true
, to request opening the form editable.@NotNull RemoteFormData perform(@NotNull DataProvider element) throws OperationSetupException
Be aware that this method operates asynchronously! That is, the method call will return immediately,
while the operation will be performed concurrently. Subsequent calls on the RemoteFormData
-instance returned
will most probably block until the operation is finished. If such a subsequent call is done from inside theevent dispatch thread
, that call most probably will time out and
throw the respective exception
.
element
- The data providing element.OperationSetupException
- If the operation cannot be performed with the given setup.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500