public interface WidgetWriterForList extends WidgetWriter
UIListCustomWidget
Modifier and Type | Method and Description |
---|---|
void |
addList(Path aPath,
UIWidgetFactory<?> anItemWidgetFactory)
Adds the built-in multi-occurrence editor but uses the given widget
to display each item of the list.
|
Path |
getPathForListOccurrence(int index)
Returns the absolute path of an occurrence at the specified index under the
current aggregated list field (
maxOccurs > 1 ). |
Path |
getPathForListOccurrence(int index,
boolean isRelative)
Returns the path of an occurrence at the specified index under the
current aggregated list field (
maxOccurs > 1 ). |
addEmptyFieldButton, addServiceButton, addUIDescription, addUIDisplayValue, addUILabel, addUIValidationMessage, getTableCellStyleHandler, getWidgetName, getWidgetName, getWidgetName, getWidgetNameOfParent
addFormGroup, addFormRow, addFormRow, addFormRow, addFormRow, addFormRowOrGroup, addJS_getNodeValue, addJS_hideTab, addJS_setNodeMandatoryIndicator, addJS_setNodeValue, addJS_showTab, addLabel, addWidget, addWidget, getDisplayMode, getPrefixedPath, newBestMatching, newCheckBox, newCheckBoxGroup, newColorPicker, newComboBox, newCustomWidget, newDatasetSelector, newDataspaceSelector, newDateTime, newDropDownList, newFormGroup, newFormRow, newListBox, newPassword, newRadioButton, newRadioButtonGroup, newTable, newTextBox, startBorder, startFormGroup, startFormRow
addButtonHelp, addButtonJavaScript, addButtonJavaScriptToggle, addUILabel, addUserAvatar, buildButtonPreview, buildButtonPreview, buildButtonPreview, endBorder, endExpandCollapseBlock, endFormGroup, endFormRow, endTableFormRow, newExpandCollapseBlock, newFormGroup, newFormRow, startBorder, startBorder, startBorder, startExpandCollapseBlock, startExpandCollapseBlock, startFormGroup, startFormGroup, startFormRow, startFormRow, startFormRow, startFormRow, startTableFormRow
add_cr, add_cr, add, add, add, addSafeAttribute, addSafeAttribute, addSafeInnerHTML, addSafeInnerHTML
addJS_addResizeWorkspaceListener, addJS_cr, addJS_cr, addJS_openPreviewImage, addJS_openPreviewImageFromVar, addJS_setButtonDisabled, addJS_setExpandCollapseBlockExpanded, addJS_setStateToToggleButton, addJS_switchToPerspective, addJS_switchToPerspectiveAction, addJS
createWebComponentForRootSession, createWebComponentForSubSession, getURLForAjaxComponent, getURLForAjaxComponent, getURLForPerspectiveSelection, getURLForPerspectiveSelection, getURLForResource, getURLForResource, getURLForResource, getURLForResource, getURLForResource, getURLForRest, getURLForSelection, getURLForSelection, getURLForSelection, getURLForSelection, getURLForSelection, getURLForSelection, getURLForViewSelection
addJavaScriptDependency
getLocale, getSession
void addList(Path aPath, UIWidgetFactory<?> anItemWidgetFactory)
To display the list without a specific widget it is possible to use the methods
UIFormWriter.newBestMatching(Path)
and UIFormWriter.addWidget(UIWidget)
.
Path getPathForListOccurrence(int index)
maxOccurs > 1
).
This method can be useful for widget that extends
UIListCustomWidget
to call the
best matching widget
for each occurrence.
index
- The index of an occurrence in the current aggregated list field.Step.isIndexed()
,
getPathForListOccurrence(int, boolean)
Path getPathForListOccurrence(int index, boolean isRelative)
maxOccurs > 1
).
This method can be useful for a widget that extends
UIListCustomWidget
to call the
best matching widget
for each occurrence.
index
- The index of an occurrence in the current aggregated list field.isRelative
- If true, the returned path will be relative. If false, it will be absolute.Step.isIndexed()