Modifier and Type | Field and Description |
---|---|
static String |
GENERIC_LINK
Deprecated.
since 5.1.43 - no replacement, since 5.0 every link should be "generic".
|
Modifier and Type | Method and Description |
---|---|
Data |
getData()
Deprecated.
since 4.2.440 - use
getFormData() instead |
FormData |
getFormData()
Gets the
formdata container for this link. |
Language |
getLinkLanguage()
Provides the language the link is created for.
|
Element |
getNode()
For backward compatibility with FirstSpirit 4.1 - use
getData() andsetData(de.espirit.firstspirit.access.store.Data) . |
LinkTemplate |
getTemplate()
Returns the link template this link is based on.
|
String |
getText()
The display text.
|
void |
setData(Data data)
Deprecated.
since 4.2.440 - use
setFormData(de.espirit.firstspirit.forms.FormData) instead |
void |
setFormData(FormData formData)
Sets the given
formdata container for this link. |
void |
setTemplate(LinkTemplate linkTemplate)
Switch the template - use with caution.
|
void |
setText(String text)
Sets the text for this link.
|
@Deprecated static final String GENERIC_LINK
@Deprecated @NotNull Data getData()
getFormData()
insteadsetData(de.espirit.firstspirit.access.store.Data)
@Deprecated void setData(@NotNull Data data)
setFormData(de.espirit.firstspirit.forms.FormData)
insteaddata
- the new data container for this link, must be not null
@NotNull FormData getFormData()
formdata container
for this link.void setFormData(@NotNull FormData formData)
formdata container
for this link.formData
- the form data container to be set for this link.Element getNode()
getData()
andsetData(de.espirit.firstspirit.access.store.Data)
.@Nullable LinkTemplate getTemplate()
null
if the template does not exist.void setTemplate(LinkTemplate linkTemplate)
data
will be discarded and
parsed again on next access corresponding to theform
of the provided
template.String getText()
LinkTemplate.getTextEditorName()
.void setText(String text)
generic link
the
given text will be stored in the text editor
defined
in the belonging link template
.
This call may not result in a change and getText()
may return the old value, e.g. if the provided
value is not valid or if getTemplate()
.getTextEditorName()
delivers null
. You may use this code instead:
final LinkTemplate linkTemplate = link.getTemplate(); final String editorName = linkTemplate.getTextEditorName(); if (editorName != null) { link.getFormData().get(link.getLanguage(), editorName).set(text); }
Language getLinkLanguage()
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408