Interface WidgetWriterForList

All Superinterfaces:
UIBodyWriter, UIComponentWriter, UIDependencyRegisterer, UIFormWriter, UIJavaScriptWriter, UIResourceLocator, UISessionContext, WidgetWriter

public interface WidgetWriterForList extends WidgetWriter
This interface offers methods that can be used to create a standard EBX® list widget.
Since:
5.8.0
See Also:
  • Method Details

    • addList

      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.

      To display the list without a specific widget it is possible to use the methods UIFormWriter.newBestMatching(Path) and UIFormWriter.addWidget(UIWidget).

    • getPathForListOccurrence

      Path getPathForListOccurrence(int index)
      Returns the absolute path of an occurrence at the specified index under the current aggregated list field (maxOccurs > 1).

      This method can be useful for widget that extends UIListCustomWidget to call the best matching widget for each occurrence.

      Parameters:
      index - The index of an occurrence in the current aggregated list field.
      Returns:
      The path of an occurrence at the specified index.
      See Also:
    • getPathForListOccurrence

      Path getPathForListOccurrence(int index, boolean isRelative)
      Returns the path of an occurrence at the specified index under the current aggregated list field (maxOccurs > 1).

      This method can be useful for a widget that extends UIListCustomWidget to call the best matching widget for each occurrence.

      Parameters:
      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.
      Returns:
      The path of an occurrence at the specified index.
      See Also: