Interface DifferentMultiDataDisplayValue

All Known Implementing Classes:
ComboboxItem, DualListBox

public interface DifferentMultiDataDisplayValue

This interface specifies components with multiple values. Data values and displayed values differ from each other. Such a component is a multi-value ComboboxItem or DualListBox.

Values taken by the component upon the selection of one or more elements are called data values. This data value is saved to the database if the the component is allowed to modify data.

Values displayed to the user as elements are called displayed values. This value is displayed only on the interface and neither does it affect the database value, nor the component value.

The interface implements two methods: getDisplayValues() and getOriginalDisplayValues(). Both methods return the component’s displayed values. The former method returns the display values of the currently selected ones. The latter method returns the displayed values of the original values.

Since:
4.0
Author:
JBStrap
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the displayed values of the component’s currently selected values.
    Gets the displayed values of the component’s original values.
  • Method Details

    • getDisplayValues

      List<String> getDisplayValues()
      Gets the displayed values of the component’s currently selected values.
      Returns:
      A list of display values of the component’s currently selected values or null if the component’s current value is null
    • getOriginalDisplayValues

      List<String> getOriginalDisplayValues()
      Gets the displayed values of the component’s original values.
      Returns:
      A list of displayed values of the component’s original values or null if the component value is null