Interface EntityComponents.EntityListBuilderFactory<T>

Type Parameters:
T - the value type
Enclosing class:
EntityComponents

public static interface EntityComponents.EntityListBuilderFactory<T>
A factory for list builders.
  • Method Summary

    Modifier and Type
    Method
    Description
    is.codion.swing.common.ui.component.list.ListBuilder.Items<T>
    items(is.codion.framework.domain.entity.attribute.Attribute<List<T>> attribute)
    A JList builder, where the value is represented by the list items.
    is.codion.swing.common.ui.component.list.ListBuilder.SelectedItem<T>
    selectedItem(is.codion.framework.domain.entity.attribute.Attribute<T> attribute)
    A single selection JList builder, where the value is represented by the selected item.
    is.codion.swing.common.ui.component.list.ListBuilder.SelectedItems<T>
    selectedItems(is.codion.framework.domain.entity.attribute.Attribute<List<T>> attribute)
    A multi selection JList builder, where the value is represented by the selected items.
  • Method Details

    • items

      is.codion.swing.common.ui.component.list.ListBuilder.Items<T> items(is.codion.framework.domain.entity.attribute.Attribute<List<T>> attribute)
      A JList builder, where the value is represented by the list items.
      Parameters:
      attribute - the attribute
      Returns:
      a JList builder
    • selectedItems

      is.codion.swing.common.ui.component.list.ListBuilder.SelectedItems<T> selectedItems(is.codion.framework.domain.entity.attribute.Attribute<List<T>> attribute)
      A multi selection JList builder, where the value is represented by the selected items.
      Parameters:
      attribute - the attribute
      Returns:
      a JList builder
    • selectedItem

      is.codion.swing.common.ui.component.list.ListBuilder.SelectedItem<T> selectedItem(is.codion.framework.domain.entity.attribute.Attribute<T> attribute)
      A single selection JList builder, where the value is represented by the selected item.
      Parameters:
      attribute - the attribute
      Returns:
      a JList builder