public interface DomTableEditorValue extends EditorValue<Table>
DomTableEditorValue
interface represents the FirstSpirit input component CMS_INPUT_DOMTABLE
Modifier and Type | Field and Description |
---|---|
static String |
TABLE_KEY
Key for the table content.
|
COPY_PRESET, DEFAULT, DELETE, FALLBACK_LANGUAGE, LANG_KEY, SOLE_LANGUAGE, UNSUPPORTED
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Language language,
int afterColumn)
Adds a column for the given language after the defined column index.
|
void |
addRow(Language language,
int afterRow)
Adds a row for the given language after the defined row index.
|
void |
deleteColumn(Language language,
int column)
Deletes the column for the given language and the defined index.
|
void |
deleteRow(Language language,
int row)
Deletes the row for the given language and the defined index.
|
List<LinkTemplate> |
getAllowedLinkTemplates()
Get a list of allowed link types.
|
TableCell |
getCell(Language language,
int row,
int column)
Gets the
cell of this dom table with the given row & col index
or null if no cell exists with these indices. |
int |
getColumns(Language language)
Provides the number of columns for the given language.
|
de.espirit.firstspirit.access.store.templatestore.gom.GomDomTable |
getForm()
Get the form definition.
|
int |
getRows(Language language)
Provides the number of rows for the given language.
|
Section |
getSection(Language language,
int row,
int column)
Get a cell defined by language, row, and column as Section object.
|
addEditorValueListener, assimilate, beSet, clear, clear, findReferences, get, getContentType, getDataValue, getEditorLanguages, getGuiXml, getMatches, getSearchableString, getTagName, getValueType, initialize, isDefault, isEmpty, isLanguageDependent, isSet, isSet, isValid, removeEditorValueListener, set, setTagName, setValueNode, toXml, toXml, validate
static final String TABLE_KEY
int getRows(Language language)
language
- The language for that the number of rows should be submitted.int getColumns(Language language)
language
- The language for that the number of columns should be submitted.void addRow(Language language, int afterRow)
language
- The language for which the row should be added.afterRow
- The row index after which the row should be added.void deleteRow(Language language, int row)
language
- The language for which the row should be deleted.row
- The row's index that should be deleted.void addColumn(Language language, int afterColumn)
language
- The language for which the column should be added.afterColumn
- The column index after which the column should be added.void deleteColumn(Language language, int column)
language
- The language for which the column should be deleted.column
- The column's index that should be deleted.@Nullable TableCell getCell(Language language, int row, int column)
cell
of this dom table with the given row
& col
index
or null
if no cell exists with these indices.language
- the language to get the cell value forrow
- the row indexcolumn
- the col indexnull
if no cell exists for given indicesde.espirit.firstspirit.access.store.templatestore.gom.GomDomTable getForm()
getForm
in interface EditorValue<Table>
Section getSection(Language language, int row, int column)
language
- The language to look up.row
- The row of the cell.column
- The column of the cell.@NotNull List<LinkTemplate> getAllowedLinkTemplates()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210